mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] highlight the as
keyword/operator as a keyword
This commit is contained in:
parent
659ae31776
commit
ce1a7b2310
3 changed files with 6 additions and 7 deletions
|
@ -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
|
||||||
|
|
2
nvim/after/syntax/rust.vim
Normal file
2
nvim/after/syntax/rust.vim
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
syn keyword rustOperatorKeyword as
|
||||||
|
hi def link rustOperatorKeyword Keyword
|
|
@ -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 {{{
|
||||||
|
|
Loading…
Reference in a new issue