On 12/17/2010 10:26 AM, Ben Fritz wrote:
On Dec 16, 1:21 pm, AK<[email protected]> wrote:
On 12/16/2010 02:08 PM, Ben Fritz wrote:
syn region hl1 start=/(/ end=/)/
hi def hl1 guifg=#57a guibg=#333
(test) is not highlighted at all.
syn match potlTab0 /^ [^\t].*/
hi def potlTab0 ctermfg=1 cterm=NONE guifg=brown
Your syn match command either needs a contains=hl1, or your syn region
command needs a containedin=potltab0.
Your syn match will match "a space at the beginning of the line,
followed by anything not a tab, followed by any number of anything".
Actually it also had a 'ยท' char at the beginning of it, but then I
realized I had another syn match that matched all other lines and
it didn't set colour to anything so I forgot about it (because the
syn group pattern was on a line that wasn't highlighted).. adding it
as containedin arg fixed the problem!
thanks! -ak
--
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