From da44f65050b7ebe5cf42f55901a8facda4b5b340 Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Thu, 17 Nov 2022 11:03:51 -0300 Subject: [PATCH 1/3] fix and let bindings --- grammar.js | 2 +- test/corpus/let_bindings.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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..bf2aa8f 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)) + (value_identifier) (let_binding (decorator (decorator_identifier)) (value_identifier) - (number))))) + (number)))))) =========================================== Labled function with uncurried From f85be9f7499e28084f99863c1ff97ac57854d74b Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Thu, 17 Nov 2022 11:09:26 -0300 Subject: [PATCH 2/3] add reanalyze to test_wild Close #68 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) From 81c4a7de3d95b90812c543569ce01c4f06111c0e Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Fri, 18 Nov 2022 15:29:20 -0300 Subject: [PATCH 3/3] indent test --- test/corpus/let_bindings.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/corpus/let_bindings.txt b/test/corpus/let_bindings.txt index bf2aa8f..cc15c77 100644 --- a/test/corpus/let_bindings.txt +++ b/test/corpus/let_bindings.txt @@ -258,10 +258,10 @@ and b = c (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