Compare commits

..

No commits in common. "multiline-comments" and "master" have entirely different histories.

View File

@ -247,37 +247,8 @@ public class LexAn implements AutoCloseable {
return; return;
} }
nextChar(); while (buffChar != '\n' && buffChar != -1) {
if (buffChar == '{') {
int depth = 1;
nextChar(); nextChar();
while (depth > 0) {
switch (buffChar) {
case '}':
nextChar();
if (buffChar != '/') continue;
nextChar();
if (buffChar != '/') continue;
depth--;
break;
case '/':
nextChar();
if (buffChar != '/') continue;
nextChar();
if (buffChar != '{') continue;
depth++;
break;
case -1:
throw new Report.Error(currentLocation(), "Unterminated multiline comment");
default:
nextChar();
}
}
} else {
while (buffChar != '\n' && buffChar != -1) {
nextChar();
}
} }
nextToken(); nextToken();