mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] add proper highlighting for keyword operators in Python
This commit is contained in:
parent
527936e3b3
commit
01a6ac0aef
3 changed files with 8 additions and 3 deletions
4
nvim/after/syntax/python.vim
Normal file
4
nvim/after/syntax/python.vim
Normal file
|
@ -0,0 +1,4 @@
|
|||
syn clear pythonOperator
|
||||
syn match pythonOperator '\V=\|-\|+\|*\|@\|/\|%\|&\||\|^\|~\|<\|>\|!='
|
||||
syn keyword pythonOperatorKeyword and in is not or
|
||||
syn cluster pythonExpression add=pythonOperatorKeyword
|
|
@ -341,9 +341,10 @@
|
|||
" }}}
|
||||
|
||||
" Python {{{
|
||||
hi! link pythonBuiltinType Type
|
||||
hi! link pythonBuiltinObj pythonFunction
|
||||
hi! link pythonClassVar Variable
|
||||
hi! link pythonBuiltinType Type
|
||||
hi! link pythonBuiltinObj pythonFunction
|
||||
hi! link pythonClassVar Variable
|
||||
hi! link pythonOperatorKeyword Keyword
|
||||
" }}}
|
||||
|
||||
" Ruby {{{
|
||||
|
|
Loading…
Reference in a new issue