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

No highlighted color on close tag #28

Closed
iEricKoh opened this issue Aug 21, 2018 · 6 comments
Closed

No highlighted color on close tag #28

iEricKoh opened this issue Aug 21, 2018 · 6 comments
Labels

Comments

@iEricKoh
Copy link

iEricKoh commented Aug 21, 2018

Check my screenshot below, the </div> has the white color which not the same with the start tag in green color.

2018-08-21-19 14 38_1193_x_976

@yuezk
Copy link
Collaborator

yuezk commented Nov 6, 2018

@iEricKoh I think this is because of your color scheme. You can put your cursor on the close tag, and run the fellow command in the command line to see the output.

:echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"
name") . ">"

@iEricKoh
Copy link
Author

iEricKoh commented Nov 7, 2018

@iEricKoh I think this is because of your color scheme. You can put your cursor on the close tag, and run the fellow command in the command line to see the output.

:echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"
name") . ">"

This is what I got after run your command above:

hi<jsxCloseString> trans<jsxCloseString> lo<>
Press ENTER or type command to continue

@yuezk
Copy link
Collaborator

yuezk commented Nov 7, 2018

@iEricKoh What's the color scheme of your vim?

@iEricKoh
Copy link
Author

iEricKoh commented Nov 7, 2018

@yuezk I am using dracula

@yuezk
Copy link
Collaborator

yuezk commented Nov 7, 2018

@iEricKoh I found the reason. We use the Identifier highlighting group to highlight the close tag, but the Identifier highlighting group in the dracula color scheme is not highlighted.

To fix this, you can add hi! link Identifier DraculaPurple in your vimrc, like this:

syntax on
color dracula
hi! link Identifier DraculaPurple 

image

@iEricKoh
Copy link
Author

iEricKoh commented Nov 8, 2018

@yuezk Cool, it works!!!

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

No branches or pull requests

2 participants