Skip to content

Commit 2cc00ba

Browse files
Joakkernfnty
authored andcommitted
Add walrus operator
Closes #77
1 parent 83d4c63 commit 2cc00ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

syntax/python.vim

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

tests/test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ async def Test
182182
< <= == != >= >
183183

184184
= =- =+ =~
185-
-= += *= **= @= /= //= %=
185+
-= += *= **= @= /= //= %= :=
186186
&= |= ^= ~= <<= >>=
187187

188188
->

0 commit comments

Comments
 (0)