tree-sitter-rescript
tree-sitter-rescript copied to clipboard
Top level error for simple binding
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] - [0, 15]
pattern: (value_identifier [0, 4] - [0, 5])
body: (function [0, 8] - [0, 15]
parameters: (formal_parameters [0, 8] - [0, 10])
body: (number [0, 14] - [0, 15])))))
A.res 0.93 ms 16 bytes/ms (ERROR [0, 0] - [0, 15])
Is that first error node a bug?
It works on my side, did you use the tree-sitter binary from node_modules ?
Ah, no I did a a global install of the latest tree-sitter. Could that be it?