It looks like this should be parsing as two top-level import_statement's but instead the second import statement is parsing as multiple top-level statements (I guess due to the newline in the middle of it)
Thanks for your bug reports! I've fixed a few of them, the block/label stuff is quite tricky for now though sadly - let me know of other issues you run into!
The following piece of code is valid but it is parsed incorrectly:
Here's a link to the TypeScript Playground showing that the snippet above is valid JavaScript or TypeScript:
https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgIzgXzgMyhEcBQA5MoQNxwD0AVHAMa4gCmAdvFRXKJLPonAIbosOPIX5kgA
The output of
tree-sitter parse
is the following:It looks like this should be parsing as two top-level
import_statement
's but instead the second import statement is parsing as multiple top-level statements (I guess due to the newline in the middle of it)