Skip to content

Commit

Permalink
fix: expansion item is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Aug 28, 2023
1 parent 3c1d4a1 commit d35dd56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ module.exports = grammar({

_expansion_regex: $ => seq(
field('operator', choice('#', alias($._immediate_double_hash, '##'), '%', '%%')),
choice($.regex, alias(')', $.regex), $.string, $.raw_string, alias(/\s+/, $.regex)),
optional(choice($.regex, alias(')', $.regex), $.string, $.raw_string, alias(/\s+/, $.regex))),
),

_expansion_regex_replacement: $ => seq(
Expand Down

0 comments on commit d35dd56

Please sign in to comment.