@@ -72,15 +72,16 @@ endif
7272 syn keyword pythonStatement exec return
7373 syn keyword pythonStatement pass raise
7474 syn keyword pythonStatement global nonlocal assert
75- syn keyword pythonStatement lambda yield
75+ syn keyword pythonStatement yield
76+ syn keyword pythonLambdaExpr lambda
7677 syn keyword pythonStatement with as
7778
7879 syn keyword pythonStatement def nextgroup =pythonFunction skipwhite
7980 syn match pythonFunction " \% (\% (def\s\| @\)\s *\)\@ <=\h\% (\w\|\.\) *" contained nextgroup =pythonVars
8081 syn region pythonVars start =" (" end =" )" contained contains =pythonParameters transparent keepend
81- syn match pythonParameters " [^,]*" contained contains =pythonExtraOperator, pythonParam skipwhite
82- syn match pythonParam " = [^,]*" contained contains =pythonBuiltinObj,pythonBuiltinType,pythonConstant,pythonStatement,pythonNumber, pythonString,pythonNumber,pythonBrackets skipwhite
83- syn match pythonBrackets " [(|)]" contained skipwhite
82+ syn match pythonParameters " [^,]*" contained contains =pythonParam skipwhite
83+ syn match pythonParam " [^,]*" contained contains =pythonExtraOperator,pythonLambdaExpr, pythonBuiltinObj,pythonBuiltinType,pythonConstant,pythonString,pythonNumber,pythonBrackets,pythonSelf skipwhite
84+ syn match pythonBrackets " { [(|)]} " contained skipwhite
8485
8586 syn keyword pythonStatement class nextgroup =pythonClass skipwhite
8687 syn match pythonClass " \% (\% (class\s\)\s *\)\@ <=\h\% (\w\|\.\) *" contained nextgroup =pythonClassVars
@@ -325,6 +326,7 @@ endif
325326" =============
326327
327328 hi def link pythonStatement Statement
329+ hi def link pythonLambdaExpr Statement
328330 hi def link pythonInclude Include
329331 hi def link pythonFunction Function
330332 hi def link pythonClass Type
0 commit comments