aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/vim
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/vim
parentdee4f44b1c31704d626961fa2f0a3f67aec851eb (diff)
downloadbitbake-da387eb0b1744511989b8c725e0042e5a283efb5.tar.gz
bitbake-da387eb0b1744511989b8c725e0042e5a283efb5.tar.bz2
bitbake-da387eb0b1744511989b8c725e0042e5a283efb5.zip
Vim syntax update: match anonymous python functions with no specified name.
Diffstat (limited to 'contrib/vim')
-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 a79993da..56019074 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