From e59a91b73d1abae828e265752d6f4588f6727531 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 20 Nov 2018 19:37:00 -0800 Subject: 4757 Let's start highlighting all global variables in Red. Assembly programming has a tendency to over-use them. They're a necessary evil, but we should minimize the number of functions that access them. --- vimrc.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vimrc.vim') diff --git a/vimrc.vim b/vimrc.vim index 030eaddc..87bb6d8c 100644 --- a/vimrc.vim +++ b/vimrc.vim @@ -39,6 +39,9 @@ function! HighlightTangledFile() syntax match muScenario "^scenario\>" | highlight muScenario ctermfg=34 syntax match muPendingScenario "^pending-scenario\>" | highlight link muPendingScenario SpecialChar syntax match muData "^type\>\|^container\>\|^exclusive-container\>" | highlight muData ctermfg=226 + + syntax match subxString %"[^"]*"% | highlight link subxString Constant + syntax match subxGlobal %\<[A-Z][a-z-]*\>% | highlight link subxGlobal SpecialChar endfunction augroup LocalVimrc autocmd BufRead,BufNewFile *.mu set ft=mu -- cgit 1.4.1-2-gfad0