Mercurial > hg > RemoteEditor > vim7
comparison runtime/syntax/slpspi.vim @ 0:76efa0be13f1
Initial revision
author | atsuki |
---|---|
date | Sat, 10 Nov 2007 15:07:22 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:76efa0be13f1 |
---|---|
1 " Vim syntax file | |
2 " Language: RFC 2614 - An API for Service Location SPI file | |
3 " Maintainer: Nikolai Weibull <now@bitwi.se> | |
4 " Latest Revision: 2006-04-19 | |
5 | |
6 if exists("b:current_syntax") | |
7 finish | |
8 endif | |
9 | |
10 let s:cpo_save = &cpo | |
11 set cpo&vim | |
12 | |
13 syn keyword slpspiTodo contained TODO FIXME XXX NOTE | |
14 | |
15 syn region slpspiComment display oneline start='^[#;]' end='$' | |
16 \ contains=slpspiTodo,@Spell | |
17 | |
18 syn match slpspiBegin display '^' | |
19 \ nextgroup=slpspiKeyType, | |
20 \ slpspiComment skipwhite | |
21 | |
22 syn keyword slpspiKeyType contained PRIVATE PUBLIC | |
23 \ nextgroup=slpspiString skipwhite | |
24 | |
25 syn match slpspiString contained '\S\+' | |
26 \ nextgroup=slpspiKeyFile skipwhite | |
27 | |
28 syn match slpspiKeyFile contained '\S\+' | |
29 | |
30 hi def link slpspiTodo Todo | |
31 hi def link slpspiComment Comment | |
32 hi def link slpspiKeyType Type | |
33 hi def link slpspiString Identifier | |
34 hi def link slpspiKeyFile String | |
35 | |
36 let b:current_syntax = "slpspi" | |
37 | |
38 let &cpo = s:cpo_save | |
39 unlet s:cpo_save |