Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
littlewhitecloud authored Dec 16, 2023
1 parent 2afa867 commit 7bb1480
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions self_hosted/tokenizer.jou
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ class Tokenizer:
if c == '\\':
after_backslash = self->read_byte()
if after_backslash == '\0' or after_backslash == '\n':
self->location.lineno--
fail(self->location, "missing ' to end the byte literal")
elif after_backslash == 'n':
c = '\n'
Expand Down

0 comments on commit 7bb1480

Please sign in to comment.