Skip to content

Commit

Permalink
fix: variable_expansions can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Nov 8, 2023
1 parent edcdb7d commit 5166f0d
Show file tree
Hide file tree
Showing 4 changed files with 45,536 additions and 45,457 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ module.exports = grammar({

inline_python: $ => seq('${@', $.expression, '}'),

variable_expansion: $ => seq('${', $.identifier, '}'),
variable_expansion: $ => seq('${', optional($.identifier), '}'),

identifier: _ => /[a-zA-Z0-9_-]+/,

Expand Down
12 changes: 10 additions & 2 deletions src/grammar.json

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

2 changes: 1 addition & 1 deletion src/node-types.json

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

Loading

0 comments on commit 5166f0d

Please sign in to comment.