Do not error highlight PEP 3017 operator

Fixes #11
This commit is contained in:
nfnty
2017-02-27 00:07:03 +01:00
parent c85d026015
commit 0959f6d130
2 changed files with 3 additions and 1 deletions

View File

@@ -102,7 +102,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)

View File

@@ -117,6 +117,8 @@ and or in is not
-= += *= **= @= /= //= %= -= += *= **= @= /= //= %=
&= |= ^= ~= <<= >>= &= |= ^= ~= <<= >>=
->
# Erroneous operators # Erroneous operators
$ ? $ ?