Skip to content

Commit 0959f6d

Browse files
committed
Do not error highlight PEP 3017 operator
Fixes #11
1 parent c85d026 commit 0959f6d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

syntax/python.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ syn keyword pythonOperator and in is not or
102102
if s:Enabled('g:python_highlight_operators')
103103
syn match pythonOperator '\V=\|-\|+\|*\|@\|/\|%\|&\||\|^\|~\|<\|>\|!='
104104
endif
105-
syn match pythonError '[$?]\|\([-+@%&|^~]\)\1\{1,}\|\([=*/<>]\)\2\{2,}\|\([-=+*@/%&|^~<>]\)\3\@![-+*@/%&|^~<>]\|[<!>]\+=\{2,}\|!\{2,}=\+' display
105+
syn match pythonError '[$?]\|\([-+@%&|^~]\)\1\{1,}\|\([=*/<>]\)\2\{2,}\|\([+=*@/%&|^~<>]\)\3\@![-+*@/%&|^~<>]\|-[+*@/%&|^~<]\|[<!>]\+=\{2,}\|!\{2,}=\+' display
106106

107107
"
108108
" Decorators (new in Python 2.4)

tests/test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ async def Test
117117
-= += *= **= @= /= //= %=
118118
&= |= ^= ~= <<= >>=
119119

120+
->
121+
120122
# Erroneous operators
121123

122124
$ ?

0 commit comments

Comments
 (0)