diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-06-26 20:55:36 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-06-26 20:55:36 -0700 |
commit | 372367f59a897162912d0646158bdea1e07d6e66 (patch) | |
tree | 16cd7f70de3505f35fbc86ed2b7d3810cab0d148 /editor | |
parent | dc5a0acf3feea227d03a98cedf427d2aef462320 (diff) | |
download | mu-372367f59a897162912d0646158bdea1e07d6e66.tar.gz |
html: better highlighting for int registers
Diffstat (limited to 'editor')
-rw-r--r-- | editor/mu.vim | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/editor/mu.vim b/editor/mu.vim index 413b31b4..9ba626c1 100644 --- a/editor/mu.vim +++ b/editor/mu.vim @@ -75,19 +75,18 @@ syntax match muData "^type\>" 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 +" Some hacky colors for a light background. +" TODO: They should really be theme-dependent. Use tools/regs.mu when tweaking them. +" eax is so common that it's not worth highlighting syntax match muRegEcx "\<ecx\>" -highlight muRegEcx ctermfg=137 +highlight muRegEcx ctermfg=88 syntax match muRegEdx "\<edx\>" -highlight muRegEdx ctermfg=100 +highlight muRegEdx ctermfg=130 syntax match muRegEbx "\<ebx\>" -highlight muRegEbx ctermfg=103 +highlight muRegEbx ctermfg=57 syntax match muRegEsi "\<esi\>" -highlight muRegEsi ctermfg=114 +highlight muRegEsi ctermfg=25 syntax match muRegEdi "\<edi\>" -highlight muRegEdi ctermfg=122 +highlight muRegEdi ctermfg=34 let &cpo = s:save_cpo |