diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-11-30 10:33:34 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-11-30 10:33:34 -0800 |
commit | dc70e29c2018181e1e7270153e4e4bbc888a357f (patch) | |
tree | d015197d80d7c37c99568bf9baf7850896ec26bd | |
parent | a20b51bdb7dd08d9b1a84a5cf59ac6ae12ab9657 (diff) | |
download | mu-dc70e29c2018181e1e7270153e4e4bbc888a357f.tar.gz |
4798
Another attempt at picking colors for the 5 different levels of comments.
-rw-r--r-- | subx/subx.vim | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/subx/subx.vim b/subx/subx.vim index 515c8cd6..17286d01 100644 --- a/subx/subx.vim +++ b/subx/subx.vim @@ -1,7 +1,7 @@ " SubX syntax file " Language: SubX " Maintainer: Kartik Agaram <mu@akkartik.com> -" URL: http://github.com/akkartik/mu +" URL: https://github.com/akkartik/mu " License: public domain " " Copy this into your ftplugin directory, and add the following to your vimrc @@ -17,36 +17,14 @@ setlocal formatoptions+=c " but comments should still wrap setlocal iskeyword+=- -"? syntax match subxH1Comment /^# ===== .*/ | highlight subxH1Comment ctermfg=14 -"? syntax match subxH2Comment /^# ==== .*/ | highlight subxH2Comment ctermfg=39 -"? syntax match subxH3Comment /^# === .*/ | highlight subxH3Comment ctermfg=33 -"? syntax match subxH4Comment /^# == .*/ | highlight subxH4Comment ctermfg=27 -"? syntax match subxH5Comment /^# = .*/ | highlight subxH5Comment ctermfg=21 -"? syntax match subxH6Comment /^# [^=].*/ | highlight subxH6Comment ctermfg=19 - -"? syntax match subxH1Comment /^# === .*/ | highlight subxH1Comment ctermfg=14 -"? syntax match subxH2Comment /^# --- .*/ | highlight subxH2Comment ctermfg=39 -"? syntax match subxComment /^# [^=-\.].*/ | highlight subxComment ctermfg=33 -"? syntax match subxS1Comment /^# \. .*/ | highlight subxS1Comment ctermfg=27 -"? syntax match subxS2Comment /^# \. \. .*/ | highlight subxS2Comment ctermfg=21 -"? syntax match subxS3Comment /^# \. \. \. .*/ | highlight subxS3Comment ctermfg=19 - -"? syntax match subxH1Comment /^# =.*/ | highlight subxH1Comment ctermfg=14 -"? syntax match subxH2Comment /^# -.*/ | highlight subxH2Comment ctermfg=39 -"? syntax match subxComment /^#[^ ].*\|# [^ .=-].*\|# \?$/ | highlight subxComment ctermfg=27 -"? syntax match subxS1Comment /^# \..*/ | highlight subxS1Comment ctermfg=21 -"? syntax match subxS2Comment /^# \. \..*/ | highlight subxS2Comment ctermfg=19 -"? syntax match subxS3Comment /^# \. \. \..*/ | highlight subxS3Comment ctermfg=18 - +"? syntax match subxComment /#.*$/ | highlight link subxComment Comment +"? syntax match subxSalientComment /##.*$/ | highlight link subxSalientComment SalientComment syntax match subxH1Comment /# =.*/ | highlight subxH1Comment ctermfg=14 syntax match subxH2Comment /# -.*/ | highlight subxH2Comment ctermfg=39 -syntax match subxComment /#[^ ].*\|# [^.=-].*\|# \?$/ | highlight subxComment ctermfg=27 -syntax match subxS1Comment /# \..*/ | highlight subxS1Comment ctermfg=19 +syntax match subxComment /#[^ ].*\|# [^.=-].*\|# \?$/ | highlight subxComment ctermfg=39 +syntax match subxS1Comment /# \..*/ | highlight subxS1Comment ctermfg=27 +syntax match subxS2Comment /# \. \..*/ | highlight subxS2Comment ctermfg=19 -"? syntax match subxH2Comment /^# --- .*/ | highlight subxH2Comment ctermfg=33 -"? syntax match subxH3Comment /^# --- .*/ | highlight subxH3Comment ctermfg=21 -"? syntax match subxComment /#.*$/ | highlight link subxComment Comment -"? syntax match subxSalientComment /##.*$/ | highlight link subxSalientComment SalientComment set comments-=:# set comments+=n:# syntax match subxCommentedCode "#? .*" | highlight link subxCommentedCode CommentedCode |