annotate runtime/syntax/protocols.vim @ 11639:71d7b5ed08a0 v8.0.0702

patch 8.0.0702: an error in a timer can make Vim unusable commit https://github.com/vim/vim/commit/c577d813b7978345dec4310b2d8f5d5624a681f6 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 8 22:37:34 2017 +0200 patch 8.0.0702: an error in a timer can make Vim unusable Problem: An error in a timer can make Vim unusable. Solution: Don't set the error flag or exception from a timer. Stop a timer if it causes an error 3 out of 3 times. Discard an exception caused inside a timer.
author Christian Brabandt <cb@256bit.org>
date Sat, 08 Jul 2017 22:45:03 +0200
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