Skip to content

Commit af6a827

Browse files
committed
Merge "narrow decorator match to exclude matrix multiplication"
hdima#47
2 parents 9bd9cbc + ddbd84e commit af6a827

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
@@ -192,7 +192,7 @@ syn cluster pythonExpression contains=pythonStatement,pythonRepeat,pythonConditi
192192
" Decorators (new in Python 2.4)
193193
"
194194

195-
syn match pythonDecorator "@" display nextgroup=pythonDottedName skipwhite
195+
syn match pythonDecorator "^\s*\zs@" display nextgroup=pythonDottedName skipwhite
196196
if s:Python2Syntax()
197197
syn match pythonDottedName "[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*" display contained
198198
else

0 commit comments

Comments
 (0)