8000 Highlight comments inside class/function arg lists · python-mode/python-mode@ba3ec25 · GitHub
[go: up one dir, main page]

Skip to content

Commit ba3ec25

Browse files
committed
Highlight comments inside class/function arg lists
1 parent 9c8468e commit ba3ec25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/python.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ endif
8080
syn match pythonFunction "\%(\%(def\s\|@\)\s*\)\@<=\h\%(\w\|\.\)*" contained nextgroup=pythonVars
8181
syn region pythonVars start="(" skip=+\(".*"\|'.*'\)+ end=")" contained contains=pythonParameters transparent keepend
8282
syn match pythonParameters "[^,]*" contained contains=pythonParam skipwhite
83-
syn match pythonParam "[^,]*" contained contains=pythonExtraOperator,pythonLambdaExpr,pythonBuiltinObj,pythonBuiltinType,pythonConstant,pythonString,pythonNumber,pythonBrackets,pythonSelf skipwhite
83+
syn match pythonParam "[^,]*" contained contains=pythonExtraOperator,pythonLambdaExpr,pythonBuiltinObj,pythonBuiltinType,pythonConstant,pythonString,pythonNumber,pythonBrackets,pythonSelf,pythonComment skipwhite
8484
syn match pythonBrackets "{[(|)]}" contained skipwhite
8585

8686
syn keyword pythonStatement class nextgroup=pythonClass skipwhite
8787
syn match pythonClass "\%(\%(class\s\)\s*\)\@<=\h\%(\w\|\.\)*" contained nextgroup=pythonClassVars
8888
syn region pythonClassVars start="(" end=")" contained contains=pythonClassParameters transparent keepend
89-
syn match pythonClassParameters "[^,\*]*" contained contains=pythonBuiltin,pythonBuiltinObj,pythonBuiltinType,pythonExtraOperatorpythonStatement,pythonBrackets,pythonString skipwhite
89+
syn match pythonClassParameters "[^,\*]*" contained contains=pythonBuiltin,pythonBuiltinObj,pythonBuiltinType,pythonExtraOperatorpythonStatement,pythonBrackets,pythonString,pythonComment skipwhite
9090

9191
syn keyword pythonRepeat for while
9292
syn keyword pythonConditional if elif else

0 commit comments

Comments
 (0)
0