On 12/16/2010 02:08 PM, Ben Fritz wrote:


On Dec 15, 12:03 pm, AK<[email protected]>  wrote:
In vim7.3, syn region doesn't seem to work for me even though syn match
works fine:

syn region hl1 start=/(/ end=/)/
hi def hl1 guifg=#57a guibg=#333

(test) is not highlighted at all.

Syntax regions work fine in Vim 7.3, they are used all over the place
in the official runtime files.

What else is in your syntax file? Does it work if you take the "def"
out of your highlight rule? Is your syntax file actually being
sourced? Or are you entering these from the command line? Is syntax
even turned on? What is the syn match command that works fine? Are
both rules active at the same time?


Thanks for replying!

I tried taking "def" out, does not help. I'm entering from command line
for testing; syntax is turned on, syn match that's working is:

syn match potlTab0 /^愴^\t].*/
hi def potlTab0 ctermfg=1 cterm=NONE guifg=brown

(I'm using gvim btw)

I have a file ftdetect/potl.vim that does: au BufnewFile,BufRead *.potl setf potl .. and syntax/potl.vim that has a bunch of syn match lines, that work fine. I was trying to add some syn region lines to it and they did not
work, so I started experimenting from command line and they still don't
work..  -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

Reply via email to