Skip to content

Commit 3a6000e

Browse files
committed
Fix exponent operator error highlighting
Fixes vim-python#25
1 parent ea34354 commit 3a6000e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

syntax/python.vim

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

108108
"
109109
" Decorators (new in Python 2.4)

tests/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ async def Test
162162

163163
and or in is not
164164

165-
- + * ** @ / // %
165+
- + * ** **- **+ **~ @ / // %
166166
& | ^ ~ << >>
167167
< <= == != >= >
168168

0 commit comments

Comments
 (0)