Fix number highlighting
This commit is contained in:
parent
cc664a6a6a
commit
5991a8d6b3
@ -7,14 +7,14 @@ syn match armNumericOp "[+-/*%<>=&|^!]"
|
|||||||
syn match armIdentifier "\<[.\$_A-Za-z0-9]\+\>"
|
syn match armIdentifier "\<[.\$_A-Za-z0-9]\+\>"
|
||||||
syn match armLabel "\<[.\$_A-Za-z0-9]\+:"
|
syn match armLabel "\<[.\$_A-Za-z0-9]\+:"
|
||||||
|
|
||||||
" hex
|
|
||||||
syn match armNumber "[#\$]\?0x\x\+\>"
|
|
||||||
" dec
|
" dec
|
||||||
syn match armNumber "[#\$]\?\d\+\>"
|
syn match armNumber "[#\$]\?\d\+"
|
||||||
|
" hex
|
||||||
|
syn match armNumber "[#\$]\?0x\x\+"
|
||||||
" bin
|
" bin
|
||||||
syn match armNumber "[#\$]\?0b[01]\+\>"
|
syn match armNumber "[#\$]\?0b[01]\+"
|
||||||
" floats
|
" floats
|
||||||
syn match armNumber "\%(\d\+\.\d*\|\d*\.\d\+\)\%([eE]\?[-+]\?\d\+\)\?\>"
|
syn match armNumber "\%(\d\+\.\d*\|\d*\.\d\+\)\%([eE]\?[-+]\?\d\+\)\?"
|
||||||
|
|
||||||
" Comments
|
" Comments
|
||||||
syn region armComment start="//\|@" end="$" contains=armTodo
|
syn region armComment start="//\|@" end="$" contains=armTodo
|
||||||
|
@ -10,7 +10,9 @@ ab.b: b blabl
|
|||||||
adc r0, r1
|
adc r0, r1
|
||||||
add R1, R2
|
add R1, R2
|
||||||
0:
|
0:
|
||||||
sub r14, 0b1110110
|
sub r14, 0b1110110-50
|
||||||
|
0x1234567890AbCdEfG
|
||||||
|
0xfff-0b1101+0xebbe&40%76*(0x0f)0b11/0x1f[0b110]42<>0xff|0xaa.c
|
||||||
1:
|
1:
|
||||||
and R2,r3
|
and R2,r3
|
||||||
bic r3 , r4
|
bic r3 , r4
|
||||||
@ -18,9 +20,11 @@ eor r4,r5
|
|||||||
mla r5,R6
|
mla r5,R6
|
||||||
mov R6,R7
|
mov R6,R7
|
||||||
b 001b
|
b 001b
|
||||||
|
blx 0002f
|
||||||
|
|
||||||
push {r0, r1, r2-r9}
|
push {r0, r1, r2-r9}
|
||||||
pop {r1-r14}
|
pop {r1-r14}
|
||||||
|
push {q0-q14}
|
||||||
|
|
||||||
FSHTOS
|
FSHTOS
|
||||||
|
|
||||||
@ -40,10 +44,8 @@ vmull.s32 q2, d5, D6
|
|||||||
.float .01, 3.14159
|
.float .01, 3.14159
|
||||||
|
|
||||||
@ illegal
|
@ illegal
|
||||||
blx 0002f
|
|
||||||
1.0f 0.f .1f
|
1.0f 0.f .1f
|
||||||
vmul Q15, Q16, d31, s31, s32, d32
|
vmul Q15, Q16, d31, s31, s32, d32
|
||||||
vmull q01, q09, q14, q16
|
vmull q01, q09, q14, q16
|
||||||
push {q0-q14}
|
|
||||||
pop {s3-s32}
|
pop {s3-s32}
|
||||||
@ vim:ft=arm
|
@ vim:ft=arm
|
||||||
|
Loading…
Reference in New Issue
Block a user