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

Some incorrect highlighting #3

Closed
dre3k opened this issue Mar 29, 2011 · 5 comments
Closed

Some incorrect highlighting #3

dre3k opened this issue Mar 29, 2011 · 5 comments

Comments

@dre3k
Copy link

dre3k commented Mar 29, 2011

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
Copy link
Contributor

+1

@stefanoverna
Copy link
Contributor

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
Copy link
Contributor

stonean commented Dec 13, 2011

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
Copy link
Contributor

I'll make a try Andrew :) thanks

@stonean
Copy link
Contributor

stonean commented Dec 16, 2011

corrected with @stefanoverna 's great work

@stonean stonean closed this as completed Dec 16, 2011
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

3 participants