aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-08 21:15:49 +0000
committerChris Larson <clarson@kergoth.com>2004-12-08 21:15:49 +0000
commitb742cd9b24d0171bb39c54fec94bcebd4047358b (patch)
tree6462bd2b3734a1bf8cc049dc9eed281e5f6c91f6
parent4f80be8f2dba4ae89c055ba42f3bf7e2826ee537 (diff)
downloadbitbake-b742cd9b24d0171bb39c54fec94bcebd4047358b.tar.gz
bitbake-b742cd9b24d0171bb39c54fec94bcebd4047358b.tar.bz2
bitbake-b742cd9b24d0171bb39c54fec94bcebd4047358b.zip
Vim syntax: add a catchall which should flag anything which isn't explicitly matched as Error, thereby highlighting some incorrect syntax as such.
-rw-r--r--contrib/vim/syntax/bb.vim4
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