You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not familiar enough to say exactly what that valid tree should look like, because I'm not using tree-sitter directly — I'm using it via Difftastic (with git -c diff.external=difft diff), and these parse errors cause Difftastic to fall back to a text-based (not syntax-aware) diff.
Repro
constfoo: import('./bar').Bar<string>='baz';
The text was updated successfully, but these errors were encountered:
See #246 where a parse error involving the import(...) syntax in a type assertion context was fixed — I suppose that fix just overlooked the import(...).Type<TypeParams> case.
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)tree-sitter 0.25.0 (ba19fe31bed96a28aa5a1b9253a716e494ed7a9b)
Describe the bug
A type declaration containing the dynamic import syntax with a type parameter applied fails to parse, though it is valid Typescript.
Steps To Reproduce/Bad Parse Tree
Minimal example:
This is valid Typescript, but tree-sitter-typescript produces a parse error:
Expected Behavior/Parse Tree
I expect a parse tree without error nodes.
I'm not familiar enough to say exactly what that valid tree should look like, because I'm not using tree-sitter directly — I'm using it via Difftastic (with
git -c diff.external=difft diff
), and these parse errors cause Difftastic to fall back to a text-based (not syntax-aware) diff.Repro
The text was updated successfully, but these errors were encountered: