Skip to content

Commit

Permalink
allow newlines between function arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-it committed Aug 21, 2024
1 parent 5521873 commit c37a40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tokenizer.zig
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub fn next(self: *Tokenizer, code: []const u8) ?Token {
.start => switch (c) {
else => state = .invalid,
0 => return null,
' ' => res.loc.start += 1,
' ', '\n' => res.loc.start += 1,
'a'...'z', 'A'...'Z', '_' => {
state = .identifier;
},
Expand Down

0 comments on commit c37a40e

Please sign in to comment.