Changeset 505
- Timestamp:
- Dec 6, 2007, 3:57:39 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/readme.txt
r495 r505 33 33 comment blocks are identified by a start code (e.g. '/*' in a C file) 34 34 and a stop code (e.g. '*/' in a C file). If a line contains 35 alphanumericcharacters being outside comment blocks, the line is35 visible characters being outside comment blocks, the line is 36 36 considered to be ''code''. Otherwise, if the line contains 37 37 alphanumeric characters inside a comment block, the line is considered 38 38 to be a line of ''comment''. Otherwise the line is considered to be 39 `other`. At the time being the following comment identifiers are39 ''other''. At the time being the following comment identifiers are 40 40 used: 41 41 -
trunk/lib/Parser.cc
r439 r505 130 130 // A line of code or comment must contain at least one 131 131 // alphanumerical character. 132 if (isalnum(*iter)) { 133 if (!mode) { 134 lt=code; 135 } 136 else if (lt!=code) { 137 lt=comment; 138 } 139 } 132 if (!mode && isgraph(*iter)) 133 lt=code; 134 else if (mode && lt!=code && isalnum(*iter)) 135 lt=comment; 140 136 } 141 137 if (mode && codon[mode-1].second==std::string("\n"))
Note: See TracChangeset
for help on using the changeset viewer.