Mercurial > vim
comparison runtime/syntax/protocols.vim @ 389:4fe8e1a7758e v7.0102
updated for version 7.0102
author | vimboss |
---|---|
date | Mon, 04 Jul 2005 22:49:24 +0000 |
parents | |
children | 1f3b1021f002 |
comparison
equal
deleted
inserted
replaced
388:f92bb1845823 | 389:4fe8e1a7758e |
---|---|
1 " Vim syntax file | |
2 " Language: protocols(5) - Internet protocols definition file | |
3 " Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> | |
4 " Latest Revision: 2005-06-30 | |
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 match protocolsBegin display '^' | |
14 \ nextgroup=protocolsName,protocolsComment | |
15 | |
16 syn match protocolsName contained display '[[:graph:]]\+' | |
17 \ nextgroup=protocolsPort skipwhite | |
18 | |
19 syn match protocolsPort contained display '\d\+' | |
20 \ nextgroup=protocolsAliases,protocolsComment | |
21 \ skipwhite | |
22 | |
23 syn match protocolsAliases contained display '\S\+' | |
24 \ nextgroup=protocolsAliases,protocolsComment | |
25 \ skipwhite | |
26 | |
27 syn keyword protocolsTodo contained TODO FIXME XXX NOTE | |
28 | |
29 syn region protocolsComment display oneline start='#' end='$' | |
30 \ contains=protocolsTodo,@Spell | |
31 | |
32 hi def link protocolsTodo Todo | |
33 hi def link protocolsComment Comment | |
34 hi def link protocolsName Identifier | |
35 hi def link protocolsPort Number | |
36 hi def link protocolsPPDiv Delimiter | |
37 hi def link protocolsPPDivDepr Error | |
38 hi def link protocolsProtocol Type | |
39 hi def link protocolsAliases Macro | |
40 | |
41 let b:current_syntax = "protocols" | |
42 | |
43 let &cpo = s:cpo_save | |
44 unlet s:cpo_save |