Hello,
I'm looking for a way to define a few :syn-match'es before the definitions from
cpp.vim, but after those of c.vim.
My first idea was to have $HOME/.vim/syntax/cpp.vim defined this way:
runtime! syntax/c.vim
:syn match ......
unlet b:current_syntax
so $VIMRUNTIME/systax/cpp.vim
Even with no definitions of my own, curly-brackets are messed up: all displayed
as if there were unmatched brackets. (cErrInParen).
Can it be fixed or is the only solution to add a
runtime! syntax/cpp-hook.vim
at the beginning of standard C++ syntax file ? (just after the "runtime!
syntax/c.vim")
If the hook is the only solution, could it be officially done ?
BTW, I have another question.
It is preferable to have one complex regex used in syn-match, or two have
several :syn-match defined ?
My regex beeing:
/\(catch\s*(\)\@<=\(\s*\.\.\.\s*\)[EMAIL PROTECTED]&)]*/
--
Luc Hermitte