Skip to content

Commit d1b4de2

Browse files
committed
Fix operator error highlighting for = prefix
Fixes vim-python#20
1 parent aacf27d commit d1b4de2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

syntax/python.vim

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

108108
"
109109
" Decorators (new in Python 2.4)

tests/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ async def Test
166166
& | ^ ~ << >>
167167
< <= == != >= >
168168

169-
=
169+
= =- =+ =~
170170
-= += *= **= @= /= //= %=
171171
&= |= ^= ~= <<= >>=
172172

0 commit comments

Comments
 (0)