tree-sitter-rescript icon indicating copy to clipboard operation
tree-sitter-rescript copied to clipboard

ReScript parser for Tree-Sitter

Results 20 tree-sitter-rescript issues
Sort by recently updated
recently updated
newest added

```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...

As we discuss here : https://github.com/rescript-lang/vim-rescript/issues/49#issuecomment-905650526 should we highlight functions ?

bikeshedding

For javascript, undefined have it's own color. I think we can have a dedicated color for unit ?

bikeshedding

```rescript external toString: [> ] => string = "%identity" #Hello->toString->Js.log ``` [Playground](https://rescript-lang.org/try?version=v11.1.2&code=KYDwLsBOB2CGA2ACMB7AymSBLaBzAXIgNoB8iAuogLxkDOmOu1iARAKRYAmw0YWYATxYAoYQGIAEsHjwUAWhKoM2PAoBStAHSzcwoA) ``` (source_file [0, 0] - [3, 0] (external_declaration [0, 0] - [0, 47] (value_identifier [0, 9] - [0,...

```rescript module type T = { type t } module T = { type t } let make = (): module(T) => module(T) module T2 = unpack(make(): T) ``` [Playground](https://rescript-lang.org/try?version=v11.1.2&code=LYewJgrgNgpgBAFwJ4Ad4BU4F44G8BQciq8C+AvvvqJLHJjgUcmohVbAnMAIYDW8HAAoAlAC5u4aDCHoR2AHyTaMuVRrT6AJmxwIAOxQ8AxnyG8BoiWqA)...

When running `tree-sitter parse A.res` with `let a = () => 5` I got: ``` (source_file [0, 0] - [0, 15] (ERROR [0, 0] - [0, 15] (let_binding [0, 4]...

ReScript 12 reformats `%re()` to `/RE/` which cannot be parsed correctly.

The `npm run parse filename` is throwing error and not parsing the complete code. Below is sample output ``` (array [90, 12] - [90, 14])))))) (ERROR [91, 12] - [1861,...