> I hacked at this a while ago, and there's a tip in the wiki
>
> http://vim.wikia.com/wiki/Different_syntax_highlighting_within_regions_of_a_file
>
> And the relevant part of my vimrc (I had to modify it to work well with
> PHP) starts at line 74
>
> https://github.com/richoH/dotfiles/blob/master/vimrc
Thank you.
It looks really complicated.
The wiki page with the tip also says (at the end) the highlighting does
not end where it should, and I happen to run into exactly this bug. :(
I also have another question: how do I make a syntax region that starts
with a possibly-quoted identifier, like:
"script"-\delimit'er'
and ends with the /necessarily/ the same *un-quoted* identifier:
script_delimiter
Is there a way to express this with vim syntax highlighting commands ?
Also, I would like to define a new syntax region that is contained in
the shHereDoc group (already defined in syntax/sh.vim), and that:
- start where the shHereDoc starts, if the shHereDoc starts
with the exact text '# vi:ft=sh' as one of the first 4 lines
- ends where the shHereDoc ends
Can I express this with vim syntax highlighting ?
Thank you,
Timothy Madden
--
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
No comments:
Post a Comment