0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00
vim/runtime/syntax/arch.vim

42 lines
1.1 KiB
VimL
Raw Normal View History

2004-06-13 20:20:40 +00:00
" Vim syntax file
2005-06-29 22:40:58 +00:00
" Language: GNU Arch inventory file
2006-04-21 22:12:41 +00:00
" Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2006-04-19
2005-06-29 22:40:58 +00:00
if exists("b:current_syntax")
2004-06-13 20:20:40 +00:00
finish
endif
2005-06-29 22:40:58 +00:00
let s:cpo_save = &cpo
set cpo&vim
setlocal iskeyword=@,48-57,_,-
syn keyword archTodo TODO FIXME XXX NOTE
2005-07-04 22:49:24 +00:00
syn region archComment display start='^\%(#\|\s\)' end='$'
\ contains=archTodo,@Spell
2005-06-29 22:40:58 +00:00
2005-07-04 22:49:24 +00:00
syn match argBegin display '^' nextgroup=archKeyword,archComment
syn keyword archKeyword contained implicit tagline explicit names
syn keyword archKeyword contained untagged-source
\ nextgroup=archTMethod skipwhite
syn keyword archKeyword contained exclude junk backup precious unrecognized
\ source nextgroup=archRegex skipwhite
syn keyword archTMethod contained source precious backup junk unrecognized
2005-06-29 22:40:58 +00:00
syn match archRegex contained '\s*\zs.*'
hi def link archTodo Todo
hi def link archComment Comment
hi def link archKeyword Keyword
2005-07-04 22:49:24 +00:00
hi def link archTMethod Type
2005-06-29 22:40:58 +00:00
hi def link archRegex String
2004-06-13 20:20:40 +00:00
let b:current_syntax = "arch"
2005-06-29 22:40:58 +00:00
let &cpo = s:cpo_save
unlet s:cpo_save