In the following, the package 'tree-sitter-syntax-visualizer' highlights the selected span, which is computed by the language's tree-sitter grammar.
The span (hopefully the original one from the parser) is at the very bottom of each screenshot.
With tree-sitter-python, I get these (correct) spans in Python code:
With tree-sitter-haskell (current master, locally installed/referenced in the language-haskell package), I get these spans:
this looks good..
...but these look, if not completely wrong, but at least the starting line seems wrong
Comparing the Python scanner.cc to the one from Haskell, I have a wild guess, that maybe for the special token-type LAYOUT_SEMICOLON, there is a missing invocation of
In the following, the package 'tree-sitter-syntax-visualizer' highlights the selected span, which is computed by the language's tree-sitter grammar. The span (hopefully the original one from the parser) is at the very bottom of each screenshot.
With tree-sitter-python, I get these (correct) spans in Python code:
With tree-sitter-haskell (current master, locally installed/referenced in the language-haskell package), I get these spans:
this looks good..
...but these look, if not completely wrong, but at least the starting line seems wrong
Comparing the Python scanner.cc to the one from Haskell, I have a wild guess, that maybe for the special token-type LAYOUT_SEMICOLON, there is a missing invocation of
?