Fix comments not being properly tokenized
This commit is contained in:
parent
7c71e0528f
commit
62a318e69b
|
@ -1,5 +1,5 @@
|
|||
|
||||
// Test comment.
|
||||
# Test comment.
|
||||
@log_info("game is loading")
|
||||
|
||||
return {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue