Add walrus operator

Closes #77
This commit is contained in:
Joakker
2020-12-13 23:07:57 -03:00
committed by nfnty
parent 83d4c63f77
commit 2cc00ba729
2 changed files with 2 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ endif
"
syn keyword pythonOperator and in is not or
if s:Enabled('g:python_highlight_operators')
syn match pythonOperator '\V=\|-\|+\|*\|@\|/\|%\|&\||\|^\|~\|<\|>\|!='
syn match pythonOperator '\V=\|-\|+\|*\|@\|/\|%\|&\||\|^\|~\|<\|>\|!=\|:='
endif
syn match pythonError '[$?]\|\([-+@%&|^~]\)\1\{1,}\|\([=*/<>]\)\2\{2,}\|\([+@/%&|^~<>]\)\3\@![-+*@/%&|^~<>]\|\*\*[*@/%&|^<>]\|=[*@/%&|^<>]\|-[+*@/%&|^~<]\|[<!>]\+=\{2,}\|!\{2,}=\+' display

View File

@@ -182,7 +182,7 @@ and or in is not
< <= == != >= >
= =- =+ =~
-= += *= **= @= /= //= %=
-= += *= **= @= /= //= %= :=
&= |= ^= ~= <<= >>=
->