about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-12-05 23:15:13 -0800
committerKartik Agaram <vc@akkartik.com>2018-12-05 23:16:53 -0800
commitcbe5bec6f0d0f303860b5bf09c57a874a91e6698 (patch)
treeaad4ccc99d6ddda1772337f4910cab27dbd2ae5b
parent27ef047ae54d26283fad0593d5a8ff8f8a213901 (diff)
downloadmu-cbe5bec6f0d0f303860b5bf09c57a874a91e6698.tar.gz
4843
Colorize function names containing special characters like '?'.
-rw-r--r--subx/subx.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/subx/subx.vim b/subx/subx.vim
index c4071823..e56b0008 100644
--- a/subx/subx.vim
+++ b/subx/subx.vim
@@ -43,12 +43,12 @@ syntax match subxGlobal %\(/\)\@<!\<[A-Z][a-z0-9_-]*\>% | highlight link subxGlo
 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
+syntax match subxFunction "^\(test_\)\@<![a-z][^ ]*\(:\)\@=" | highlight subxFunction ctermfg=208
 " tests starting with 'test-'
-syntax match subxTest "^test-[_a-zA-Z0-9-]*\(:\)\@=" | highlight subxTest ctermfg=34
+syntax match subxTest "^test-[^ ]*\(:\)\@=" | highlight subxTest ctermfg=34
 " internal functions starting with '_'
-syntax match subxMinorFunction "^_[_a-zA-Z0-9-]*\(:\)\@=" | highlight subxMinorFunction ctermfg=95
+syntax match subxMinorFunction "^_[^ ]*\(:\)\@=" | highlight subxMinorFunction ctermfg=95
 " other internal labels starting with '$'
-syntax match subxLabel "^\$[_a-zA-Z0-9:-]*\(:\)\@=" | highlight link subxLabel Constant
+syntax match subxLabel "^\$[^ ]*\(:\)\@=" | highlight link subxLabel Constant
 
 let &cpo = s:save_cpo