Stop highlighting capitalized words in metadata as global variables.
This commit is contained in:
Kartik Agaram 2018-11-30 16:40:35 -08:00
parent 14da19a272
commit 4cb6970d9d
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ 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_-]*\>% | highlight link subxGlobal SpecialChar
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
" tweak the red color from the colorscheme just a tad to improve contrast
highlight SpecialChar ctermfg=196