Pedro Castro

Results 78 issues of Pedro Castro

Changes: - Bump ReScript to 10.1.2 - Bump `rescript-react-native` to 0.70.3 - Update `bsconfig.json` to the new JSX config Close #30 [Template v0.71.3](https://github.com/facebook/react-native/tree/v0.71.3/template)

Tracking ReScript v11 syntax changes: - [x] Extensible records (e.g. type `t = {...t1, x:int, ...t2}` https://github.com/rescript-lang/rescript-compiler/issues/5659 - [x] Partial application of uncurried functions: `foo(1, ...)` https://github.com/rescript-lang/rescript-compiler/pull/6166 - [x] Dynamic...

Close #228 The end of `and` keyword must have a space ``` (source_file [0, 0] - [4, 0] (let_declaration [0, 0] - [0, 20] (let_binding [0, 4] - [0, 20]...

```rescript let andd = [1, 2, 3] andd[0]->Js.log andd[1]->Js.log ``` [Playground](https://rescript-lang.org/try?version=v10.1.2&code=DYUwLgBAhgdgJnCBeCBtAjAGggJmwZgF0AoY2BVABkIFoA+AKQGcA6YAewHMz44NbGrDpyA) ``` (source_file [0, 0] - [4, 0] (ERROR [0, 0] - [3, 15] (let_binding [0, 4] - [0, 20]...

```rescript if true { true } else { false } ``` ``` (source_file [0, 0] - [6, 0] (expression_statement [0, 0] - [2, 1] (if_expression [0, 0] - [2, 1]...

bug

I think now the parser covers the language well. We can publish to npm and crates.io. This requires some adaptations: 1. Update CI to publish on every tag `v*` push....

ReScript v10.1 introduced docstrings for values, types, and modules. - `/**Docstring*/`: before value and types - `/***Toplevel docstrins*/`: top level modules The two comments above are parsed as `comment`. We...

I was playing with this feature. I can move to this repo. What is necessary: Adjust CI to compile to wasm and commit to `gh-pages` branch https://github.com/aspeddro/tree-sitter-rescript-web-playground https://aspeddro.github.io/tree-sitter-rescript-web-playground/

```res // comment 1 // comment 2 // comment 3 // comment 4 ``` ``` (source_file [0, 0] - [7, 0] (comment [0, 0] - [0, 12]) (comment [2, 0]...

bug

This PR add basic support to indents. Some cases that have not been implemented: ## Variant ```res type user = | Id | Name ``` https://user-images.githubusercontent.com/16160544/153487870-596bf149-8c67-4cac-baeb-50668d369932.mp4 How to set the...