arm-syntax-vim/syntax/armv5.vim

56 lines
1.4 KiB
VimL
Raw Normal View History

2015-03-08 06:48:56 -07:00
" Vim syntax file
" Language: ARMv5
" Maintainer: ARM9
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
syn case ignore
if version >= 508 || !exists("did_armv5_syntax_inits")
if version < 508
let did_armv5_syntax_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
2015-03-08 07:13:34 -07:00
so <sfile>:p:h/include/armv5_base_syntax.vim
2015-03-08 07:13:34 -07:00
HiLink armv4Instr armv5Instructions
HiLink armv5InstrCond armv5Instructions
HiLink armv5InstrNoCond armv5Instructions
HiLink armv5Mul armv5Instructions
HiLink armv5LDR armv5Instructions
HiLink armv5STR armv5Instructions
HiLink armv4Stack armv5Instructions
HiLink armv4SWP armv5Instructions
2015-03-08 06:48:56 -07:00
HiLink armNumericOp armOperator
HiLink armRelative armOperator
" Link to standard syn groups so the 'colorschemes' work
2015-03-15 14:36:08 -07:00
HiLink armOperator Operator
HiLink armNumber Number
HiLink armComment Comment
HiLink armString String
2015-03-08 06:48:56 -07:00
2015-03-15 14:36:08 -07:00
HiLink armIdentifier Label
HiLink armLabel Label
HiLink gasDirective PreProc
HiLink armDirective PreProc
HiLink armCPreProc Identifier
2015-03-08 06:48:56 -07:00
2015-03-15 14:36:08 -07:00
HiLink armRegister Type
HiLink armv5Instructions Function
2015-03-08 06:48:56 -07:00
2015-03-15 14:36:08 -07:00
HiLink armTodo Todo
2015-03-08 06:48:56 -07:00
delcommand HiLink
endif
let b:current_syntax = "armv5"