Highlight as ARM specific keywords

This commit is contained in:
Will Price 2015-02-17 14:23:51 +00:00
parent f641a03cfa
commit efbf7db026
1 changed files with 22 additions and 6 deletions

View File

@ -37,7 +37,7 @@ syn keyword gasDirective .space .stabd .stabn .stabs .struct .subsection
syn keyword gasDirective .symver .tag .text .title .type .uleb128 .val .version syn keyword gasDirective .symver .tag .text .title .type .uleb128 .val .version
syn keyword gasDirective .vtable_entry .vtable_inherit .warning .weak .weakref syn keyword gasDirective .vtable_entry .vtable_inherit .warning .weak .weakref
syn keyword gasDirectiveStore .2byte .4byte .8byte
syn keyword gasDirectiveStore .byte .hword .word .int .long .double .short .float syn keyword gasDirectiveStore .byte .hword .word .int .long .double .short .float
syn keyword gasDirectiveStore .string .string8 .string16 .ascii .asciz .comm syn keyword gasDirectiveStore .string .string8 .string16 .ascii .asciz .comm
@ -84,6 +84,18 @@ syn match gasOperator /[+-/*=|&~<>]\|<=\|>=\|<>/
syn region gasComment start=/\/\*/ end=/\*\// syn region gasComment start=/\/\*/ end=/\*\//
syn region gasCommentSingle start=/#/ end=/$/ syn region gasCommentSingle start=/#/ end=/$/
" ARM specific directives
syn keyword gasDirectiveStoreARM .2byte .4byte .8byte
syn keyword gasDirectiveARM .arch .arch_expression .arm .ascii .asciiz .bss .cantunwind .code .cpu .dn .qn .eabi_attribute .even .extend .ldouble .fnend .fbstart .force_thumb .fpu .handlerdata .inst .inst.n .inst.w .ltorg .lmovsp .movsp .object_arch .packed .pad .personality .personalityindex .pool .req .save .setfp .secrel32 .syntax .thumb .thumb_func .thumb_set .tlsdescseq .unreq .unwind_raw .vsave
" ARM register set
" Must be defined after gasSymbol to have higher precedence
syn keyword gasRegisterARM sp lr pc
syn match gasRegisterARM /\<%\?r\([0-9]\|1[0-5]\)\>/
syn keyword gasDirectiveMacroARM .dn .dq .req .unreq .tlsdescseq
" finally: Opcodes " finally: Opcodes
" "
"-- Section: Willamette MMX instructions (SSE2 SIMD Integer Instructions) "-- Section: Willamette MMX instructions (SSE2 SIMD Integer Instructions)
@ -1913,6 +1925,10 @@ hi def link gasRegisterX86 gasRegister
hi def link gasRegisterX86Cr gasRegister hi def link gasRegisterX86Cr gasRegister
hi def link gasRegisterX86Dr gasRegister hi def link gasRegisterX86Dr gasRegister
hi def link gasRegisterX86MMX gasRegister hi def link gasRegisterX86MMX gasRegister
hi def link gasDirectiveARM gasDirective
hi def link gasRegisterARM gasRegister
hi def link gasDirectiveMacroARM gasDirectiveMacro
hi def link gasDirectiveStoreARM gasDirectiveStore
" link to defaults " link to defaults
hi def link gasDirective Preproc hi def link gasDirective Preproc