@@ -72,15 +72,16 @@ endif
72
72
syn keyword pythonStatement exec return
73
73
syn keyword pythonStatement pass raise
74
74
syn keyword pythonStatement global nonlocal assert
75
- syn keyword pythonStatement lambda yield
75
+ syn keyword pythonStatement yield
76
+ syn keyword pythonLambdaExpr lambda
76
77
syn keyword pythonStatement with as
77
78
78
79
syn keyword pythonStatement def nextgroup =pythonFunction skipwhite
79
80
syn match pythonFunction " \% (\% (def\s\| @\)\s *\)\@ <=\h\% (\w\|\.\) *" contained nextgroup =pythonVars
80
81
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
84
85
85
86
syn keyword pythonStatement class nextgroup =pythonClass skipwhite
86
87
syn match pythonClass " \% (\% (class\s\)\s *\)\@ <=\h\% (\w\|\.\) *" contained nextgroup =pythonClassVars
@@ -325,6 +326,7 @@ endif
325
326
" =============
326
327
327
328
hi def link pythonStatement Statement
329
+ hi def link pythonLambdaExpr Statement
328
330
hi def link pythonInclude Include
329
331
hi def link pythonFunction Function
330
332
hi def link pythonClass Type
0 commit comments