- Timestamp:
- 01/28/14 17:09:30 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GPDL/SyntaxAnalyzer/Scanner.cs
r10067 r10412 306 306 int level = 1, pos0 = pos, line0 = line, col0 = col, charPos0 = charPos; 307 307 NextCh(); 308 if (ch == '/') { 309 NextCh(); 310 for(;;) { 311 if (ch == 13) { 312 level--; 313 if (level == 0) { oldEols = line - line0; NextCh(); return true; } 314 NextCh(); 315 } else if (ch == Buffer.EOF) return false; 316 else NextCh(); 317 } 318 } else { 319 buffer.Pos = pos0; NextCh(); line = line0; col = col0; charPos = charPos0; 320 } 321 return false; 322 } 323 324 bool Comment1() { 325 int level = 1, pos0 = pos, line0 = line, col0 = col, charPos0 = charPos; 326 NextCh(); 308 327 if (ch == '*') { 309 328 NextCh(); … … 357 376 ch >= 9 && ch <= 10 || ch == 13 358 377 ) NextCh(); 359 if (ch == '/' && Comment0() ) return NextToken();378 if (ch == '/' && Comment0() ||ch == '/' && Comment1()) return NextToken(); 360 379 int recKind = noSym; 361 380 int recEnd = pos;
Note: See TracChangeset
for help on using the changeset viewer.