diff options
Diffstat (limited to 'subx')
-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 |