annotate runtime/syntax/protocols.vim @ 34669:fe206762c077

Update README.txt and README.md (#14313) Commit: https://github.com/vim/vim/commit/b75825f749cf87feb9ae8e7e5327bd2efe707c86 Author: Restorer <69863286+RestorerZ@users.noreply.github.com> Date: Thu Mar 28 09:14:47 2024 +0000 Update README.txt and README.md (https://github.com/vim/vim/issues/14313) Signed-off-by: RestorerZ <restorer@mail2k.ru> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 28 Mar 2024 10:15:11 +0100
parents 1218c5353e2b
children
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
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
2 " Language: protocols(5) - Internet protocols definition file
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
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