annotate runtime/syntax/services.vim @ 29664:6569c71c5ca5 v9.0.0172

patch 9.0.0172: trying to allocate zero bytes Commit: https://github.com/vim/vim/commit/1024690c015921b0a458172bc368133f63af1b89 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 8 17:08:05 2022 +0100 patch 9.0.0172: trying to allocate zero bytes Problem: Trying to allocate zero bytes. Solution: Do not allocate the proptype array when there are none. (closes #10867)
author Bram Moolenaar <Bram@vim.org>
date Mon, 08 Aug 2022 18:15: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: services(5) - Internet network services list
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 servicesBegin display '^'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
14 \ nextgroup=servicesName,servicesComment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
15
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
16 syn match servicesName contained display '[[:graph:]]\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
17 \ nextgroup=servicesPort 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 servicesPort contained display '\d\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
20 \ nextgroup=servicesPPDiv,servicesPPDivDepr
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 servicesPPDiv contained display '/'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
24 \ nextgroup=servicesProtocol skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
25
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
26 syn match servicesPPDivDepr contained display ','
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
27 \ nextgroup=servicesProtocol skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
28
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
29 syn match servicesProtocol contained display '\S\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
30 \ nextgroup=servicesAliases,servicesComment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
31 \ skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
32
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
33 syn match servicesAliases contained display '\S\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
34 \ nextgroup=servicesAliases,servicesComment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
35 \ skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
36
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
37 syn keyword servicesTodo contained TODO FIXME XXX NOTE
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
38
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
39 syn region servicesComment display oneline start='#' end='$'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
40 \ contains=servicesTodo,@Spell
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
41
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
42 hi def link servicesTodo Todo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
43 hi def link servicesComment Comment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
44 hi def link servicesName Identifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
45 hi def link servicesPort Number
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
46 hi def link servicesPPDiv Delimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
47 hi def link servicesPPDivDepr Error
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
48 hi def link servicesProtocol Type
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
49 hi def link servicesAliases Macro
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
50
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
51 let b:current_syntax = "services"
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
52
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
53 let &cpo = s:cpo_save
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
54 unlet s:cpo_save