about summary refs log tree commit diff stats
path: root/subx/vim_errors.subx
blob: 02a82f25d61b176915c1186e5965b2c397181780 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# test file for Vim highlighting

## unindented lines below should all get Warn highlighting in .subx files
# indented lines should get no highlighting

# raw displacement in jump/call instructions
e8 10/disp32
e8 . 10/disp32
e8/call . -10/disp32
e8/call . 0x10/disp32
e9/jump . 10/disp8
e9/jump . -10/disp8
e9/jump . f0/disp8
7c/jump . 10/disp8
7c/jump . -10/disp8
eb/jump . 10/disp16
eb/jump . -10/disp16
0f/foo 8e/jump . 10/disp16
0f/foo 8e/jump . -10/disp16

## unindented lines below should all get Error highlighting in .subx files
# indented lines should get no highlighting

# mismatch in label type (call to '$' or jump to non-'$')
e8 $foo/disp32
e8 . $foo/disp32
e8/call . $foo/disp32
e8/call . $foo/disp32
e9/jump . foo/disp8
  e9/jump . $foo/disp8
  e9/jump . . $foo/disp8
7c/jump . foo/disp8
eb/jump . foo/disp16
0f/foo 8e/jump . foo/disp16