Browse Source

Merge "narrow decorator match to exclude matrix multiplication"

https://github.com/hdima/python-syntax/pull/47
lilydjwg 7 years ago
parent
commit
af6a8275a5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      syntax/python.vim

+ 1
- 1
syntax/python.vim View File

@@ -192,7 +192,7 @@ syn cluster pythonExpression contains=pythonStatement,pythonRepeat,pythonConditi
192 192
 " Decorators (new in Python 2.4)
193 193
 "
194 194
 
195
-syn match   pythonDecorator	"@" display nextgroup=pythonDottedName skipwhite
195
+syn match   pythonDecorator	"^\s*\zs@" display nextgroup=pythonDottedName skipwhite
196 196
 if s:Python2Syntax()
197 197
   syn match   pythonDottedName "[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*" display contained
198 198
 else