From ec143553cf4d890784eab450e51ebcf5a87d4522 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sat, 20 Apr 2024 20:07:27 +0200 Subject: [PATCH] BasicLexer - Bug fix for single-line comments consuming first character on next line --- source/tlang/compiler/lexer/kinds/basic.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tlang/compiler/lexer/kinds/basic.d b/source/tlang/compiler/lexer/kinds/basic.d index 80dc575c..1f04b801 100644 --- a/source/tlang/compiler/lexer/kinds/basic.d +++ b/source/tlang/compiler/lexer/kinds/basic.d @@ -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();