diff --git a/Makefile b/Makefile index 30c6c4a..bf88d8f 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,8 @@ TS=yarn tree-sitter wild_github_repos := rescript-lang/rescript-react \ rescript-association/rescript-lang.org \ tinymce/rescript-webapi \ - cca-io/rescript-material-ui + cca-io/rescript-material-ui \ + rescript-association/reanalyze wild_sandboxes := $(patsubst %,test_wild/%,$(wild_github_repos)) diff --git a/grammar.js b/grammar.js index 80e4ffa..324b84c 100644 --- a/grammar.js +++ b/grammar.js @@ -468,7 +468,7 @@ module.exports = grammar({ '=', repeat($.decorator), $.expression, - repeat(alias($._let_binding_and, $.let_binding)), + optional(alias($._let_binding_and, $.let_binding)), )), ), diff --git a/test/corpus/let_bindings.txt b/test/corpus/let_bindings.txt index 52a799a..cc15c77 100644 --- a/test/corpus/let_bindings.txt +++ b/test/corpus/let_bindings.txt @@ -257,11 +257,11 @@ and b = c (decorator (decorator_identifier)) (decorator (decorator_identifier)) (value_identifier) - (value_identifier)) - (let_binding - (decorator (decorator_identifier)) (value_identifier) - (number))))) + (let_binding + (decorator (decorator_identifier)) + (value_identifier) + (number)))))) =========================================== Labled function with uncurried