BasicLexer

- Bug fix for single-line comments consuming first character on next line
This commit is contained in:
Tristan B. Velloza Kildaire 2024-04-20 20:07:27 +02:00
parent 3bb3dc94ab
commit ec143553cf
1 changed files with 1 additions and 1 deletions

View File

@ -509,7 +509,7 @@ public final class BasicLexer : LexerInterface
while (true) {
if (!multiLine && currentChar == LS.NEWLINE) {
flush();
return advanceLine();
return true;
}
if (multiLine && currentChar == LS.STAR && isForward() && sourceCode[position+1] == LS.FORWARD_SLASH) {
buildAdvance();