[nvim] add proper highlighting for keyword operators in Python

This commit is contained in:
Dmytro Meleshko 2020-02-10 14:37:12 +02:00
parent 527936e3b3
commit 01a6ac0aef
3 changed files with 8 additions and 3 deletions

View 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

View file

@ -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 {{{