Skip to content

Commit 39ba0d8

Browse files
committed
Fix operators <<= and >>=
1 parent b56fc25 commit 39ba0d8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

syntax/python.vim

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

112112
"
113113
" Decorators (new in Python 2.4)

tests/test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,22 @@ async def Test
6969
# Operators
7070

7171
and or in is not
72-
=
72+
7373
- + * ** @ / // %
7474
& | ^ ~ << >>
7575
< <= == != >= >
7676

77+
=
78+
-= += *= **= @= /= //= %=
79+
&= |= ^= ~= <<= >>=
80+
7781
# Erroneous operators
7882

7983
$ ?
8084
===
8185
-- ++ *** @@ /// %%
8286
&& || ^^ ~~ <<< >>>
83-
<== <<= !== !!= >== >>=
87+
<== !== !!= >==
8488
%- +- -+
8589

8690
# Numbers

0 commit comments

Comments
 (0)