mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-08 21:54:48 +08:00
Fix operators <<= and >>=
This commit is contained in:
@@ -107,7 +107,7 @@ syn keyword pythonOperator and in is not or
|
|||||||
if s:Enabled('g:python_highlight_operators')
|
if s:Enabled('g:python_highlight_operators')
|
||||||
syn match pythonOperator '\V=\|-\|+\|*\|@\|/\|%\|&\||\|^\|~\|<\|>\|!='
|
syn match pythonOperator '\V=\|-\|+\|*\|@\|/\|%\|&\||\|^\|~\|<\|>\|!='
|
||||||
endif
|
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)
|
" Decorators (new in Python 2.4)
|
||||||
|
|||||||
@@ -69,18 +69,22 @@ RuntimeWarning FutureWarning ImportWarning UnicodeWarning
|
|||||||
# Operators
|
# Operators
|
||||||
|
|
||||||
and or in is not
|
and or in is not
|
||||||
=
|
|
||||||
- + * ** @ / // %
|
- + * ** @ / // %
|
||||||
& | ^ ~ << >>
|
& | ^ ~ << >>
|
||||||
< <= == != >= >
|
< <= == != >= >
|
||||||
|
|
||||||
|
=
|
||||||
|
-= += *= **= @= /= //= %=
|
||||||
|
&= |= ^= ~= <<= >>=
|
||||||
|
|
||||||
# Erroneous operators
|
# Erroneous operators
|
||||||
|
|
||||||
$ ?
|
$ ?
|
||||||
===
|
===
|
||||||
-- ++ *** @@ /// %%
|
-- ++ *** @@ /// %%
|
||||||
&& || ^^ ~~ <<< >>>
|
&& || ^^ ~~ <<< >>>
|
||||||
<== <<= !== !!= >== >>=
|
<== !== !!= >==
|
||||||
%- +- -+
|
%- +- -+
|
||||||
|
|
||||||
# Numbers
|
# Numbers
|
||||||
|
|||||||
Reference in New Issue
Block a user