aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-08 07:24:33 +0000
committerChris Larson <clarson@kergoth.com>2004-12-08 07:24:33 +0000
commitda387eb0b1744511989b8c725e0042e5a283efb5 (patch)
tree3e6563e12b42803ed4559d90dccc646d27724096 /contrib
parentdee4f44b1c31704d626961fa2f0a3f67aec851eb (diff)
downloadbitbake-da387eb0b1744511989b8c725e0042e5a283efb5.tar.gz
Vim syntax update: match anonymous python functions with no specified name.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/vim/syntax/bb.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim
index a79993dab..56019074c 100644
--- a/contrib/vim/syntax/bb.vim
+++ b/contrib/vim/syntax/bb.vim
@@ -72,7 +72,7 @@ if exists("b:current_syntax")
endif
syn keyword bbPythonFlag python contained nextgroup=bbFunction
-syn match bbPythonFuncDef "^\(python\s\+\w\+\s*()\s*\)\({\)\@=" contains=bbPythonFlag,bbFunction,bbDelimiter nextgroup=bbPythonFuncRegion
+syn match bbPythonFuncDef "^\(python\s\+\)\(\w\+\)\?\(\s*()\s*\)\({\)\@=" contains=bbPythonFlag,bbFunction,bbDelimiter nextgroup=bbPythonFuncRegion
syn region bbPythonFuncRegion matchgroup=bbDelimiter start="{" end="^}$" keepend contained contains=@python
"hi def link bbPythonFuncRegion Comment