-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Improve highlighting of identifiers #286
base: master
Are you sure you want to change the base?
Improve highlighting of identifiers #286
Conversation
5067c68
to
fa2700b
Compare
@@ -41,6 +41,9 @@ runtime syntax/ts-common/cluster.vim | |||
runtime syntax/ts-common/function.vim | |||
runtime syntax/ts-common/decorator.vim | |||
|
|||
hi def link typescriptIdentifierName Identifier | |||
hi def link typescriptProp Identifier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should Prop be linked to Identifier? It will make both option and field in expression likeoption.field
highlighted as identifiers.
Also, can you paste a screenshot for the change? thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vim only has Identifier
, so it doesn't distinguish between variables and fields. Currently, option
and field
already look the same since both are unlinked.
I noticed on NeoVim the original coloring is more diverse and differentiated. The updated syntax highlighting is not too clear. Say, the |
I can change it to unlink As long as |
This allows customisation for how variable/member identifiers are highlighted and links them to Identifier by default.
Vim docs:
Identifier any variable name
.