Skip to content

Commit

Permalink
fix: allow optional anchors in valid spots
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Feb 13, 2024
1 parent 67e9e00 commit 5ba058c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module.exports = grammar({

grouping: $ => seq(
"(",
repeat($._group_expression),
repeat(seq($._group_expression, optional("."))),
")",
quantifier($),
captures($),
Expand Down Expand Up @@ -105,7 +105,7 @@ module.exports = grammar({
),
")",
quantifier($),
captures($)
captures($),
),
_field_name: $ => seq($.identifier, ":"),
field_definition: $ => seq(
Expand Down

0 comments on commit 5ba058c

Please sign in to comment.