Merge branch 'hack/autopaste'
[vim-kana.git] / runtime / syntax / protocols.vim
blob1dc109caf65172fdf9155ea24c343cb842ca9b85
1 " Vim syntax file
2 " Language:         protocols(5) - Internet protocols definition file
3 " Maintainer:       Nikolai Weibull <now@bitwi.se>
4 " Latest Revision:  2006-04-19
6 if exists("b:current_syntax")
7   finish
8 endif
10 let s:cpo_save = &cpo
11 set cpo&vim
13 syn match   protocolsBegin    display '^'
14                               \ nextgroup=protocolsName,protocolsComment
16 syn match   protocolsName     contained display '[[:graph:]]\+'
17                               \ nextgroup=protocolsPort skipwhite
19 syn match   protocolsPort     contained display '\d\+'
20                               \ nextgroup=protocolsAliases,protocolsComment
21                               \ skipwhite
23 syn match   protocolsAliases  contained display '\S\+'
24                               \ nextgroup=protocolsAliases,protocolsComment
25                               \ skipwhite
27 syn keyword protocolsTodo     contained TODO FIXME XXX NOTE
29 syn region  protocolsComment  display oneline start='#' end='$'
30                               \ contains=protocolsTodo,@Spell
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
41 let b:current_syntax = "protocols"
43 let &cpo = s:cpo_save
44 unlet s:cpo_save