1" Vim syntax file 2" Language: GNU Arch inventory file 3" Maintainer: Nikolai Weibull <[email protected]> 4" Latest Revision: 2007-06-17 5 6if exists("b:current_syntax") 7 finish 8endif 9 10let s:cpo_save = &cpo 11set cpo&vim 12 13setlocal iskeyword+=- 14 15syn keyword archTodo TODO FIXME XXX NOTE 16 17syn region archComment display start='^\%(#\|\s\)' end='$' 18 \ contains=archTodo,@Spell 19 20syn match archBegin display '^' nextgroup=archKeyword,archComment 21 22syn keyword archKeyword contained implicit tagline explicit names 23syn keyword archKeyword contained untagged-source 24 \ nextgroup=archTMethod skipwhite 25syn keyword archKeyword contained exclude junk backup precious unrecognized 26 \ source nextgroup=archRegex skipwhite 27 28syn keyword archTMethod contained source precious backup junk unrecognized 29 30syn match archRegex contained '\s*\zs.*' 31 32hi def link archTodo Todo 33hi def link archComment Comment 34hi def link archKeyword Keyword 35hi def link archTMethod Type 36hi def link archRegex String 37 38let b:current_syntax = "arch" 39 40let &cpo = s:cpo_save 41unlet s:cpo_save 42