8000 Merge pull request #402 from lodagro/patch-3 · python-mode/python-mode@8d392ea · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d392ea

Browse files
committed
Merge pull request #402 from lodagro/patch-3
fix #385 (syntax highlighting failure)
2 parents eb9cb47 + 20e14aa commit 8d392ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/python.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ endif
7878

7979
syn keyword pythonStatement def nextgroup=pythonFunction skipwhite
8080
syn match pythonFunction "\%(\%(def\s\|@\)\s*\)\@<=\h\%(\w\|\.\)*" contained nextgroup=pythonVars
81-
syn region pythonVars start="(" end=")" contained contains=pythonParameters transparent keepend
81+
syn region pythonVars start="(" skip=+\(".*"\|'.*'\)+ end=")" contained contains=pythonParameters transparent keepend
8282
syn match pythonParameters "[^,]*" contained contains=pythonParam skipwhite
8383
syn match pythonParam "[^,]*" contained contains=pythonExtraOperator,pythonLambdaExpr,pythonBuiltinObj,pythonBuiltinType,pythonConstant,pythonString,pythonNumber,pythonBrackets,pythonSelf skipwhite
8484
syn match pythonBrackets "{[(|)]}" contained skipwhite

0 commit comments

Comments
 (0)
0