tree-sitter / tree-sitter-typescript

TypeScript grammar for tree-sitter
MIT License
360 stars 109 forks source link

GitHub Rendering/Highlighting Issue #226

Closed tmillr closed 8 months ago

tmillr commented 2 years ago

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

amaanq commented 8 months ago

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