diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-12-02 12:49:15 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-12-02 13:09:23 -0800 |
commit | 39d718afcff131abf9c12f89357e7e387d7892d5 (patch) | |
tree | d7179a92c27871ec646661517e348957b9805a5f /subx/subx.vim | |
parent | f44c595267ba1dc6b076340e300961c304904408 (diff) | |
download | mu-39d718afcff131abf9c12f89357e7e387d7892d5.tar.gz |
4816
Diffstat (limited to 'subx/subx.vim')
-rw-r--r-- | subx/subx.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/subx/subx.vim b/subx/subx.vim index 0a112fbb..c4071823 100644 --- a/subx/subx.vim +++ b/subx/subx.vim @@ -33,6 +33,8 @@ let b:cmt_head = "#? " syntax match subxDelimiter / \. / | highlight link subxDelimiter CommentedCode syntax match subxString %"[^"]*"% | highlight link subxString Constant + +"" definitions " match globals but not registers like 'EAX' " don't match capitalized words in metadata " don't match inside strings @@ -40,4 +42,13 @@ syntax match subxGlobal %\(/\)\@<!\<[A-Z][a-z0-9_-]*\>% | highlight link subxGlo " tweak the red color from the colorscheme just a tad to improve contrast highlight SpecialChar ctermfg=196 +" functions but not tests, globals or internal functions +syntax match subxFunction "^\(test_\)\@<![a-z][_a-zA-Z0-9-]*\(:\)\@=" | highlight subxFunction ctermfg=208 +" tests starting with 'test-' +syntax match subxTest "^test-[_a-zA-Z0-9-]*\(:\)\@=" | highlight subxTest ctermfg=34 +" internal functions starting with '_' +syntax match subxMinorFunction "^_[_a-zA-Z0-9-]*\(:\)\@=" | highlight subxMinorFunction ctermfg=95 +" other internal labels starting with '$' +syntax match subxLabel "^\$[_a-zA-Z0-9:-]*\(:\)\@=" | highlight link subxLabel Constant + let &cpo = s:save_cpo |