Fix comments lexer

This commit is contained in:
2026-01-15 23:44:34 +08:00
parent 06612e2824
commit 68ba6f9293

View File

@@ -61,7 +61,8 @@ void Lexer::skip_whitespace() {
}
void Lexer::skip_comment() {
if (peek() == '/' && peek_next() == '/') {
if (peek() == '/') {
advance();
while (peek() != '\n' && !is_at_end()) {
advance();
}