Bläddra i källkod

Merge "narrow decorator match to exclude matrix multiplication"

https://github.com/hdima/python-syntax/pull/47
lilydjwg 8 år sedan
förälder
incheckning
af6a8275a5
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      syntax/python.vim

+ 1
- 1
syntax/python.vim Visa fil

@@ -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