On Thu, 22 Jan 2009, Brian Schott wrote:
> Bill,
> 
> Yes, I use MacVim but with uneven results. Please look at the
> following link (everyone) and suggest changes for the syntax file
> printed there.
> 

Brian,

this line is incorrect

syntax match jVerb          /["-~#$%^*+|,{}<>?]\./

because the - is interpreted as the range of character from " to ~
but " is 34 and ~ is 126 thus nearly all visible characters followed
by a dot become a syntax class of verb. Putting - in the beginning
should fix the problem. (untested)

syntax match jVerb          /[-"~#$%^*+|,{}<>?]\./

Btw, you may put this into your .vimrc to debug syntax class of tokens
by pressing F3 in normal mode.

" debug syntax file
function! SyntaxName()
  echomsg synIDattr(synID(line("."), col("."), 1), "name")
endfunction
nmap <F3>      :call SyntaxName()<CR>

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩285 張祜  集靈臺二首之二
    虢國夫人承主恩  平明騎馬入宮門  卻嫌脂粉污顏色  淡掃蛾眉朝至尊
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to