[nvim] highlight the as keyword/operator as a keyword

This commit is contained in:
Dmytro Meleshko 2020-10-10 20:07:18 +03:00
parent 659ae31776
commit ce1a7b2310
3 changed files with 6 additions and 7 deletions

View file

@ -1,4 +1,2 @@
syn clear pythonOperator
syn match pythonOperator '\V=\|-\|+\|*\|@\|/\|%\|&\||\|^\|~\|<\|>\|!='
syn keyword pythonOperatorKeyword and in is not or syn keyword pythonOperatorKeyword and in is not or
syn cluster pythonExpression add=pythonOperatorKeyword hi def link pythonOperatorKeyword Keyword

View file

@ -0,0 +1,2 @@
syn keyword rustOperatorKeyword as
hi def link rustOperatorKeyword Keyword

View file

@ -351,10 +351,9 @@
" }}} " }}}
" Python {{{ " Python {{{
hi! link pythonBuiltinType Type hi! link pythonBuiltinType Type
hi! link pythonBuiltinObj pythonFunction hi! link pythonBuiltinObj pythonFunction
hi! link pythonClassVar Variable hi! link pythonClassVar Variable
hi! link pythonOperatorKeyword Keyword
" }}} " }}}
" Ruby {{{ " Ruby {{{