tree-sitter-rescript
tree-sitter-rescript copied to clipboard
ReScript parser for Tree-Sitter
Some projects require the generated files to be present in a tree-sitter repository to use them. Noteably the [helix editor](https://github.com/helix-editor/helix/blob/1e7c01d75be649c307636c8ad98e5c7de8a02925/languages.toml#L1708) is currently refferencing [a fork](https://github.com/jaredramirez/tree-sitter-rescript) of this grammar and therefore...
This PR contains some updates to existing highlights to conform to neovim's latest documentation, and also introduces a few missing ones. The new features are: - Highlights function calls -...
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]...
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 always wanted to upgrade the ReScript online playground to the newest CodeMirror version, but CM transitioned from regex based language parsers to a more sophisticated parser system called [Lezer](https://lezer.codemirror.net/)....
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/