diff options
author | Chris Larson <clarson@kergoth.com> | 2004-12-08 21:15:49 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-12-08 21:15:49 +0000 |
commit | b742cd9b24d0171bb39c54fec94bcebd4047358b (patch) | |
tree | 6462bd2b3734a1bf8cc049dc9eed281e5f6c91f6 /contrib/vim | |
parent | 4f80be8f2dba4ae89c055ba42f3bf7e2826ee537 (diff) | |
download | bitbake-b742cd9b24d0171bb39c54fec94bcebd4047358b.tar.gz |
Vim syntax: add a catchall which should flag anything which isn't explicitly matched as Error, thereby highlighting some incorrect syntax as such.
Diffstat (limited to 'contrib/vim')
-rw-r--r-- | contrib/vim/syntax/bb.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim index 86368762..c8f4bb82 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 |