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.
This commit is contained in:
Sławomir Bocheński
2021-03-26 02:24:56 +01:00
parent caf53551a0
commit 4b4bc41933
2 changed files with 8 additions and 0 deletions

View File

@ -14,7 +14,9 @@ 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