From 3a6000e56012ffc539fa943774f74394ecf9b991 Mon Sep 17 00:00:00 2001 From: nfnty Date: Sun, 21 May 2017 12:08:12 +0200 Subject: [PATCH] Fix exponent operator error highlighting Fixes #25 --- syntax/python.vim | 2 +- tests/test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/python.vim b/syntax/python.vim index f7bb86a..ffd88f9 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -103,7 +103,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) diff --git a/tests/test.py b/tests/test.py index ff87a35..058f3f7 100644 --- a/tests/test.py +++ b/tests/test.py @@ -162,7 +162,7 @@ RuntimeWarning FutureWarning ImportWarning UnicodeWarning and or in is not -- + * ** @ / // % +- + * ** **- **+ **~ @ / // % & | ^ ~ << >> < <= == != >= >