tree-sitter / tree-sitter-typescript

TypeScript grammar for tree-sitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Rendering/Highlighting Issue

tmillr opened this issue · comments

The following piece of code is valid but it is parsed incorrectly: click here

Here's a link to the TypeScript Playground showing that the snippet above is valid JavaScript or TypeScript: Playground Link

The output of tree-sitter parse is the following: TODO

The code in which this issue presents is not mine. For additional context on this issue, please see this comment and this response to it directly beneath. Thanks

GitHub's implementation is out of scope here - they might be using an old version because that code parses correctly for me on master.