config/.vim/after/syntax/python.vim
2022-01-03 16:06:03 +01:00

46 lines
2.0 KiB
VimL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

scriptencoding utf-8
if exists('g:no_vim_fancy_text') || !has('conceal') || &enc != 'utf-8'
finish
endif
syntax match pyFancyOperator "<=" conceal cchar=
syntax match pyFancyOperator ">=" conceal cchar=
syntax match pyFancyOperator "=\@<!===\@!" conceal cchar=
syntax match pyFancyOperator "!=" conceal cchar=
syntax match pyFancyOperator "\<\%(\%(math\|np\|numpy\)\.\)\?sqrt\>" conceal cchar=
syntax match pyFancyKeyword "\<\%(\%(math\|np\|numpy\)\.\)\?pi\>" conceal cchar=π
syntax match pyFancyOperator "\<\%(\%(math\|np\|numpy\)\.\)\?ceil\>" conceal cchar=
syntax match pyFancyOperator "\<\%(\%(math\|np\|numpy\)\.\)\?floor\>" conceal cchar=
syntax match pyFancyOperator " \* " conceal cchar=
syntax match pyFancyOperator " / " conceal cchar=÷
syntax match pyFancyOperator "\( \|\)\*\*\( \|\)2\>" conceal cchar=²
syntax match pyFancyOperator "\( \|\)\*\*\( \|\)3\>" conceal cchar=³
syntax match pyFancyOperator "\( \|\)\*\*\( \|\)n\>" conceal cchar=
syntax keyword pyFancyStatement int conceal cchar=
syntax keyword pyFancyStatement float conceal cchar=
syntax keyword pyFancyStatement complex conceal cchar=
syntax keyword pyFancyBuiltin len conceal cchar=#
syntax keyword pyFancyStatement lambda conceal cchar=λ
syntax keyword pyFancyStatement None conceal cchar=
syntax keyword pyFancyOperator in conceal cchar=
syntax keyword pyFancyOperator or conceal cchar=
syntax keyword pyFancyOperator and conceal cchar=
syntax keyword pyFancySpecial True conceal cchar=𝐓
syntax keyword pyFancySpecial False conceal cchar=𝐅
syntax keyword pyFancyOperator sum conceal cchar=
syntax keyword pyFancyBuiltin all conceal cchar=
syntax keyword pyFancyBuiltin any conceal cchar=
syntax keyword pyFancyBuiltin not conceal cchar=
hi link pyFancyStatement Statement
hi link pyFancyKeyword Keyword
hi link pyFancyBuiltin Builtin
hi link pyFancySpecial Keyword
hi link pyFancyOperator Operator
hi! link Conceal Operator
setlocal conceallevel=1