about summary refs log tree commit diff stats
path: root/vimrc.vim
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-11-24 20:54:56 -0800
committerKartik Agaram <vc@akkartik.com>2018-11-24 22:42:02 -0800
commita8f47b4a640375af3c949b0347edadf12a8ff579 (patch)
tree108f85884450925374219aaa386506bbcfcc69b0 /vimrc.vim
parent3c46d5a221542195aca58f8f7061f59cda479927 (diff)
downloadmu-a8f47b4a640375af3c949b0347edadf12a8ff579.tar.gz
4772
Diffstat (limited to 'vimrc.vim')
-rw-r--r--vimrc.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/vimrc.vim b/vimrc.vim
index 87bb6d8c..8bb5bbfe 100644
--- a/vimrc.vim
+++ b/vimrc.vim
@@ -41,7 +41,8 @@ function! HighlightTangledFile()
   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
+  " match globals but not registers like 'EAX'
+  syntax match subxGlobal %\<[A-Z][a-z0-9_-]*\>% | highlight link subxGlobal SpecialChar
 endfunction
 augroup LocalVimrc
   autocmd BufRead,BufNewFile *.mu set ft=mu