Skip to content

Commit

Permalink
syntax/python.vim: narrow decorator match to exclude matrix multiplic…
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Jun 17, 2016
1 parent 0a84735 commit 711b1f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/python.vim
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ endif
" Decorators (new in Python 2.4)
"

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

0 comments on commit 711b1f1

Please sign in to comment.