Skip to content

Commit b7ab762

Browse files
committed
Merge branch 'main' into fix/block-comment-in-switch-expression
2 parents fd837e1 + cafdc4f commit b7ab762

5 files changed

Lines changed: 139873 additions & 139324 deletions

File tree

grammar.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ module.exports = grammar({
8989
[$.list, $.list_pattern],
9090
[$.array, $.array_pattern],
9191
[$.dict, $.dict_pattern],
92-
[$.type_declaration],
93-
[$.let_declaration],
9492
[$.variant_identifier, $.module_identifier],
9593
[$.variant, $.variant_pattern],
9694
[$.variant_arguments, $._variant_pattern_parameters],
@@ -755,7 +753,7 @@ module.exports = grammar({
755753
-1,
756754
seq(
757755
choice(
758-
$.value_identifier,
756+
seq(optional("?"), $.value_identifier),
759757
$._literal_pattern,
760758
$._destructuring_pattern,
761759
$.polyvar_type_pattern,

src/grammar.json

Lines changed: 19 additions & 8 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: 8 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)