blob: 1dc109caf65172fdf9155ea24c343cb842ca9b85 [file] [log] [blame]
Bram Moolenaar0dc065e2005-07-04 22:49:24 +00001" Vim syntax file
2" Language: protocols(5) - Internet protocols definition file
Bram Moolenaar57657d82006-04-21 22:12:41 +00003" Maintainer: Nikolai Weibull <now@bitwi.se>
4" Latest Revision: 2006-04-19
Bram Moolenaar0dc065e2005-07-04 22:49:24 +00005
6if exists("b:current_syntax")
7 finish
8endif
9
10let s:cpo_save = &cpo
11set cpo&vim
12
13syn match protocolsBegin display '^'
14 \ nextgroup=protocolsName,protocolsComment
15
16syn match protocolsName contained display '[[:graph:]]\+'
17 \ nextgroup=protocolsPort skipwhite
18
19syn match protocolsPort contained display '\d\+'
20 \ nextgroup=protocolsAliases,protocolsComment
21 \ skipwhite
22
23syn match protocolsAliases contained display '\S\+'
24 \ nextgroup=protocolsAliases,protocolsComment
25 \ skipwhite
26
27syn keyword protocolsTodo contained TODO FIXME XXX NOTE
28
29syn region protocolsComment display oneline start='#' end='$'
30 \ contains=protocolsTodo,@Spell
31
32hi def link protocolsTodo Todo
33hi def link protocolsComment Comment
34hi def link protocolsName Identifier
35hi def link protocolsPort Number
36hi def link protocolsPPDiv Delimiter
37hi def link protocolsPPDivDepr Error
38hi def link protocolsProtocol Type
39hi def link protocolsAliases Macro
40
41let b:current_syntax = "protocols"
42
43let &cpo = s:cpo_save
44unlet s:cpo_save