We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ac422 commit 841e2f5Copy full SHA for 841e2f5
grammar.js
@@ -49,7 +49,7 @@ module.exports = grammar({
49
50
supertypes: $ => [
51
$.expr,
52
- $._pattern,
+ $.pattern,
53
$._type,
54
],
55
@@ -141,7 +141,17 @@ module.exports = grammar({
141
142
tuple_type: $ => tuple($._type, false),
143
144
- _pattern: $ => choice(
+ pattern: $ => choice(
145
+ $.pat_type,
146
+ $._pattern,
147
+ ),
148
+
149
+ _pattern: $ => seq(
150
+ optional('$'),
151
+ $._pat,
152
153
154
+ _pat: $ => choice(
155
$.underscore,
156
$.pat_ident,
157
),
0 commit comments