-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function highlight ? #1
Comments
@nkrkv i'm playing with the tree sitter, I added some highlights. I don't know the status of this project, but if you wish I can open a PR. |
Thanks! I’ve read that the idea of Tree-sitter based highlighting is to color the same symbols using the same colors. So that if you see several pink words in random places, you know they refer to the same thing. From that point of view, highlighting function use and not highlighting its declaration is incorrect. And in a language like ReScript where all functions are lambdas the true way is hardly applicable at all. I might be mistaken. Let’s leave the issue floating… If more people would like the call-only highlight… well, it would be worth doing so. |
So, the missing case is when we have higher order function ? Seems good enough to me. Not sure if tree-sitter will/can detect that in the future, probably not :/ |
As we discuss here : rescript-lang/vim-rescript#49 (comment)
should we highlight functions ?
The text was updated successfully, but these errors were encountered: