Fix exponent operator error highlighting

Fixes #25
This commit is contained in:
nfnty
2017-05-21 12:08:12 +02:00
parent ea34354750
commit 3a6000e560
2 changed files with 2 additions and 2 deletions

View File

@@ -103,7 +103,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

@@ -162,7 +162,7 @@ RuntimeWarning FutureWarning ImportWarning UnicodeWarning
and or in is not and or in is not
- + * ** @ / // % - + * ** **- **+ **~ @ / // %
& | ^ ~ << >> & | ^ ~ << >>
< <= == != >= > < <= == != >= >