hacky colors for registers

This commit is contained in:
Kartik K. Agaram 2021-06-04 20:50:46 -07:00
parent 846664c4dd
commit 9d1f0e6eca
1 changed files with 16 additions and 1 deletions

View File

@ -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