annotate runtime/syntax/protocols.vim @ 19354:1d3b2ce65ae0 v8.2.0235

patch 8.2.0235: draw error when an empty group is removed from 'statusline' Commit: https://github.com/vim/vim/commit/dbe5d361feb65137099644329cf0ecfd4a945a14 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 8 18:35:31 2020 +0100 patch 8.2.0235: draw error when an empty group is removed from 'statusline' Problem: Draw error when an empty group is removed from 'statusline'. Solution: Do not use highlighting from a removed group.
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Feb 2020 18:45:03 +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