Skip to content

Commit d7ac422

Browse files
committed
fix: pat_type requires _pattern instead of pat_ident
1 parent 2684d66 commit d7ac422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ module.exports = grammar({
152152
),
153153

154154
pat_type: $ => seq(
155-
field('pat', $.pat_ident),
155+
field('pat', $._pattern),
156156
':',
157157
field('ty', $._type),
158158
),

0 commit comments

Comments
 (0)