newlisp.vim
Posted: Tue Nov 06, 2007 12:51 am
While editing my newlisp script in Vim, I have noted that standard predicates are not highlighted as keywords. Brief investigation shows that "?" symbol is not listed among valid keyword characters (and Vim highlights a word as a keyword only if it is listed among keywords and it consists of keyword characters only). Looking deeper in the code, I noted also that neither of "!$%&" are listed as keyword characters. This means that atoms containing these symbols will be not treated as words by word movement commands. And, BTW, variables $0, $1 etc. was not highlighted too. So I added these five characters to the keywords characters list, and life immediately became bright and shiny! ;-)
Update: Investigating further -- also "\^|~" was missed. Updated version:
P.S. I use newlisp.vim 1.0.52 from Contributed Code page.
Code: Select all
"before:
setlocal iskeyword=42,43,45,47-58,60-62,64-90,97-122,_
"after:
setlocal iskeyword=33,36-38,42,43,45,47-58,60-90,97-122,_
Code: Select all
setlocal iskeyword=33,36-38,42,43,45,47-58,60-90,92,94-122,124,126,_