389
|
1 " Vim syntax file
|
11062
|
2 " Language: protocols(5) - Internet protocols definition file
|
|
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
4 " Latest Revision: 2006-04-19
|
389
|
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
|