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

Possibly incorrect highlighting for xml/xsl #5

Open
dmikis opened this issue Jun 19, 2012 · 4 comments
Open

Possibly incorrect highlighting for xml/xsl #5

dmikis opened this issue Jun 19, 2012 · 4 comments

Comments

@dmikis
Copy link

dmikis commented Jun 19, 2012

Opening and closing tags are highlighted by different colors.

Screen Shot

@tomasr
Copy link
Owner

tomasr commented Jun 19, 2012

This is actually intentional, as it makes reading the XML content easier. I could add a config for it, if you'd like.

@dmikis
Copy link
Author

dmikis commented Jun 19, 2012

It would be cool, thank you.

@tomasr
Copy link
Owner

tomasr commented Jun 20, 2012

I looked a bit closer at this, and the reason this happens is because the syntax declared by syntax\xml.vim is this:

hi def link xmlTagName      Function
hi def link xmlEndTag       Identifier

Molokai uses different colors for functions and identifiers. I guess I could add either a g:molokai_no_identifier or g:molokai_no_function setting to force them to be the same, but it will definitely affect the rest, not just xml highlighting.

I could add a g:molokai_no_identifier

@dmikis
Copy link
Author

dmikis commented Jun 20, 2012

It may be solved by this workaround:

if s:molokai_xml_hack == 1
    hi def link xmlEndTag Function
end

But it's a hack.

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