Hi all,
I'm trying to create a syntax for my own mine.vim.
I always highlight [words between square brackets in one line] in red.
What if the mentioned square brackets are nested like ...
[words [inside another brackets]]?
I got red color only the first 3 [, [ and ].
But the color for the last one (]) is still white.
The relevant lines of mine.vim are as followings.
% grep mineRed ~/.vim/syntax/mine.vim
syn region mineRed start=+\[+ skip=+\\\\\|\\'+ end=+\]+ oneline
hi def link mineRed SpecialChar
Actually I don't know much about vim syntax highlighting.
I copied these commands from somewhere else (mostly help.vim).
And I then modified it to suit my needs.
Any input would be highly appreciated. Thanks,
--
Gua Chung Lim
"UNIX is basically a simple operating system,
but you have to be a genius to understand the simplicity."
-- Dennis M. Ritchie
--
--
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