On Thursday, March 1, 2012 9:01:57 AM UTC-7, Ben Fritz wrote:
> On Feb 29, 10:12 am, Vadim Zeitlin <vz-...@zeitlins.org> wrote:
>
...
> To highlight in the wrong places as errors, I adapted your script as
> follows:
>
...
It happens that I'm also looking for an answer to the original question, which this unfortunately does not address. In my case, I'm merging two syntax files, and the "included" syntax file (perl.vim) will only work if it's a "top" syntax, yet the "main" syntax file has some matches/keywords that conflict with the perl code (in particular, quoted expressions).
runtime! syntax/perl.vim
unlet b:current_syntax
runtime! syntax/calibre.vim
syntax region calibrePerl start='\[\[' end='\]\]' contains=@perlTop
Short of creating a whole slew of perl "containedin=calibrePerl" duplicate expressions after the calibre syntax load (to give them priority), is there any way to deactivate some/all of the calibre.vim syntax within the [[ and ]] delimiters?
I've tried everything I can think of, and everything just runs into some unfortunate side-effect.
Thanks,
-- Mario
--
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
Friday, August 17, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment