mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-29 10:19:21 +08:00
31 lines
763 B
VimL
31 lines
763 B
VimL
|
|
set foldmethod=indent
|
|
syn match Comment "#.*$"
|
|
syn match Comment "\"[^\"]*\""
|
|
|
|
highlight shyString ctermfg=magenta
|
|
syn match shyString "\`[^\`]*\`"
|
|
syn region shyString start="`" end="`"
|
|
|
|
highlight shyContext ctermfg=red
|
|
syntax match shyContext "\~[a-z\.]\+"
|
|
|
|
highlight shyCommand ctermfg=green
|
|
syntax match shyCommand "^ \a*"
|
|
syntax match shyCommand "^\a\+"
|
|
|
|
highlight shyConfig ctermfg=yellow
|
|
syntax match shyConfig "^ config"
|
|
syntax match shyConfig "^source"
|
|
|
|
|
|
highlight shyTitle ctermbg=darkred ctermfg=white
|
|
syntax match shyTitle "^title"
|
|
syntax match shyTitle "^chapter"
|
|
syntax match shyTitle "^section"
|
|
|
|
highlight shySpark ctermbg=darkgreen ctermfg=white
|
|
syntax match shySpark "^brief"
|
|
syntax match shySpark "^spark"
|
|
|