about summary refs log tree commit diff stats
path: root/editor
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-04 20:50:46 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-04 20:50:46 -0700
commit9d1f0e6ecad32382034697f3cc3bd8ac10faaaf1 (patch)
tree95a7f0ea3eb01328630d9840dbf85056cd4bdedc /editor
parent846664c4dde834b0613bab957e8f52e3e6af17f9 (diff)
downloadmu-9d1f0e6ecad32382034697f3cc3bd8ac10faaaf1.tar.gz
hacky colors for registers
Diffstat (limited to 'editor')
-rw-r--r--editor/mu.vim17
1 files changed, 16 insertions, 1 deletions
diff --git a/editor/mu.vim b/editor/mu.vim
index 374d6e5d..1c468aea 100644
--- a/editor/mu.vim
+++ b/editor/mu.vim
@@ -70,7 +70,22 @@ syntax match muTest "\(fn\s\+\)\@<=\(test-\S\+\)"
 highlight link muTest Identifier
 
 syntax match muData "^type\>"
-syntax match muData "\<eax\>\|\<ecx\>\|\<edx\>\|\<ebx\>\|\<esi\>\|\<edi\>\|\<xmm[0-7]\>"
+syntax match muData "\<xmm[0-7]\>"
 highlight link muData Constant
 
+" Some hacky colors
+" TODO: This should really be theme-dependent.
+syntax match muRegEax "\<eax\>"
+highlight muRegEax ctermfg=94
+syntax match muRegEcx "\<ecx\>"
+highlight muRegEcx ctermfg=137
+syntax match muRegEdx "\<edx\>"
+highlight muRegEdx ctermfg=100
+syntax match muRegEbx "\<ebx\>"
+highlight muRegEbx ctermfg=103
+syntax match muRegEsi "\<esi\>"
+highlight muRegEsi ctermfg=114
+syntax match muRegEdi "\<edi\>"
+highlight muRegEdi ctermfg=122
+
 let &cpo = s:save_cpo