2015-03-30 11:20:06 -07:00
|
|
|
" Vim syntax file
|
|
|
|
" Language: ARM
|
|
|
|
" Maintainer: ARM9
|
|
|
|
|
|
|
|
if version < 600
|
|
|
|
syntax clear
|
|
|
|
elseif exists("b:current_syntax")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
syn case ignore
|
|
|
|
|
2015-07-15 04:04:59 -07:00
|
|
|
if version >= 508 || !exists("did_arm_syntax_inits")
|
2015-03-30 11:20:06 -07:00
|
|
|
if version < 508
|
2015-07-15 04:04:59 -07:00
|
|
|
let did_arm_syntax_inits = 1
|
2015-03-30 11:20:06 -07:00
|
|
|
command -nargs=+ HiLink hi link <args>
|
|
|
|
else
|
|
|
|
command -nargs=+ HiLink hi def link <args>
|
|
|
|
endif
|
|
|
|
|
2015-04-01 08:21:44 -07:00
|
|
|
so <sfile>:p:h/include/armv6_base_syntax.vim
|
2015-03-30 11:20:06 -07:00
|
|
|
|
|
|
|
HiLink armv4Instr armv6Instructions
|
|
|
|
HiLink armv4Stack armv6Instructions
|
|
|
|
HiLink armv4SWP armv6Instructions
|
|
|
|
|
|
|
|
HiLink armv5InstrCond armv6Instructions
|
|
|
|
HiLink armv5InstrNoCond armv6Instructions
|
|
|
|
HiLink armv5Mul armv6Instructions
|
|
|
|
HiLink armv5LDR armv6Instructions
|
|
|
|
HiLink armv5STR armv6Instructions
|
|
|
|
|
|
|
|
HiLink armv6Instr armv6Instructions
|
|
|
|
HiLink armv6InstrNoCond armv6Instructions
|
|
|
|
HiLink armv6Mul armv6Instructions
|
|
|
|
HiLink armv6LDR armv6Instructions
|
|
|
|
HiLink armv6STR armv6Instructions
|
|
|
|
|
|
|
|
HiLink armv7Instr armv6Instructions
|
2015-04-01 08:21:44 -07:00
|
|
|
HiLink armVfpInstr armv6Instructions
|
2015-04-01 09:20:14 -07:00
|
|
|
HiLink armNeonInstr armv6Instructions
|
2015-03-30 11:20:06 -07:00
|
|
|
|
|
|
|
HiLink armNumericOp armOperator
|
|
|
|
HiLink armRelative armOperator
|
|
|
|
|
|
|
|
" Link to standard syn groups so the 'colorschemes' work
|
|
|
|
HiLink armComment Comment
|
2015-07-15 09:22:40 -07:00
|
|
|
|
|
|
|
HiLink armOperator Operator
|
|
|
|
HiLink armNumber Constant
|
|
|
|
|
2015-03-30 11:20:06 -07:00
|
|
|
HiLink armString String
|
|
|
|
|
2015-07-15 09:22:40 -07:00
|
|
|
HiLink armIdentifier Function
|
|
|
|
HiLink armLabel Function
|
|
|
|
|
|
|
|
HiLink gasDirective Preproc
|
|
|
|
HiLink armDirective Preproc
|
2015-03-30 11:20:06 -07:00
|
|
|
HiLink armCPreProc Identifier
|
|
|
|
|
|
|
|
HiLink armRegister Type
|
2015-04-01 08:43:32 -07:00
|
|
|
HiLink armv6Register Type
|
2015-07-15 09:22:40 -07:00
|
|
|
HiLink armv6Instructions Keyword
|
2015-03-30 11:20:06 -07:00
|
|
|
|
|
|
|
HiLink armTodo Todo
|
|
|
|
delcommand HiLink
|
|
|
|
endif
|
|
|
|
|
|
|
|
let b:current_syntax = "arm"
|
|
|
|
|