Improve Syntax Error Messages and Fix Comments #29
|
@ -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