浏览代码

Merge "narrow decorator match to exclude matrix multiplication"

https://github.com/hdima/python-syntax/pull/47
lilydjwg 8 年前
父节点
当前提交
af6a8275a5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      syntax/python.vim

+ 1
- 1
syntax/python.vim 查看文件

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