Compare commits

...

2 Commits

Author SHA1 Message Date
Tristan B. V. Kildaire 48f9b2659f Test cases
- Updated `simple_comments.t`
1 month ago
Tristan B. V. Kildaire ec143553cf BasicLexer
- Bug fix for single-line comments consuming first character on next line
1 month ago

@ -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();

@ -1,7 +1,6 @@
module simple_comments; module simple_comments;
// Lol // Lol
int i; int i;
/** /**

Loading…
Cancel
Save