Fix slash in multi-line comment

This commit is contained in:
SirYwell 2025-05-10 07:13:22 +02:00
parent 86bb376062
commit 6b7584b3cc
No known key found for this signature in database

View file

@ -86,6 +86,9 @@ public class Lexer {
} else if (peek(1) == '*') {
currentCommentType = CommentType.MULTI_LINE;
multiLineCommentDepth++;
} else if (currentCommentType == CommentType.MULTI_LINE) {
this.pos++;
continue;
} else {
return null;
}