Changeset 515
- Timestamp:
- Dec 9, 2007, 3:38:34 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.svndigest/config
r406 r515 12 12 ### Section for setting trac environment 13 13 [trac] 14 # If trac-root is set, svndigest will create anchors to #the Trac page.15 # trac-root = http:// lev.thep.lu.se/trac/svndigest/14 # If trac-root is set, svndigest will create anchors to the Trac page. 15 # trac-root = http://trac.thep.lu.se/trac/svndigest/ 16 16 trac-root = http://trac.thep.lu.se/trac/svndigest/ 17 17 18 ### Section for setting dictionary for file names. 19 ### Prior looking for file name pattern in section [codon], 20 ### the file name may be translated according to the rules 21 ### in this section. In default setting there is, for example, 22 ### a rule to translate `<FILENAME>.in' to `<FILENAME>'. 23 ### The format of the entries is: 24 ### file-name-pattern = new-name 25 ### Left hand side may contain wildcards (such as '*' and '?'). 26 ### Right hand side may contain "$i", which will be replaced 27 ### with the ith wild card in lhs string. 28 [file-name-dictionary] 29 *.in = $1 30 31 ### Section for setting parsing modes 32 ### The format of the entries is: 33 ### file-name-pattern = start-code : end-code 34 ### The file-name-pattern may contain wildcards (such as '*' and '?'). 35 ### String "<NEWLINE>" can be used for codons containing newline 36 ### character: '\n' 37 [parsing-codons] 38 *.ac = # : <NEWLINE> ; dnl : <NEWLINE> 39 *.am = # : <NEWLINE> ; dnl : <NEWLINE> 40 *.m4 = # : <NEWLINE> ; dnl : <NEWLINE> 41 *.c = // : <NEWLINE> ; /* : */ 42 *.cc = // : <NEWLINE> ; /* : */ 43 *.cpp = // : <NEWLINE> ; /* : */ 44 *.cxx = // : <NEWLINE> ; /* : */ 45 *.h = // : <NEWLINE> ; /* : */ 46 *.hh = // : <NEWLINE> ; /* : */ 47 *.hpp = // : <NEWLINE> ; /* : */ 48 *.java = // : <NEWLINE> ; /* : */ 49 *.pl = # : <NEWLINE> 50 *.pm = # : <NEWLINE> 51 *.sh = # : <NEWLINE> 52 *config = # : <NEWLINE> 53 bootstrap = # : <NEWLINE> 54 Makefile = # : <NEWLINE> 55 *.tex = % : <NEWLINE> 56 *.m = % : <NEWLINE> 57 *.jsp = <!-- : --> 58 *.html = <%-- : --%> 59 *.xml = <!-- : --> ; <!-- : --> 60 *.xsl = <!-- : --> 61 *.xsd = <!-- : --> 62 *.xhtml = <!-- : --> 63 *.shtml = <!-- : --> 64 *.css = <!-- : --> 65 *.rss = <!-- : --> 66 *.sgml = <!-- : --> 67 *.bat = <NEWLINE>REM : <NEWLINE> ; <NEWLINE>rem : <NEWLINE> -
trunk/lib/Configuration.cc
r514 r515 56 56 57 57 if (iter==string2codons_.end()) 58 string2codons_.push_back(std::make_pair(key, codons(1,p)));58 string2codons_.push_back(std::make_pair(key, VectorPair(1,p))); 59 59 else 60 60 iter->second.push_back(p); … … 293 293 add_codon("*.bat", "\nREM", "\n"); 294 294 add_codon("*.bat", "\nrem", "\n"); 295 296 dictionary_ = VectorPair(1, std::make_pair("*.in", "$1")); 295 297 } 296 298 … … 348 350 os << "trac-root = " << conf.trac_root() << "\n"; 349 351 352 if (!conf.dictionary_.empty()) { 353 os << "\n" 354 << "### Section for setting dictionary for file names.\n" 355 << "### Prior looking for file name pattern in section [codon],\n" 356 << "### the file name may be translated according to the rules \n" 357 << "### in this section. In default setting there is, for example,\n" 358 << "### a rule to translate `<FILENAME>.in' to `<FILENAME>'.\n" 359 << "### The format of the entries is:\n" 360 << "### file-name-pattern = new-name\n" 361 << "### Left hand side may contain wildcards (such as '*' and '?').\n" 362 << "### Right hand side may contain \"$i\", which will be replaced \n" 363 << "### with the ith wild card in lhs string.\n" 364 << "[file-name-dictionary]\n"; 365 for (size_t i=0; i<conf.dictionary_.size(); ++i) 366 os << conf.dictionary_[i].first << " = " 367 << conf.dictionary_[i].second << "\n"; 368 } 350 369 if (!conf.string2codons_.empty()) { 351 370 os << "\n" -
trunk/lib/Configuration.h
r510 r515 109 109 bool missing_copyright_warning_; 110 110 111 typedef std::vector<std::pair<std::string, std::string> > codons;112 typedef std::vector<std::pair<std::string, codons> > String2Codons;111 typedef std::vector<std::pair<std::string, std::string> > VectorPair; 112 typedef std::vector<std::pair<std::string, VectorPair> > String2Codons; 113 113 String2Codons string2codons_; 114 115 VectorPair dictionary_; 114 116 115 117 std::string trac_root_;
Note: See TracChangeset
for help on using the changeset viewer.