aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-08 21:04:31 +0000
committerChris Larson <clarson@kergoth.com>2004-12-08 21:04:31 +0000
commit24fb9f524f1d40846983e8ede5f78573a11542fc (patch)
treeaa9d5f050d5bc34c47f5853bcd8b52430f799731 /contrib
parent0669996d356dabd3fb52927e98105fe97bb6c970 (diff)
downloadbitbake-24fb9f524f1d40846983e8ede5f78573a11542fc.tar.gz
Vim syntax: match & highlight the 'fakeroot' flag for functions.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/vim/syntax/bb.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim
index 2a1461be7..f32396bda 100644
--- a/contrib/vim/syntax/bb.vim
+++ b/contrib/vim/syntax/bb.vim
@@ -88,7 +88,8 @@ if exists("b:current_syntax")
unlet b:current_syntax
endif
-syn match bbShellFuncDef "^\(\w\+\)\(python\)\@<!\(\s*()\s*\)\({\)\@=" contains=bbFunction,bbDelimiter nextgroup=bbShellFuncRegion
+syn keyword bbFakerootFlag fakeroot contained nextgroup=bbFunction
+syn match bbShellFuncDef "^\(fakeroot\s*\)\?\(\w\+\)\(python\)\@<!\(\s*()\s*\)\({\)\@=" contains=bbFakerootFlag,bbFunction,bbDelimiter nextgroup=bbShellFuncRegion
syn region bbShellFuncRegion matchgroup=bbDelimiter start="{" end="^}$" keepend contained contains=@shell
"hi def link bbShellFuncRegion Comment
@@ -115,6 +116,7 @@ hi def link bbContinue Special
hi def link bbDef Statement
hi def link bbPythonFlag Type
hi def link bbExportFlag Type
+hi def link bbFakerootFlag Type
hi def link bbStatement Statement
hi def link bbString String
hi def link bbTodo Todo