Skip to content

Commit

Permalink
Fix parsing of use
Browse files Browse the repository at this point in the history
Allow the module value of the use declaration to use parenthesis
expressions.
  • Loading branch information
CabalCrow committed May 23, 2024
1 parent a585132 commit 3d69353
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 @@ -118,7 +118,7 @@ module.exports = grammar({
seq(
optional(MODIFIER().visibility),
KEYWORD().use,
field("module", choice($.val_string, $.unquoted)),
field("module", choice($.val_string, $.expr_parenthesized, $.unquoted)),
optional(field("import_pattern", $.scope_pattern)),
),
),
Expand Down

0 comments on commit 3d69353

Please sign in to comment.