34597"syn match" proposal
- Feb 2, 2004-----BEGIN PGP SIGNED MESSAGE-----
I was trying to fix highlighting of the following 2 lines (my .vimrc)
map <S-F10> :syn match PreProc "^[^:]\+:"<CR>
1) [in vim.vim syntax file]
syn cluster vimSynMtchGroup contains=...,vimSynRegPat
syn region vimSynMatchRegion ... contains=@vimSynMtchGroup
That means that "match blah-blah" may have more than
one pattern. For example:
(*) syn match "a" contains=x "b"
(as to my case : "<CR>" and on is matched as if it's next pattern)
Since i was trying to fix according to vim's behaviour i found :
2) [vim, sources, somewhere]
Vim excepts the line (*), uses the first pattern and silently
discards the second (and on?) pattern.
1) Give an error when several patterns to "match" given
2) Fix the syntax file according to #1 when(if) it's agreed and fixed
I'm not good at C and I am not familiar with vim's sources.
That means that I can try #2 but not #1.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
- Next post in topic >>