Skip to content

Commit 35c5f36

Browse files
owen-mcCopilot
andcommitted
fix: parse optional overlay localness
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0887ea0 commit 35c5f36

4 files changed

Lines changed: 38570 additions & 38520 deletions

File tree

‎grammar.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ module.exports = grammar({
396396

397397
annotName: $ => $._lower_id,
398398

399-
annotArg: $ => choice($.simpleId, $.this, $.result),
399+
annotArg: $ => seq(choice($.simpleId, $.this, $.result), optional('?')),
400400

401401
moduleName: $ => $.simpleId,
402402

‎src/grammar.json‎

Lines changed: 26 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/node-types.json‎

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)