Skip to content

Commit

Permalink
FIX: global declarations were error nodes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
leath-dub committed Jul 17, 2024
1 parent 4af5d82 commit 66403f3
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 @@ -126,7 +126,7 @@ module.exports = grammar({

global_binding: $ => seq(
optional($.declaration_attribute),
$.identifier, ':', $.type, optional(seq('=', $.expression)),
$.identifier, optional(seq(':', $.type)), optional(seq('=', $.expression)),
),

declaration_attribute: $ => seq(
Expand Down

0 comments on commit 66403f3

Please sign in to comment.