Skip to content

Commit da44f65

Browse files
committed
fix and let bindings
1 parent 39720a2 commit da44f65

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ module.exports = grammar({
468468
'=',
469469
repeat($.decorator),
470470
$.expression,
471-
repeat(alias($._let_binding_and, $.let_binding)),
471+
optional(alias($._let_binding_and, $.let_binding)),
472472
)),
473473
),
474474

test/corpus/let_bindings.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,11 @@ and b = c
257257
(decorator (decorator_identifier))
258258
(decorator (decorator_identifier))
259259
(value_identifier)
260-
(value_identifier))
260+
(value_identifier)
261261
(let_binding
262262
(decorator (decorator_identifier))
263263
(value_identifier)
264-
(number)))))
264+
(number))))))
265265

266266
===========================================
267267
Labled function with uncurried

0 commit comments

Comments
 (0)