arm-syntax-vim/syntax/include/armv5_base_syntax.vim
Sławomir Bocheński 4b4bc41933 Highlight instructions with {cond} at the very end
When trying to use e.g. ADR{cond}L in the unified syntax, the GNU
assembler warns that the conditional infixes are deprecated. The
preferred form is ADRL{cond} instead. It is also in line with arm.com
and keil.com documentation.

This applies to other instructions that have optional parts (e.g. "S"
for updating condition flags) - the condition goes last.
2021-03-26 04:12:05 +01:00

23 lines
690 B
VimL

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
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