tree-sitter / tree-sitter-typescript

TypeScript grammar for tree-sitter
MIT License
341 stars 104 forks source link

is this wrong highlight in deconstructed object #165

Closed PBird closed 2 years ago

PBird commented 3 years ago

setReady is a function and is it should be orange like in vscode

this is screenshot from neovim 5.0 with nvim-treesitter :

image

this is from vscode : image

resolritter commented 2 years ago

setReady is a function

Syntactically, setReady is an identifier. Semantically, the identifier is related to a function.

What you are seeing on VSCode is very likely semantic highlighting which is not done by tree-sitter, so I think this issue should be closed.