about summary refs log tree commit diff stats
path: root/subx/subx.vim
diff options
context:
space:
mode:
Diffstat (limited to 'subx/subx.vim')
-rw-r--r--subx/subx.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/subx/subx.vim b/subx/subx.vim
index 17d63932..e6825c72 100644
--- a/subx/subx.vim
+++ b/subx/subx.vim
@@ -35,4 +35,11 @@ call matchadd("Warn", '\c^\s*7[45cdef].*\<\(0x\)\?[0-9a-f]\+/disp8')  " conditio
 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
 
+" Mismatch in label type
+call matchadd("Error", '\c^\s*e8.*\$')  " call
+call matchadd("Error", '\c^\s*e9\(/[^ ]*\)\?\s*\(\.\s*\)\+[^\$\. ]\([ \$0-9a-fA-F-]\+\>\)\@!')  " unconditional jump disp8
+call matchadd("Error", '\c^\s*7[45cdef]\(/[^ ]*\)\?\s*\(\.\s*\)\+[^\$\. ]\([ \$0-9a-fA-F-]\+\>\)\@!')  " conditional jump disp8
+call matchadd("Error", '\c^\s*eb\(/[^ ]*\)\?\s*\(\.\s*\)\+[^\$\. ]\([ \$0-9a-fA-F-]\+\>\)\@!')  " unconditional jump disp16
+call matchadd("Error", '\c^\s*0f[^\s]*\s*8[45cdef]\(/[^ ]*\)\?\s*\(\.\s*\)\+[^\$\. ]\([ \$0-9a-fA-F-]\+\>\)\@!')  " conditional jump disp16
+
 let &cpo = s:save_cpo