Skip to content

Commit

Permalink
fix: as annotations with array types
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Jan 24, 2024
1 parent 56ad7c4 commit 60e71b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,13 @@ module.exports = grammar({
optional($.comment),
),

as_annotation: $ => seq('[[', '@as', $.type, ']]', optional($.comment)),
as_annotation: $ => seq(
choice(
seq('[[', '@as', $.type, ']]'),
seq('[=[', '@as', $.type, ']=]'),
),
optional($.comment),
),

qualifier: _ => choice('public', 'protected', 'private', 'package'),

Expand Down

0 comments on commit 60e71b3

Please sign in to comment.