From b742cd9b24d0171bb39c54fec94bcebd4047358b Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Wed, 8 Dec 2004 21:15:49 +0000 Subject: Vim syntax: add a catchall which should flag anything which isn't explicitly matched as Error, thereby highlighting some incorrect syntax as such. --- contrib/vim/syntax/bb.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim index 863687625..c8f4bb825 100644 --- a/contrib/vim/syntax/bb.vim +++ b/contrib/vim/syntax/bb.vim @@ -16,6 +16,9 @@ endif syn case match +" Catch incorrect syntax (only matches if nothing else does) +syn match bbUnmatched "." + syn match bbComment "^#.*$" display contains=bbTodo syn keyword bbTodo TODO FIXME XXX contained syn match bbDelimiter "[(){}=]" contained @@ -111,6 +114,7 @@ syn match bbStatementRest ".*$" contained contains=bbString,bbVarDeref syn match bbArrayBrackets "[\[\]]" contained hi def link bbArrayBrackets Statement +hi def link bbUnmatched Error hi def link bbVarDeref String hi def link bbContinue Special hi def link bbDef Statement -- cgit 1.2.3-korg