浏览代码

narrow decorator match to exclude matrix multiplication

Jan Hermann 9 年前
父节点
当前提交
84f5cf9ce6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      syntax/python.vim

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

190
 " Decorators (new in Python 2.4)
190
 " Decorators (new in Python 2.4)
191
 "
191
 "
192
 
192
 
193
-syn match   pythonDecorator	"@" display nextgroup=pythonDottedName skipwhite
193
+syn match   pythonDecorator	"\(^\s*\)\@<=@" display nextgroup=pythonDottedName skipwhite
194
 if s:Python2Syntax()
194
 if s:Python2Syntax()
195
   syn match   pythonDottedName "[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*" display contained
195
   syn match   pythonDottedName "[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*" display contained
196
 else
196
 else