Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Some incorrect highlighting #3

Closed
dre3k opened this Issue · 5 comments

3 participants

@dre3k

It's easy to see in the following example:
h1 this is header h1
p this is paragraph p

div
  h1 this is header h1
  p this is paragraph p 

vim-slim incorrect highlighting example

@stefanoverna

i guess the problem is due to the fact that HTML is simply included to the syntax, so any tag name gets highlighted randomly. is there anyone out there with the knowledge to implement a real syntax? it should not be too difficult, considering that large parts of the code can probably be pasted from https://github.com/tpope/vim-haml/blob/master/syntax/haml.vim

@stonean
Owner

It's not quite as simple as copying haml.vim. Slim's syntax doesn't have the same constraints and therefore makes it a bit more difficult.

Pull requests are very welcome.

@stefanoverna

I'll make a try Andrew :) thanks

@stonean
Owner

corrected with @stefanoverna 's great work

@stonean stonean closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.