Skip to content

Commit

Permalink
fix: parameters with a type annotation can be prefixed with a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Jan 26, 2024
1 parent 96a8f1e commit 07f7192
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 @@ -281,7 +281,7 @@ module.exports = grammar({
$._procedure_type,
),
)),
optional(seq(':', $.type, optional($.identifier), optional(seq('=', $.expression)))),
optional(seq(':', optional($.tag), $.type, optional($.identifier), optional(seq('=', $.expression)))),
)),
default_parameter: $ => seq(
optional('using'),
Expand Down

0 comments on commit 07f7192

Please sign in to comment.