Skip to content

Commit

Permalink
Allow for empty string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
Mango0x45 committed Sep 22, 2024
1 parent 7800b4d commit ef29ac5
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 104 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ module.exports = grammar({
inline_node: $ => seq('@', $._toplevel),

ident: $ => IDENT,
string: $ => /"(\\["\\]|[^"\\])+"/,
string: $ => /"(\\["\\]|[^"\\])*"/,
},
})
2 changes: 1 addition & 1 deletion src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

199 changes: 97 additions & 102 deletions src/parser.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ef29ac5

Please sign in to comment.