Skip to content
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

Syntax for $ as key #174

Open
ycmjason opened this issue Dec 27, 2018 · 6 comments
Open

Syntax for $ as key #174

ycmjason opened this issue Dec 27, 2018 · 6 comments
Assignees

Comments

@ycmjason
Copy link

fn({
  $a: 3
});

The $ will not be highlighted properly:
image

Expected:
image

Thanks for the good work!

@othree othree self-assigned this Dec 28, 2018
@othree
Copy link
Owner

othree commented Dec 31, 2018

Hi, what is your Vim version?
I use syntax iskeyword to do this now.
It requires 7.4-1142

@ycmjason
Copy link
Author

@othree Hi, I am currently using neovim. Perhaps the problem was with neovim?

@othree
Copy link
Owner

othree commented Jan 2, 2019

Sorry, I am not sure which version of nvim supports this feature.
Can you try execute manually:

syn iskeyword @,48-57,_,192-255,$

@ycmjason
Copy link
Author

ycmjason commented Jan 3, 2019

I have tried it, confirming that it will work!

@othree
Copy link
Owner

othree commented Jan 4, 2019

What do you mean work. The highlight works after you execute the command?

@ycmjason
Copy link
Author

@othree

Yes. After running your suggested command: syn iskeyword @,48-57,_,192-255,$ the highlight is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants