Skip to content

Commit

Permalink
Fix operators <<= and >>=
Browse files Browse the repository at this point in the history
  • Loading branch information
nfnty committed Feb 24, 2017
1 parent b56fc25 commit 39ba0d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion syntax/python.vim
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ syn keyword pythonOperator and in is not or
if s:Enabled('g:python_highlight_operators')
syn match pythonOperator '\V=\|-\|+\|*\|@\|/\|%\|&\||\|^\|~\|<\|>\|!='
endif
syn match pythonError '[$?]\|\([-+@%&|^~]\)\1\{1,}\|\([=*/<>]\)\2\{2,}\|\([-=+*@/%&|^~<>]\)\3\@![-+*@/%&|^~<>]\|[<!>]\+=\{2,}\|[<!>]\{2,}=\+' display
syn match pythonError '[$?]\|\([-+@%&|^~]\)\1\{1,}\|\([=*/<>]\)\2\{2,}\|\([-=+*@/%&|^~<>]\)\3\@![-+*@/%&|^~<>]\|[<!>]\+=\{2,}\|!\{2,}=\+' display

"
" Decorators (new in Python 2.4)
Expand Down
8 changes: 6 additions & 2 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,22 @@ async def Test
# Operators

and or in is not
=

- + * ** @ / // %
& | ^ ~ << >>
< <= == != >= >

=
-= += *= **= @= /= //= %=
&= |= ^= ~= <<= >>=

# Erroneous operators

$ ?
===
-- ++ *** @@ /// %%
&& || ^^ ~~ <<< >>>
<== <<= !== !!= >== >>=
<== !== !!= >==
%- +- -+

# Numbers
Expand Down

0 comments on commit 39ba0d8

Please sign in to comment.