From da387eb0b1744511989b8c725e0042e5a283efb5 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Wed, 8 Dec 2004 07:24:33 +0000 Subject: Vim syntax update: match anonymous python functions with no specified name. --- contrib/vim/syntax/bb.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/vim') 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 -- cgit 1.2.3-korg