annotate runtime/syntax/protocols.vim @ 4837:05b8436873d4 v7.3.1165

updated for version 7.3.1165 Problem: HP-UX compiler can't handle zero size array. (Charles Cooper) Solution: Make the array one item big.
author Bram Moolenaar <bram@vim.org>
date Tue, 11 Jun 2013 18:42:36 +0200
parents 1f3b1021f002
children 1218c5353e2b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
1 " Vim syntax file
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
2 " Language: protocols(5) - Internet protocols definition file
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
4 " Latest Revision: 2006-04-19
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
5
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
6 if exists("b:current_syntax")
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
7 finish
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
8 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
9
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
10 let s:cpo_save = &cpo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
11 set cpo&vim
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
12
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
13 syn match protocolsBegin display '^'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
14 \ nextgroup=protocolsName,protocolsComment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
15
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
16 syn match protocolsName contained display '[[:graph:]]\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
17 \ nextgroup=protocolsPort skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
18
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
19 syn match protocolsPort contained display '\d\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
20 \ nextgroup=protocolsAliases,protocolsComment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
21 \ skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
22
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
23 syn match protocolsAliases contained display '\S\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
24 \ nextgroup=protocolsAliases,protocolsComment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
25 \ skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
26
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
27 syn keyword protocolsTodo contained TODO FIXME XXX NOTE
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
28
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
29 syn region protocolsComment display oneline start='#' end='$'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
30 \ contains=protocolsTodo,@Spell
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
31
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
32 hi def link protocolsTodo Todo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
33 hi def link protocolsComment Comment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
34 hi def link protocolsName Identifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
35 hi def link protocolsPort Number
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
36 hi def link protocolsPPDiv Delimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
37 hi def link protocolsPPDivDepr Error
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
38 hi def link protocolsProtocol Type
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
39 hi def link protocolsAliases Macro
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
40
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
41 let b:current_syntax = "protocols"
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
42
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
43 let &cpo = s:cpo_save
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
44 unlet s:cpo_save