annotate runtime/syntax/slpreg.vim @ 16211:5fb0f15fafea v8.1.1110

patch 8.1.1110: composing chars on space wrong when 'listchars' is set commit https://github.com/vim/vim/commit/e5e4e22c1c15c8c22b14935affe969569acc8df9 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 4 13:28:45 2019 +0200 patch 8.1.1110: composing chars on space wrong when 'listchars' is set Problem: Composing chars on space wrong when 'listchars' is set. Solution: Do not use "space" and "nbsp" entries of 'listchars' when there is a composing character. (Yee Cheng Chin, closes #4197)
author Bram Moolenaar <Bram@vim.org>
date Thu, 04 Apr 2019 13:30:05 +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: RFC 2614 - An API for Service Location registration 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 keyword slpregTodo contained TODO FIXME XXX NOTE
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
14
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
15 syn region slpregComment display oneline start='^[#;]' end='$'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
16 \ contains=slpregTodo,@Spell
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
17
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
18 syn match slpregBegin display '^'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
19 \ nextgroup=slpregServiceURL,
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
20 \ slpregComment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
21
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
22 syn match slpregServiceURL contained display 'service:'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
23 \ nextgroup=slpregServiceType
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
24
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
25 syn match slpregServiceType contained display '\a[[:alpha:][:digit:]+-]*\%(\.\a[[:alpha:][:digit:]+-]*\)\=\%(:\a[[:alpha:][:digit:]+-]*\)\='
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
26 \ nextgroup=slpregServiceSAPCol
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
27
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
28 syn match slpregServiceSAPCol contained display ':'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
29 \ nextgroup=slpregSAP
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
30
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
31 syn match slpregSAP contained '[^,]\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
32 \ nextgroup=slpregLangSep
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
33 "syn match slpregSAP contained display '\%(//\%(\%([[:alpha:][:digit:]$-_.~!*\'(),+;&=]*@\)\=\%([[:alnum:]][[:alnum:]-]*[[:alnum:]]\|[[:alnum:]]\.\)*\%(\a[[:alnum:]-]*[[:alnum:]]\|\a\)\%(:\d\+\)\=\)\=\|/at/\%([[:alpha:][:digit:]$-_.~]\|\\\x\x\)\{1,31}:\%([[:alpha:][:digit:]$-_.~]\|\\\x\x\)\{1,31}\%([[:alpha:][:digit:]$-_.~]\|\\\x\x\)\{1,31}\|/ipx/\x\{8}:\x\{12}:\x\{4}\)\%(/\%([[:alpha:][:digit:]$-_.~!*\'()+;?:@&=+]\|\\\x\x\)*\)*\%(;[^()\\!<=>~[:cntrl:]* \t_]\+\%(=[^()\\!<=>~[:cntrl:] ]\+\)\=\)*'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
34
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
35 syn match slpregLangSep contained display ','
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
36 \ nextgroup=slpregLang
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
37
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
38 syn match slpregLang contained display '\a\{1,8}\%(-\a\{1,8\}\)\='
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
39 \ nextgroup=slpregLTimeSep
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
40
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
41 syn match slpregLTimeSep contained display ','
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
42 \ nextgroup=slpregLTime
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
43
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
44 syn match slpregLTime contained display '\d\{1,5}'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
45 \ nextgroup=slpregType,slpregUNewline
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
46
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
47 syn match slpregType contained display '\a[[:alpha:][:digit:]+-]*'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
48 \ nextgroup=slpregUNewLine
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
49
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
50 syn match slpregUNewLine contained '\s*\n'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
51 \ nextgroup=slpregScopes,slpregAttrList skipnl
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
52
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
53 syn keyword slpregScopes contained scopes
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
54 \ nextgroup=slpregScopesEq
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
55
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
56 syn match slpregScopesEq contained '=' nextgroup=slpregScopeName
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
57
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
58 syn match slpregScopeName contained '[^(),\\!<=>[:cntrl:];*+ ]\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
59 \ nextgroup=slpregScopeNameSep,
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
60 \ slpregScopeNewline
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
61
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
62 syn match slpregScopeNameSep contained ','
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
63 \ nextgroup=slpregScopeName
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
64
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
65 syn match slpregScopeNewline contained '\s*\n'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
66 \ nextgroup=slpregAttribute skipnl
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
67
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
68 syn match slpregAttribute contained '[^(),\\!<=>[:cntrl:]* \t_]\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
69 \ nextgroup=slpregAttributeEq,
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
70 \ slpregScopeNewline
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
71
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
72 syn match slpregAttributeEq contained '='
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
73 \ nextgroup=@slpregAttrValue
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
74
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
75 syn cluster slpregAttrValueCon contains=slpregAttribute,slpregAttrValueSep
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
76
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
77 syn cluster slpregAttrValue contains=slpregAttrIValue,slpregAttrSValue,
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
78 \ slpregAttrBValue,slpregAttrSSValue
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
79
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
80 syn match slpregAttrSValue contained display '[^(),\\!<=>~[:cntrl:]]\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
81 \ nextgroup=@slpregAttrValueCon skipwhite skipnl
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
82
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
83 syn match slpregAttrSSValue contained display '\\FF\%(\\\x\x\)\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
84 \ nextgroup=@slpregAttrValueCon skipwhite skipnl
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
85
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
86 syn match slpregAttrIValue contained display '[-]\=\d\+\>'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
87 \ nextgroup=@slpregAttrValueCon skipwhite skipnl
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
88
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
89 syn keyword slpregAttrBValue contained true false
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
90 \ nextgroup=@slpregAttrValueCon skipwhite skipnl
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
91
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
92 syn match slpregAttrValueSep contained display ','
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
93 \ nextgroup=@slpregAttrValue skipwhite skipnl
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
94
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
95 hi def link slpregTodo Todo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
96 hi def link slpregComment Comment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
97 hi def link slpregServiceURL Type
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
98 hi def link slpregServiceType slpregServiceURL
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
99 hi def link slpregServiceSAPCol slpregServiceURL
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
100 hi def link slpregSAP slpregServiceURL
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
101 hi def link slpregDelimiter Delimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
102 hi def link slpregLangSep slpregDelimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
103 hi def link slpregLang String
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
104 hi def link slpregLTimeSep slpregDelimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
105 hi def link slpregLTime Number
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
106 hi def link slpregType Type
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
107 hi def link slpregScopes Identifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
108 hi def link slpregScopesEq Operator
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
109 hi def link slpregScopeName String
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
110 hi def link slpregScopeNameSep slpregDelimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
111 hi def link slpregAttribute Identifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
112 hi def link slpregAttributeEq Operator
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
113 hi def link slpregAttrSValue String
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
114 hi def link slpregAttrSSValue slpregAttrSValue
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
115 hi def link slpregAttrIValue Number
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
116 hi def link slpregAttrBValue Boolean
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
117 hi def link slpregAttrValueSep slpregDelimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
118
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
119 let b:current_syntax = "slpreg"
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
120
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
121 let &cpo = s:cpo_save
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
122 unlet s:cpo_save