Skip to content

Commit 752a19f

Browse files
author
Michael Doronin
committed
keyword arguments in decorators
1 parent b8f13b8 commit 752a19f

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
@@ -222,9 +222,9 @@ syn match OptionalParameters /\i*\ze=/ display contained
222222

223223
syn match pythonDecorator "@" display nextgroup=pythonDottedName skipwhite
224224
if s:Python2Syntax()
225-
syn match pythonDottedName "[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*" display contained
225+
syn match pythonDottedName "[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*" display contained nextgroup=FunctionParameters
226226
else
227-
syn match pythonDottedName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*\%(\.\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*\)*" display contained
227+
syn match pythonDottedName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*\%(\.\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*\)*" display contained nextgroup=FunctionParameters
228228
endif
229229
syn match pythonDot "\." display containedin=pythonDottedName
230230

0 commit comments

Comments
 (0)