Skip to content

Commit 29c1fd2

Browse files
authored
Merge pull request #172 from aspeddro/fix-reanalyze
Support reanalyze examples
2 parents f33d87c + 81c4a7d commit 29c1fd2

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ TS=yarn tree-sitter
88
wild_github_repos := rescript-lang/rescript-react \
99
rescript-association/rescript-lang.org \
1010
tinymce/rescript-webapi \
11-
cca-io/rescript-material-ui
11+
cca-io/rescript-material-ui \
12+
rescript-association/reanalyze
1213

1314
wild_sandboxes := $(patsubst %,test_wild/%,$(wild_github_repos))
1415

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: 4 additions & 4 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))
261-
(let_binding
262-
(decorator (decorator_identifier))
263260
(value_identifier)
264-
(number)))))
261+
(let_binding
262+
(decorator (decorator_identifier))
263+
(value_identifier)
264+
(number))))))
265265

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

0 commit comments

Comments
 (0)