-
Notifications
You must be signed in to change notification settings - Fork 15
Add syntax group for colors and numbers #13
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
Conversation
Highlight Numbers and colors as Numbers Giving colors a group now allows for using https://github.com/ap/vim-css-color types plugins Signed-off-by: Fymyte <pierguill@gmail.com>
Hi @Fymyte, thank you for the contribution and sorry for not seeing this earlier. I will take a look and get back to you. |
I think that for the colors, we should only match something like |
Signed-off-by: Fymyte <pierguill@gmail.com>
I think I finally managed to restrain color matching. I found what I was doing wrong if you can test this |
Hey @Fymyte I did some testing today and I am not sure if we are there yet. |
Signed-off-by: Fymyte <pierguill@gmail.com>
Signed-off-by: Fymyte <pierguill@gmail.com>
Signed-off-by: Fymyte <pierguill@gmail.com>
Fixed matching for colors with only 3 char, uses vim's builtin match for Hexa characters In the latter, I had to tweak the |
Signed-off-by: Fymyte <pierguill@gmail.com>
I have created a new |
Ah, I got it now, let's keep it as it is. |
Highlight Numbers and colors as Numbers
Giving colors a group now allows for using https://github.com/ap/vim-css-color types plugins
I am definitely not an expert in pattern matching so I've felt my way along and stopped when it worked
Any advice on how to improve those patterns is very welcome.
Signed-off-by: Fymyte pierguill@gmail.com