Fix comments not being properly tokenized
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kayomn 2023-07-22 14:56:57 +01:00
parent 7c71e0528f
commit 62a318e69b
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
// Test comment.
# Test comment.
@log_info("game is loading")
return {

View File

@ -119,7 +119,7 @@ pub const Tokenizer = struct {
'#' => {
cursor += 1;
while (cursor < self.source.len and self.source[cursor] == '\n') {
while (cursor < self.source.len and self.source[cursor] != '\n') {
cursor += 1;
}
},