arm-syntax-vim/syntax/include/armv5_base_syntax.vim

23 lines
690 B
VimL
Raw Normal View History

so <sfile>:p:h/arm_base_syntax.vim
"
" ARMv5 instructions
"
exec 'syn match armv5InstrCond "\%(BLX\|CLZ\|MCRR\|MRRC\|QADD\|QSUB\|QDADD\|QDSUB\)' . armCond . '\>"'
HiLink armv4InstrCond armv5InstrCond
syn match armv5InstrNoCond "\%(BKPT\|CDP2\|LDC2\|MCR2\|MRC2\|PLD\|STC2\)\>"
HiLink armv4InstrNoCond armv5InstrNoCond
2015-04-19 09:31:28 -07:00
exec 'syn match armv5Mul "\%(SMLA\|SMLAL\|SMLAW\|SMUL\|SMULW\)[BT][BT]\?' . armCond . '\>"'
exec 'syn match armv5LDR "\%(LDR\)' . armCond . 'D\>"'
exec 'syn match armv5LDR "LDRD' . armCond . '\>"'
exec 'syn match armv5STR "\%(STR\)' . armCond . 'D\>"'
exec 'syn match armv5STR "STRD' . armCond . '\>"'
HiLink armv4LDR armv5LDR
HiLink armv4STR armv5STR