BasicLexer
- Bug fix for single-line comments consuming first character on next line
This commit is contained in:
parent
3bb3dc94ab
commit
ec143553cf
|
@ -509,7 +509,7 @@ public final class BasicLexer : LexerInterface
|
||||||
while (true) {
|
while (true) {
|
||||||
if (!multiLine && currentChar == LS.NEWLINE) {
|
if (!multiLine && currentChar == LS.NEWLINE) {
|
||||||
flush();
|
flush();
|
||||||
return advanceLine();
|
return true;
|
||||||
}
|
}
|
||||||
if (multiLine && currentChar == LS.STAR && isForward() && sourceCode[position+1] == LS.FORWARD_SLASH) {
|
if (multiLine && currentChar == LS.STAR && isForward() && sourceCode[position+1] == LS.FORWARD_SLASH) {
|
||||||
buildAdvance();
|
buildAdvance();
|
||||||
|
|
Loading…
Reference in New Issue