diff options
Diffstat (limited to 'subx/subx.vim')
-rw-r--r-- | subx/subx.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/subx/subx.vim b/subx/subx.vim index 438ad732..309ebfec 100644 --- a/subx/subx.vim +++ b/subx/subx.vim @@ -24,3 +24,13 @@ let b:cmt_head = "#? " " comment token syntax match subxDelimiter / \. / | highlight link subxDelimiter Delimiter + +"" highlight low-level idioms in red as I provide more high-level replacements + +" Once we have labels, highlight raw displacement +highlight Warn ctermbg=brown ctermfg=black +call matchadd("Warn", '\c^\s*e8.*\<\(0x\)\?[0-9a-f]\+/disp32') " call +call matchadd("Warn", '\c^\s*e9.*\<\(0x\)\?[0-9a-f]\+/disp8') " unconditional jump disp8 +call matchadd("Warn", '\c^\s*7[45cdef].*\<\(0x\)\?[0-9a-f]\+/disp8') " conditional jump disp8 +call matchadd("Warn", '\c^\s*eb.*\<\(0x\)\?[0-9a-f]\+/disp16') " unconditional jump disp16 +call matchadd("Warn", '\c^\s*0f[^\s]*\s*8[45cdef].*\<\(0x\)\?[0-9a-f]\+/disp16') " conditional jump disp16 |