Wednesday, October 8, 2014

Re: GViM syntax not working as expected

Shawn H Corey wrote:
> I have created a syntax file for GViM but the yasSpecial are not
> highlighted when embedded. I have attached the syntax file and a test
> file. How do I make the specials highlight when they are embedded?
>
>
Hello:

I tried your yas.vim and test.yas example; here's my comments:

* I got errors:
line 121, E481: No range allowed: ;highlight ...
line 123, E481: No range allowed: ;highlight ...

* why all the leading colons?

* so, I got rid of the offending semicolons and the leading colons.

* yasSpecial is a cluster. You're doing a contains=...,yasSpecial,
which is
treating yasSpecial like a syntax highlighting match or region. To
contain
clusters, use contains=...,@yasSpecial

I've taken the liberty of attaching a modified yas.vim file.

Regards,
Chip Campbell

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment