Skip to content

Commit

Permalink
Add walrus operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakker authored and nfnty committed Dec 14, 2020
1 parent 83d4c63 commit 2cc00ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syntax/python.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ async def Test
< <= == != >= >

= =- =+ =~
-= += *= **= @= /= //= %=
-= += *= **= @= /= //= %= :=
&= |= ^= ~= <<= >>=

->
Expand Down

0 comments on commit 2cc00ba

Please sign in to comment.