about summary refs log tree commit diff stats
path: root/subx/subx.vim
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-11-30 20:01:41 -0800
committerKartik Agaram <vc@akkartik.com>2018-11-30 20:01:41 -0800
commitc6f522007de6f96e79d52ae9db2e23333c318c8f (patch)
tree545d6db816273a4099c45bc854728e2e13421449 /subx/subx.vim
parent87c606ee062077f51c37e819e458ddf9a6ef8bc9 (diff)
downloadmu-c6f522007de6f96e79d52ae9db2e23333c318c8f.tar.gz
4811
Diffstat (limited to 'subx/subx.vim')
-rw-r--r--subx/subx.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/subx/subx.vim b/subx/subx.vim
index f150718d..0a112fbb 100644
--- a/subx/subx.vim
+++ b/subx/subx.vim
@@ -34,8 +34,9 @@ syntax match subxDelimiter / \. /  | highlight link subxDelimiter CommentedCode
 
 syntax match subxString %"[^"]*"% | highlight link subxString Constant
 " match globals but not registers like 'EAX'
-syntax match subxGlobal %[^/]\<[A-Z][a-z0-9_-]*\>\|^[A-Z][a-z0-9_-]*\>% | highlight link subxGlobal SpecialChar
-"? syntax match subxGlobal %\/\@!\<[A-Z][a-z0-9_-]*\>% | highlight link subxGlobal SpecialChar
+" don't match capitalized words in metadata
+" don't match inside strings
+syntax match subxGlobal %\(/\)\@<!\<[A-Z][a-z0-9_-]*\>% | highlight link subxGlobal SpecialChar
 " tweak the red color from the colorscheme just a tad to improve contrast
 highlight SpecialChar ctermfg=196