tm-grammars 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/NOTICE +6565 -0
- package/README.md +211 -0
- package/grammars/abap.json +380 -0
- package/grammars/actionscript-3.json +951 -0
- package/grammars/ada.json +3874 -0
- package/grammars/apache.json +562 -0
- package/grammars/apex.json +3203 -0
- package/grammars/apl.json +1479 -0
- package/grammars/applescript.json +1406 -0
- package/grammars/ara.json +428 -0
- package/grammars/asm.json +1741 -0
- package/grammars/astro.json +776 -0
- package/grammars/awk.json +388 -0
- package/grammars/ballerina.json +3768 -0
- package/grammars/bat.json +783 -0
- package/grammars/beancount.json +831 -0
- package/grammars/berry.json +172 -0
- package/grammars/bibtex.json +315 -0
- package/grammars/bicep.json +239 -0
- package/grammars/blade.json +3870 -0
- package/grammars/c.json +3552 -0
- package/grammars/cadence.json +738 -0
- package/grammars/clarity.json +877 -0
- package/grammars/clojure.json +426 -0
- package/grammars/cmake.json +143 -0
- package/grammars/cobol.json +1124 -0
- package/grammars/codeql.json +1540 -0
- package/grammars/coffee.json +1311 -0
- package/grammars/cpp-macro.json +9498 -0
- package/grammars/cpp.json +16635 -0
- package/grammars/crystal.json +1866 -0
- package/grammars/csharp.json +5722 -0
- package/grammars/css.json +1860 -0
- package/grammars/csv.json +46 -0
- package/grammars/cue.json +1128 -0
- package/grammars/cypher.json +353 -0
- package/grammars/d.json +3185 -0
- package/grammars/dart.json +522 -0
- package/grammars/dax.json +185 -0
- package/grammars/diff.json +155 -0
- package/grammars/docker.json +97 -0
- package/grammars/dream-maker.json +640 -0
- package/grammars/elixir.json +1014 -0
- package/grammars/elm.json +751 -0
- package/grammars/erb.json +156 -0
- package/grammars/erlang.json +1757 -0
- package/grammars/fish.json +189 -0
- package/grammars/fsharp.json +1831 -0
- package/grammars/gdresource.json +290 -0
- package/grammars/gdscript.json +969 -0
- package/grammars/gdshader.json +405 -0
- package/grammars/gherkin.json +133 -0
- package/grammars/git-commit.json +85 -0
- package/grammars/git-rebase.json +56 -0
- package/grammars/glimmer-js.json +98 -0
- package/grammars/glimmer-ts.json +98 -0
- package/grammars/glsl.json +57 -0
- package/grammars/gnuplot.json +892 -0
- package/grammars/go.json +1012 -0
- package/grammars/graphql.json +1295 -0
- package/grammars/groovy.json +1378 -0
- package/grammars/hack.json +2650 -0
- package/grammars/haml.json +598 -0
- package/grammars/handlebars.json +848 -0
- package/grammars/haskell.json +2431 -0
- package/grammars/hcl.json +787 -0
- package/grammars/hjson.json +821 -0
- package/grammars/hlsl.json +212 -0
- package/grammars/html.json +93 -0
- package/grammars/imba.json +2696 -0
- package/grammars/ini.json +108 -0
- package/grammars/java.json +1885 -0
- package/grammars/javascript.json +5984 -0
- package/grammars/jinja-html.json +16 -0
- package/grammars/jinja.json +345 -0
- package/grammars/jison.json +715 -0
- package/grammars/jsdoc.json +21 -0
- package/grammars/json.json +208 -0
- package/grammars/json5.json +244 -0
- package/grammars/jsonc.json +208 -0
- package/grammars/jsonl.json +208 -0
- package/grammars/jsonnet.json +211 -0
- package/grammars/jssm.json +159 -0
- package/grammars/jsx.json +5984 -0
- package/grammars/julia.json +1061 -0
- package/grammars/kotlin.json +580 -0
- package/grammars/kusto.json +687 -0
- package/grammars/latex.json +2395 -0
- package/grammars/less.json +5012 -0
- package/grammars/liquid.json +990 -0
- package/grammars/lisp.json +121 -0
- package/grammars/logo.json +55 -0
- package/grammars/lua.json +956 -0
- package/grammars/make.json +629 -0
- package/grammars/markdown.json +3066 -0
- package/grammars/marko.json +1344 -0
- package/grammars/matlab.json +1131 -0
- package/grammars/mdc.json +571 -0
- package/grammars/mdx.json +5629 -0
- package/grammars/mermaid.json +1382 -0
- package/grammars/mojo.json +4153 -0
- package/grammars/narrat.json +227 -0
- package/grammars/nextflow.json +298 -0
- package/grammars/nginx.json +2121 -0
- package/grammars/nim.json +1522 -0
- package/grammars/nix.json +1200 -0
- package/grammars/nushell.json +1047 -0
- package/grammars/objective-c.json +3750 -0
- package/grammars/objective-cpp.json +7242 -0
- package/grammars/ocaml.json +2967 -0
- package/grammars/pascal.json +154 -0
- package/grammars/perl.json +2971 -0
- package/grammars/php.json +4024 -0
- package/grammars/plsql.json +241 -0
- package/grammars/postcss.json +377 -0
- package/grammars/powerquery.json +349 -0
- package/grammars/powershell.json +1024 -0
- package/grammars/prisma.json +443 -0
- package/grammars/prolog.json +298 -0
- package/grammars/proto.json +507 -0
- package/grammars/pug.json +1033 -0
- package/grammars/puppet.json +777 -0
- package/grammars/purescript.json +871 -0
- package/grammars/python.json +4208 -0
- package/grammars/r.json +637 -0
- package/grammars/raku.json +310 -0
- package/grammars/razor.json +1813 -0
- package/grammars/reg.json +136 -0
- package/grammars/rel.json +200 -0
- package/grammars/riscv.json +298 -0
- package/grammars/rst.json +734 -0
- package/grammars/ruby.json +2769 -0
- package/grammars/rust.json +1171 -0
- package/grammars/sas.json +302 -0
- package/grammars/sass.json +618 -0
- package/grammars/scala.json +1313 -0
- package/grammars/scheme.json +384 -0
- package/grammars/scss.json +1874 -0
- package/grammars/shaderlab.json +199 -0
- package/grammars/shellscript.json +2025 -0
- package/grammars/shellsession.json +33 -0
- package/grammars/smalltalk.json +235 -0
- package/grammars/solidity.json +1210 -0
- package/grammars/sparql.json +45 -0
- package/grammars/splunk.json +91 -0
- package/grammars/sql.json +631 -0
- package/grammars/ssh-config.json +88 -0
- package/grammars/stata.json +3050 -0
- package/grammars/stylus.json +1208 -0
- package/grammars/svelte.json +1171 -0
- package/grammars/swift.json +4203 -0
- package/grammars/system-verilog.json +1063 -0
- package/grammars/tasl.json +292 -0
- package/grammars/tcl.json +291 -0
- package/grammars/tex.json +281 -0
- package/grammars/toml.json +431 -0
- package/grammars/tsx.json +5984 -0
- package/grammars/turtle.json +261 -0
- package/grammars/twig.json +1394 -0
- package/grammars/typescript.json +5735 -0
- package/grammars/v.json +1001 -0
- package/grammars/vb.json +232 -0
- package/grammars/verilog.json +305 -0
- package/grammars/vhdl.json +1484 -0
- package/grammars/viml.json +445 -0
- package/grammars/vue-html.json +559 -0
- package/grammars/vue.json +1237 -0
- package/grammars/vyper.json +5415 -0
- package/grammars/wasm.json +831 -0
- package/grammars/wenyan.json +129 -0
- package/grammars/wgsl.json +391 -0
- package/grammars/wolfram.json +2370 -0
- package/grammars/xml.json +382 -0
- package/grammars/xsl.json +89 -0
- package/grammars/yaml.json +616 -0
- package/grammars/zenscript.json +257 -0
- package/grammars/zig.json +312 -0
- package/index.d.ts +18 -0
- package/index.js +2165 -0
- package/package.json +46 -0
|
@@ -0,0 +1,3870 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Blade",
|
|
3
|
+
"fileTypes": [
|
|
4
|
+
"blade.php"
|
|
5
|
+
],
|
|
6
|
+
"foldingStartMarker": "(/\\*|\\{\\s*$|<<<HTML)",
|
|
7
|
+
"foldingStopMarker": "(\\*/|^\\s*\\}|^HTML;)",
|
|
8
|
+
"injections": {
|
|
9
|
+
"text.html.php.blade - (meta.embedded | meta.tag | comment.block.blade), L:(text.html.php.blade meta.tag - (comment.block.blade | meta.embedded.block.blade)), L:(source.js.embedded.html - (comment.block.blade | meta.embedded.block.blade))": {
|
|
10
|
+
"patterns": [
|
|
11
|
+
{
|
|
12
|
+
"include": "#blade"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"begin": "(^\\s*)(?=<\\?(?![^?]*\\?>))",
|
|
16
|
+
"beginCaptures": {
|
|
17
|
+
"0": {
|
|
18
|
+
"name": "punctuation.whitespace.embedded.leading.php"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"end": "(?!\\G)(\\s*$\\n)?",
|
|
22
|
+
"endCaptures": {
|
|
23
|
+
"0": {
|
|
24
|
+
"name": "punctuation.whitespace.embedded.trailing.php"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"patterns": [
|
|
28
|
+
{
|
|
29
|
+
"begin": "<\\?(?i:php|=)?",
|
|
30
|
+
"beginCaptures": {
|
|
31
|
+
"0": {
|
|
32
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"contentName": "source.php",
|
|
36
|
+
"end": "(\\?)>",
|
|
37
|
+
"endCaptures": {
|
|
38
|
+
"0": {
|
|
39
|
+
"name": "punctuation.section.embedded.end.php"
|
|
40
|
+
},
|
|
41
|
+
"1": {
|
|
42
|
+
"name": "source.php"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"name": "meta.embedded.block.php",
|
|
46
|
+
"patterns": [
|
|
47
|
+
{
|
|
48
|
+
"include": "#language"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"begin": "<\\?(?i:php|=)?(?![^?]*\\?>)",
|
|
56
|
+
"beginCaptures": {
|
|
57
|
+
"0": {
|
|
58
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"contentName": "source.php",
|
|
62
|
+
"end": "(\\?)>",
|
|
63
|
+
"endCaptures": {
|
|
64
|
+
"0": {
|
|
65
|
+
"name": "punctuation.section.embedded.end.php"
|
|
66
|
+
},
|
|
67
|
+
"1": {
|
|
68
|
+
"name": "source.php"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"name": "meta.embedded.block.php",
|
|
72
|
+
"patterns": [
|
|
73
|
+
{
|
|
74
|
+
"include": "#language"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"begin": "<\\?(?i:php|=)?",
|
|
80
|
+
"beginCaptures": {
|
|
81
|
+
"0": {
|
|
82
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"end": ">",
|
|
86
|
+
"endCaptures": {
|
|
87
|
+
"0": {
|
|
88
|
+
"name": "punctuation.section.embedded.end.php"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"name": "meta.embedded.line.php",
|
|
92
|
+
"patterns": [
|
|
93
|
+
{
|
|
94
|
+
"captures": {
|
|
95
|
+
"1": {
|
|
96
|
+
"name": "source.php"
|
|
97
|
+
},
|
|
98
|
+
"2": {
|
|
99
|
+
"name": "punctuation.section.embedded.end.php"
|
|
100
|
+
},
|
|
101
|
+
"3": {
|
|
102
|
+
"name": "source.php"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"match": "\\G(\\s*)((\\?))(?=>)",
|
|
106
|
+
"name": "meta.special.empty-tag.php"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"begin": "\\G",
|
|
110
|
+
"contentName": "source.php",
|
|
111
|
+
"end": "(\\?)(?=>)",
|
|
112
|
+
"endCaptures": {
|
|
113
|
+
"0": {
|
|
114
|
+
"name": "punctuation.section.embedded.end.php"
|
|
115
|
+
},
|
|
116
|
+
"1": {
|
|
117
|
+
"name": "source.php"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"patterns": [
|
|
121
|
+
{
|
|
122
|
+
"include": "#language"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"name": "blade",
|
|
132
|
+
"patterns": [
|
|
133
|
+
{
|
|
134
|
+
"include": "text.html.basic"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"repository": {
|
|
138
|
+
"balance_brackets": {
|
|
139
|
+
"patterns": [
|
|
140
|
+
{
|
|
141
|
+
"begin": "\\(",
|
|
142
|
+
"end": "\\)",
|
|
143
|
+
"patterns": [
|
|
144
|
+
{
|
|
145
|
+
"include": "#balance_brackets"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"match": "[^()]+"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
"blade": {
|
|
155
|
+
"patterns": [
|
|
156
|
+
{
|
|
157
|
+
"begin": "{{--",
|
|
158
|
+
"beginCaptures": {
|
|
159
|
+
"0": {
|
|
160
|
+
"name": "punctuation.definition.comment.begin.blade"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"end": "--}}",
|
|
164
|
+
"endCaptures": {
|
|
165
|
+
"0": {
|
|
166
|
+
"name": "punctuation.definition.comment.end.blade"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"name": "comment.block.blade",
|
|
170
|
+
"patterns": [
|
|
171
|
+
{
|
|
172
|
+
"begin": "(^\\s*)(?=<\\?(?![^?]*\\?>))",
|
|
173
|
+
"beginCaptures": {
|
|
174
|
+
"0": {
|
|
175
|
+
"name": "punctuation.whitespace.embedded.leading.php"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"end": "(?!\\G)(\\s*$\\n)?",
|
|
179
|
+
"endCaptures": {
|
|
180
|
+
"0": {
|
|
181
|
+
"name": "punctuation.whitespace.embedded.trailing.php"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"name": "invalid.illegal.php-code-in-comment.blade",
|
|
185
|
+
"patterns": [
|
|
186
|
+
{
|
|
187
|
+
"begin": "<\\?(?i:php|=)?",
|
|
188
|
+
"beginCaptures": {
|
|
189
|
+
"0": {
|
|
190
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"contentName": "source.php",
|
|
194
|
+
"end": "(\\?)>",
|
|
195
|
+
"endCaptures": {
|
|
196
|
+
"0": {
|
|
197
|
+
"name": "punctuation.section.embedded.end.php"
|
|
198
|
+
},
|
|
199
|
+
"1": {
|
|
200
|
+
"name": "source.php"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"name": "meta.embedded.block.php",
|
|
204
|
+
"patterns": [
|
|
205
|
+
{
|
|
206
|
+
"include": "#language"
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"begin": "<\\?(?i:php|=)?(?![^?]*\\?>)",
|
|
214
|
+
"beginCaptures": {
|
|
215
|
+
"0": {
|
|
216
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"contentName": "source.php",
|
|
220
|
+
"end": "(\\?)>",
|
|
221
|
+
"endCaptures": {
|
|
222
|
+
"0": {
|
|
223
|
+
"name": "punctuation.section.embedded.end.php"
|
|
224
|
+
},
|
|
225
|
+
"1": {
|
|
226
|
+
"name": "source.php"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"name": "invalid.illegal.php-code-in-comment.blade.meta.embedded.block.php",
|
|
230
|
+
"patterns": [
|
|
231
|
+
{
|
|
232
|
+
"include": "#language"
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"begin": "<\\?(?i:php|=)?",
|
|
238
|
+
"beginCaptures": {
|
|
239
|
+
"0": {
|
|
240
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"end": ">",
|
|
244
|
+
"endCaptures": {
|
|
245
|
+
"0": {
|
|
246
|
+
"name": "punctuation.section.embedded.end.php"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"name": "invalid.illegal.php-code-in-comment.blade.meta.embedded.line.php",
|
|
250
|
+
"patterns": [
|
|
251
|
+
{
|
|
252
|
+
"captures": {
|
|
253
|
+
"1": {
|
|
254
|
+
"name": "source.php"
|
|
255
|
+
},
|
|
256
|
+
"2": {
|
|
257
|
+
"name": "punctuation.section.embedded.end.php"
|
|
258
|
+
},
|
|
259
|
+
"3": {
|
|
260
|
+
"name": "source.php"
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"match": "\\G(\\s*)((\\?))(?=>)",
|
|
264
|
+
"name": "meta.special.empty-tag.php"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"begin": "\\G",
|
|
268
|
+
"contentName": "source.php",
|
|
269
|
+
"end": "(\\?)(?=>)",
|
|
270
|
+
"endCaptures": {
|
|
271
|
+
"0": {
|
|
272
|
+
"name": "punctuation.section.embedded.end.php"
|
|
273
|
+
},
|
|
274
|
+
"1": {
|
|
275
|
+
"name": "source.php"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"patterns": [
|
|
279
|
+
{
|
|
280
|
+
"include": "#language"
|
|
281
|
+
}
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"begin": "(?<!@){{{",
|
|
290
|
+
"beginCaptures": {
|
|
291
|
+
"0": {
|
|
292
|
+
"name": "support.function.construct.begin.blade"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"contentName": "source.php",
|
|
296
|
+
"end": "}}}",
|
|
297
|
+
"endCaptures": {
|
|
298
|
+
"0": {
|
|
299
|
+
"name": "support.function.construct.end.blade"
|
|
300
|
+
},
|
|
301
|
+
"1": {
|
|
302
|
+
"name": "source.php"
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"name": "meta.function.echo.blade",
|
|
306
|
+
"patterns": [
|
|
307
|
+
{
|
|
308
|
+
"include": "#language"
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"begin": "(?<![@{]){{",
|
|
314
|
+
"beginCaptures": {
|
|
315
|
+
"0": {
|
|
316
|
+
"name": "support.function.construct.begin.blade"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"contentName": "source.php",
|
|
320
|
+
"end": "}}",
|
|
321
|
+
"endCaptures": {
|
|
322
|
+
"0": {
|
|
323
|
+
"name": "support.function.construct.end.blade"
|
|
324
|
+
},
|
|
325
|
+
"1": {
|
|
326
|
+
"name": "source.php"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"name": "meta.function.echo.blade",
|
|
330
|
+
"patterns": [
|
|
331
|
+
{
|
|
332
|
+
"include": "#language"
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"begin": "(?<!@){!!",
|
|
338
|
+
"beginCaptures": {
|
|
339
|
+
"0": {
|
|
340
|
+
"name": "support.function.construct.begin.blade"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"contentName": "source.php",
|
|
344
|
+
"end": "!!}",
|
|
345
|
+
"endCaptures": {
|
|
346
|
+
"0": {
|
|
347
|
+
"name": "support.function.construct.end.blade"
|
|
348
|
+
},
|
|
349
|
+
"1": {
|
|
350
|
+
"name": "source.php"
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"name": "meta.function.echo.blade",
|
|
354
|
+
"patterns": [
|
|
355
|
+
{
|
|
356
|
+
"include": "#language"
|
|
357
|
+
}
|
|
358
|
+
]
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"begin": "(@){{",
|
|
362
|
+
"beginCaptures": {
|
|
363
|
+
"0": {
|
|
364
|
+
"name": "begin.bracket.round.blade"
|
|
365
|
+
},
|
|
366
|
+
"1": {
|
|
367
|
+
"name": "variable.other.index.php"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"contentName": "source.php",
|
|
371
|
+
"end": "}}",
|
|
372
|
+
"endCaptures": {
|
|
373
|
+
"0": {
|
|
374
|
+
"name": "end.bracket.round.blade"
|
|
375
|
+
},
|
|
376
|
+
"1": {
|
|
377
|
+
"name": "source.php"
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"name": "meta.function.echo.blade",
|
|
381
|
+
"patterns": [
|
|
382
|
+
{
|
|
383
|
+
"include": "#language"
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"begin": "(?x)(?<![A-Za-z0-9_@]) (@ (?i:\n auth\n |break\n |can\n |cannot\n |case\n |choice\n |component\n |continue\n |dd\n |dump\n |each\n |elsecan\n |elsecannot\n |elseif\n |empty\n |error\n |extends\n |for\n |foreach\n |forelse\n |guest\n |hassection\n |if\n |include\n |includefirst\n |includeif\n |includeunless\n |includewhen\n |inject\n |isset\n |json\n |lang\n |once\n |prepend\n |push\n |section\n |sectionMissing\n |slot\n |stack\n |switch\n |unless\n |unset\n |while\n |yield\n |servers\n |task\n |story\n |finished\n |production\n |slack\n |method\n |props\n |env\n |livewire\n |php\n )[\\t ]*\n)(\\() # Followed by opening parentheses\n",
|
|
389
|
+
"beginCaptures": {
|
|
390
|
+
"1": {
|
|
391
|
+
"name": "keyword.blade"
|
|
392
|
+
},
|
|
393
|
+
"2": {
|
|
394
|
+
"name": "begin.bracket.round.blade.php"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"contentName": "source.php",
|
|
398
|
+
"end": "\\)",
|
|
399
|
+
"endCaptures": {
|
|
400
|
+
"0": {
|
|
401
|
+
"name": "end.bracket.round.blade.php"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"name": "meta.directive.blade",
|
|
405
|
+
"patterns": [
|
|
406
|
+
{
|
|
407
|
+
"include": "#language"
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"begin": "(?x)(?<![A-Za-z0-9_@]) (@ (?i:\n append\n |default\n |else\n |endauth\n |endcan\n |endcannot\n |endcomponent\n |endempty\n |enderror\n |endfor\n |endforeach\n |endforelse\n |endguest\n |endif\n |endisset\n |endlang\n |endonce\n |endprepend\n |endpush\n |endsection\n |endslot\n |endswitch\n |endunless\n |endwhile\n |overwrite\n |parent\n |show\n |stop\n |endtask\n |endstory\n |endfinished\n |endproduction\n |endenv\n )[\\t ]*\n)(\\() # Followed by opening parentheses\n",
|
|
413
|
+
"beginCaptures": {
|
|
414
|
+
"1": {
|
|
415
|
+
"name": "keyword.blade"
|
|
416
|
+
},
|
|
417
|
+
"2": {
|
|
418
|
+
"name": "begin.bracket.round.blade.php"
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"contentName": "comment.blade",
|
|
422
|
+
"end": "\\)",
|
|
423
|
+
"endCaptures": {
|
|
424
|
+
"0": {
|
|
425
|
+
"name": "end.bracket.round.blade.php"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"name": "meta.directive.blade",
|
|
429
|
+
"patterns": [
|
|
430
|
+
{
|
|
431
|
+
"include": "#balance_brackets"
|
|
432
|
+
}
|
|
433
|
+
]
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"match": "(?x)(?<![A-Za-z0-9_@]) @(?: append\n |break\n |continue\n |csrf\n |default\n |each\n |else\n |overwrite\n |parent\n |sectionMissing\n |show\n |stack\n |stop\n |livewireStyles\n |livewireScripts\n)\\b\n",
|
|
437
|
+
"name": "keyword.blade"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"match": "(?x)(?<![A-Za-z0-9_@]) @(end)? (?i: auth\n |can\n |cannot\n |component\n |empty\n |error\n |for\n |foreach\n |forelse\n |guest\n |if\n |isset\n |lang\n |prepend\n |push\n |section\n |slot\n |switch\n |unless\n |verbatim\n |while\n |task\n |story\n |finished\n |production\n |env\n |once\n)\\b\n",
|
|
441
|
+
"name": "keyword.blade"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"begin": "(?<![A-Za-z0-9_@])@(?i:php|setup)\\b",
|
|
445
|
+
"beginCaptures": {
|
|
446
|
+
"0": {
|
|
447
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"contentName": "source.php",
|
|
451
|
+
"end": "(?<![A-Za-z0-9_@])(?=@(?i:endphp|endsetup)\\b)",
|
|
452
|
+
"endCaptures": {
|
|
453
|
+
"0": {
|
|
454
|
+
"name": "punctuation.section.embedded.end.php"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"name": "meta.embedded.block.blade",
|
|
458
|
+
"patterns": [
|
|
459
|
+
{
|
|
460
|
+
"include": "#language"
|
|
461
|
+
}
|
|
462
|
+
]
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"begin": "(?x)(?<![A-Za-z0-9_@]) (@(?i:endphp|endsetup)[\\t ]*) (\\()",
|
|
466
|
+
"beginCaptures": {
|
|
467
|
+
"1": {
|
|
468
|
+
"name": "punctuation.section.embedded.end.php"
|
|
469
|
+
},
|
|
470
|
+
"2": {
|
|
471
|
+
"name": "begin.bracket.round.blade.php"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"contentName": "comment.blade",
|
|
475
|
+
"end": "\\)",
|
|
476
|
+
"endCaptures": {
|
|
477
|
+
"0": {
|
|
478
|
+
"name": "end.bracket.round.blade.php"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"name": "meta.directive.blade",
|
|
482
|
+
"patterns": [
|
|
483
|
+
{
|
|
484
|
+
"include": "#balance_brackets"
|
|
485
|
+
}
|
|
486
|
+
]
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"match": "(?x)(?<![A-Za-z0-9_@]) @(?:(?i)endphp|endsetup)\\b",
|
|
490
|
+
"name": "punctuation.section.embedded.end.php"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"begin": "(?x)(?<![A-Za-z0-9_@]) (@\\w+(?:::w+)?[\\t ]*) (\\() # Followed by opening parentheses",
|
|
494
|
+
"beginCaptures": {
|
|
495
|
+
"1": {
|
|
496
|
+
"name": "entity.name.function.blade"
|
|
497
|
+
},
|
|
498
|
+
"2": {
|
|
499
|
+
"name": "begin.bracket.round.blade.php"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"contentName": "source.php",
|
|
503
|
+
"end": "\\)",
|
|
504
|
+
"endCaptures": {
|
|
505
|
+
"0": {
|
|
506
|
+
"name": "end.bracket.round.blade.php"
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
"name": "meta.directive.custom.blade",
|
|
510
|
+
"patterns": [
|
|
511
|
+
{
|
|
512
|
+
"include": "#language"
|
|
513
|
+
}
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"match": "(?x)(?<![A-Za-z0-9_@]) @\\w+(?:::w+)?\\b",
|
|
518
|
+
"name": "entity.name.function.blade"
|
|
519
|
+
}
|
|
520
|
+
]
|
|
521
|
+
},
|
|
522
|
+
"class-builtin": {
|
|
523
|
+
"patterns": [
|
|
524
|
+
{
|
|
525
|
+
"captures": {
|
|
526
|
+
"1": {
|
|
527
|
+
"name": "punctuation.separator.inheritance.php"
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
"match": "(?xi)\n(\\\\)?\\b\n((APC|Append)Iterator|Array(Access|Iterator|Object)\n|Bad(Function|Method)CallException\n|(Caching|CallbackFilter)Iterator|Collator|Collectable|Cond|Countable|CURLFile\n|Date(Interval|Period|Time(Interface|Immutable|Zone)?)?|Directory(Iterator)?|DomainException\n|DOM(Attr|CdataSection|CharacterData|Comment|Document(Fragment)?|Element|EntityReference\n |Implementation|NamedNodeMap|Node(list)?|ProcessingInstruction|Text|XPath)\n|(Error)?Exception|EmptyIterator\n|finfo\n|Ev(Check|Child|Embed|Fork|Idle|Io|Loop|Periodic|Prepare|Signal|Stat|Timer|Watcher)?\n|Event(Base|Buffer(Event)?|SslContext|Http(Request|Connection)?|Config|DnsBase|Util|Listener)?\n|FANNConnection|(Filter|Filesystem)Iterator\n|Gender\\\\Gender|GlobIterator|Gmagick(Draw|Pixel)?\n|Haru(Annotation|Destination|Doc|Encoder|Font|Image|Outline|Page)\n|Http((Inflate|Deflate)?Stream|Message|Request(Pool)?|Response|QueryString)\n|HRTime\\\\(PerformanceCounter|StopWatch)\n|Intl(Calendar|((CodePoint|RuleBased)?Break|Parts)?Iterator|DateFormatter|TimeZone)\n|Imagick(Draw|Pixel(Iterator)?)?\n|InfiniteIterator|InvalidArgumentException|Iterator(Aggregate|Iterator)?\n|JsonSerializable\n|KTaglib_(MPEG_(File|AudioProperties)|Tag|ID3v2_(Tag|(AttachedPicture)?Frame))\n|Lapack|(Length|Locale|Logic)Exception|LimitIterator|Lua(Closure)?\n|Mongo(BinData|Client|Code|Collection|CommandCursor|Cursor(Exception)?|Date|DB(Ref)?|DeleteBatch\n |Grid(FS(Cursor|File)?)|Id|InsertBatch|Int(32|64)|Log|Pool|Regex|ResultException|Timestamp\n |UpdateBatch|Write(Batch|ConcernException))?\n|Memcache(d)?|MessageFormatter|MultipleIterator|Mutex\n|mysqli(_(driver|stmt|warning|result))?\n|MysqlndUh(Connection|PreparedStatement)\n|NoRewindIterator|Normalizer|NumberFormatter\n|OCI-(Collection|Lob)|OuterIterator|(OutOf(Bounds|Range)|Overflow)Exception\n|ParentIterator|PDO(Statement)?|Phar(Data|FileInfo)?|php_user_filter|Pool\n|QuickHash(Int(Set|StringHash)|StringIntHash)\n|Recursive(Array|Caching|Directory|Fallback|Filter|Iterator|Regex|Tree)?Iterator\n|Reflection(Class|Function(Abstract)?|Method|Object|Parameter|Property|(Zend)?Extension)?\n|RangeException|Reflector|RegexIterator|ResourceBundle|RuntimeException|RRD(Creator|Graph|Updater)\n|SAM(Connection|Message)|SCA(_(SoapProxy|LocalProxy))?\n|SDO_(DAS_(ChangeSummary|Data(Factory|Object)|Relational|Setting|XML(_Document)?)\n |Data(Factory|Object)|Exception|List|Model_(Property|ReflectionDataObject|Type)|Sequence)\n|SeekableIterator|Serializable|SessionHandler(Interface)?|SimpleXML(Iterator|Element)|SNMP\n|Soap(Client|Fault|Header|Param|Server|Var)\n|SphinxClient|Spoofchecker\n|Spl(DoublyLinkedList|Enum|File(Info|Object)|FixedArray|(Max|Min)?Heap|Observer|ObjectStorage\n |(Priority)?Queue|Stack|Subject|Type|TempFileObject)\n|SQLite(3(Result|Stmt)?|Database|Result|Unbuffered)\n|stdClass|streamWrapper|SVM(Model)?|Swish(Result(s)?|Search)?|Sync(Event|Mutex|ReaderWriter|Semaphore)\n|Thread(ed)?|tidy(Node)?|TokyoTyrant(Table|Iterator|Query)?|Transliterator|Traversable\n|UConverter|(Underflow|UnexpectedValue)Exception\n|V8Js(Exception)?|Varnish(Admin|Log|Stat)\n|Worker|Weak(Map|Ref)\n|XML(Diff\\\\(Base|DOM|File|Memory)|Reader|Writer)|XsltProcessor\n|Yaf_(Route_(Interface|Map|Regex|Rewrite|Simple|Supervar)\n |Action_Abstract|Application|Config_(Simple|Ini|Abstract)|Controller_Abstract\n |Dispatcher|Exception|Loader|Plugin_Abstract|Registry|Request_(Abstract|Simple|Http)\n |Response_Abstract|Router|Session|View_(Simple|Interface))\n|Yar_(Client(_Exception)?|Concurrent_Client|Server(_Exception)?)\n|ZipArchive|ZMQ(Context|Device|Poll|Socket)?)\n\\b",
|
|
531
|
+
"name": "support.class.builtin.php"
|
|
532
|
+
}
|
|
533
|
+
]
|
|
534
|
+
},
|
|
535
|
+
"class-name": {
|
|
536
|
+
"patterns": [
|
|
537
|
+
{
|
|
538
|
+
"begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
|
|
539
|
+
"end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
|
|
540
|
+
"endCaptures": {
|
|
541
|
+
"1": {
|
|
542
|
+
"name": "support.class.php"
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
"patterns": [
|
|
546
|
+
{
|
|
547
|
+
"include": "#namespace"
|
|
548
|
+
}
|
|
549
|
+
]
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"include": "#class-builtin"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"begin": "(?=[\\\\a-zA-Z_])",
|
|
556
|
+
"end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
|
|
557
|
+
"endCaptures": {
|
|
558
|
+
"1": {
|
|
559
|
+
"name": "support.class.php"
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
"patterns": [
|
|
563
|
+
{
|
|
564
|
+
"include": "#namespace"
|
|
565
|
+
}
|
|
566
|
+
]
|
|
567
|
+
}
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
"comments": {
|
|
571
|
+
"patterns": [
|
|
572
|
+
{
|
|
573
|
+
"begin": "/\\*\\*(?=\\s)",
|
|
574
|
+
"beginCaptures": {
|
|
575
|
+
"0": {
|
|
576
|
+
"name": "punctuation.definition.comment.php"
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"end": "\\*/",
|
|
580
|
+
"endCaptures": {
|
|
581
|
+
"0": {
|
|
582
|
+
"name": "punctuation.definition.comment.php"
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
"name": "comment.block.documentation.phpdoc.php",
|
|
586
|
+
"patterns": [
|
|
587
|
+
{
|
|
588
|
+
"include": "#php_doc"
|
|
589
|
+
}
|
|
590
|
+
]
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"begin": "/\\*",
|
|
594
|
+
"captures": {
|
|
595
|
+
"0": {
|
|
596
|
+
"name": "punctuation.definition.comment.php"
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
"end": "\\*/",
|
|
600
|
+
"name": "comment.block.php"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"begin": "(^\\s+)?(?=//)",
|
|
604
|
+
"beginCaptures": {
|
|
605
|
+
"1": {
|
|
606
|
+
"name": "punctuation.whitespace.comment.leading.php"
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"end": "(?!\\G)",
|
|
610
|
+
"patterns": [
|
|
611
|
+
{
|
|
612
|
+
"begin": "//",
|
|
613
|
+
"beginCaptures": {
|
|
614
|
+
"0": {
|
|
615
|
+
"name": "punctuation.definition.comment.php"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
"end": "\\n|(?=\\?>)",
|
|
619
|
+
"name": "comment.line.double-slash.php"
|
|
620
|
+
}
|
|
621
|
+
]
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"begin": "(^\\s+)?(?=#)",
|
|
625
|
+
"beginCaptures": {
|
|
626
|
+
"1": {
|
|
627
|
+
"name": "punctuation.whitespace.comment.leading.php"
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
"end": "(?!\\G)",
|
|
631
|
+
"patterns": [
|
|
632
|
+
{
|
|
633
|
+
"begin": "#",
|
|
634
|
+
"beginCaptures": {
|
|
635
|
+
"0": {
|
|
636
|
+
"name": "punctuation.definition.comment.php"
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
"end": "\\n|(?=\\?>)",
|
|
640
|
+
"name": "comment.line.number-sign.php"
|
|
641
|
+
}
|
|
642
|
+
]
|
|
643
|
+
}
|
|
644
|
+
]
|
|
645
|
+
},
|
|
646
|
+
"constants": {
|
|
647
|
+
"patterns": [
|
|
648
|
+
{
|
|
649
|
+
"match": "(?i)\\b(TRUE|FALSE|NULL|__(FILE|DIR|FUNCTION|CLASS|METHOD|LINE|NAMESPACE)__|ON|OFF|YES|NO|NL|BR|TAB)\\b",
|
|
650
|
+
"name": "constant.language.php"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"captures": {
|
|
654
|
+
"1": {
|
|
655
|
+
"name": "punctuation.separator.inheritance.php"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
"match": "(?x)\n(\\\\)?\\b\n(DEFAULT_INCLUDE_PATH\n|EAR_(INSTALL|EXTENSION)_DIR\n|E_(ALL|COMPILE_(ERROR|WARNING)|CORE_(ERROR|WARNING)|DEPRECATED|ERROR|NOTICE\n |PARSE|RECOVERABLE_ERROR|STRICT|USER_(DEPRECATED|ERROR|NOTICE|WARNING)|WARNING)\n|PHP_(ROUND_HALF_(DOWN|EVEN|ODD|UP)|(MAJOR|MINOR|RELEASE)_VERSION|MAXPATHLEN\n |BINDIR|SHLIB_SUFFIX|SYSCONFDIR|SAPI|CONFIG_FILE_(PATH|SCAN_DIR)\n |INT_(MAX|SIZE)|ZTS|OS|OUTPUT_HANDLER_(START|CONT|END)|DEBUG|DATADIR\n |URL_(SCHEME|HOST|USER|PORT|PASS|PATH|QUERY|FRAGMENT)|PREFIX\n |EXTRA_VERSION|EXTENSION_DIR|EOL|VERSION(_ID)?\n |WINDOWS_(NT_(SERVER|DOMAIN_CONTROLLER|WORKSTATION)\n |VERSION_(MAJOR|MINOR)|BUILD|SUITEMASK|SP_(MAJOR|MINOR)\n |PRODUCTTYPE|PLATFORM)\n |LIBDIR|LOCALSTATEDIR)\n|STD(ERR|IN|OUT)|ZEND_(DEBUG_BUILD|THREAD_SAFE))\n\\b",
|
|
659
|
+
"name": "support.constant.core.php"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"captures": {
|
|
663
|
+
"1": {
|
|
664
|
+
"name": "punctuation.separator.inheritance.php"
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
"match": "(?x)\n(\\\\)?\\b\n(__COMPILER_HALT_OFFSET__|AB(MON_(1|2|3|4|5|6|7|8|9|10|11|12)|DAY[1-7])\n|AM_STR|ASSERT_(ACTIVE|BAIL|CALLBACK_QUIET_EVAL|WARNING)|ALT_DIGITS\n|CASE_(UPPER|LOWER)|CHAR_MAX|CONNECTION_(ABORTED|NORMAL|TIMEOUT)|CODESET|COUNT_(NORMAL|RECURSIVE)\n|CREDITS_(ALL|DOCS|FULLPAGE|GENERAL|GROUP|MODULES|QA|SAPI)\n|CRYPT_(BLOWFISH|EXT_DES|MD5|SHA(256|512)|SALT_LENGTH|STD_DES)|CURRENCY_SYMBOL\n|D_(T_)?FMT|DATE_(ATOM|COOKIE|ISO8601|RFC(822|850|1036|1123|2822|3339)|RSS|W3C)\n|DAY_[1-7]|DECIMAL_POINT|DIRECTORY_SEPARATOR\n|ENT_(COMPAT|IGNORE|(NO)?QUOTES)|EXTR_(IF_EXISTS|OVERWRITE|PREFIX_(ALL|IF_EXISTS|INVALID|SAME)|REFS|SKIP)\n|ERA(_(D_(T_)?FMT)|T_FMT|YEAR)?|FRAC_DIGITS|GROUPING|HASH_HMAC|HTML_(ENTITIES|SPECIALCHARS)\n|INF|INFO_(ALL|CREDITS|CONFIGURATION|ENVIRONMENT|GENERAL|LICENSEMODULES|VARIABLES)\n|INI_(ALL|CANNER_(NORMAL|RAW)|PERDIR|SYSTEM|USER)|INT_(CURR_SYMBOL|FRAC_DIGITS)\n|LC_(ALL|COLLATE|CTYPE|MESSAGES|MONETARY|NUMERIC|TIME)|LOCK_(EX|NB|SH|UN)\n|LOG_(ALERT|AUTH(PRIV)?|CRIT|CRON|CONS|DAEMON|DEBUG|EMERG|ERR|INFO|LOCAL[1-7]|LPR|KERN|MAIL\n |NEWS|NODELAY|NOTICE|NOWAIT|ODELAY|PID|PERROR|WARNING|SYSLOG|UCP|USER)\n|M_(1_PI|SQRT(1_2|2|3|PI)|2_(SQRT)?PI|PI(_(2|4))?|E(ULER)?|LN(10|2|PI)|LOG(10|2)E)\n|MON_(1|2|3|4|5|6|7|8|9|10|11|12|DECIMAL_POINT|GROUPING|THOUSANDS_SEP)\n|N_(CS_PRECEDES|SEP_BY_SPACE|SIGN_POSN)|NAN|NEGATIVE_SIGN|NO(EXPR|STR)\n|P_(CS_PRECEDES|SEP_BY_SPACE|SIGN_POSN)|PM_STR|POSITIVE_SIGN\n|PATH(_SEPARATOR|INFO_(EXTENSION|(BASE|DIR|FILE)NAME))|RADIXCHAR\n|SEEK_(CUR|END|SET)|SORT_(ASC|DESC|LOCALE_STRING|REGULAR|STRING)|STR_PAD_(BOTH|LEFT|RIGHT)\n|T_FMT(_AMPM)?|THOUSEP|THOUSANDS_SEP\n|UPLOAD_ERR_(CANT_WRITE|EXTENSION|(FORM|INI)_SIZE|NO_(FILE|TMP_DIR)|OK|PARTIAL)\n|YES(EXPR|STR))\n\\b",
|
|
668
|
+
"name": "support.constant.std.php"
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"captures": {
|
|
672
|
+
"1": {
|
|
673
|
+
"name": "punctuation.separator.inheritance.php"
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
"match": "(?x)\n(\\\\)?\\b\n(GLOB_(MARK|BRACE|NO(SORT|CHECK|ESCAPE)|ONLYDIR|ERR|AVAILABLE_FLAGS)\n|XML_(SAX_IMPL|(DTD|DOCUMENT(_(FRAG|TYPE))?|HTML_DOCUMENT|NOTATION|NAMESPACE_DECL|PI|COMMENT|DATA_SECTION|TEXT)_NODE\n |OPTION_(SKIP_(TAGSTART|WHITE)|CASE_FOLDING|TARGET_ENCODING)\n |ERROR_((BAD_CHAR|(ATTRIBUTE_EXTERNAL|BINARY|PARAM|RECURSIVE)_ENTITY)_REF|MISPLACED_XML_PI|SYNTAX|NONE\n |NO_(MEMORY|ELEMENTS)|TAG_MISMATCH|INCORRECT_ENCODING|INVALID_TOKEN|DUPLICATE_ATTRIBUTE\n |UNCLOSED_(CDATA_SECTION|TOKEN)|UNDEFINED_ENTITY|UNKNOWN_ENCODING|JUNK_AFTER_DOC_ELEMENT\n |PARTIAL_CHAR|EXTERNAL_ENTITY_HANDLING|ASYNC_ENTITY)\n |ENTITY_(((REF|DECL)_)?NODE)|ELEMENT(_DECL)?_NODE|LOCAL_NAMESPACE|ATTRIBUTE_(NMTOKEN(S)?|NOTATION|NODE)\n |CDATA|ID(REF(S)?)?|DECL_NODE|ENTITY|ENUMERATION)\n|MHASH_(RIPEMD(128|160|256|320)|GOST|MD(2|4|5)|SHA(1|224|256|384|512)|SNEFRU256|HAVAL(128|160|192|224|256)\n |CRC23(B)?|TIGER(128|160)?|WHIRLPOOL|ADLER32)\n|MYSQL_(BOTH|NUM|CLIENT_(SSL|COMPRESS|IGNORE_SPACE|INTERACTIVE|ASSOC))\n|MYSQLI_(REPORT_(STRICT|INDEX|OFF|ERROR|ALL)|REFRESH_(GRANT|MASTER|BACKUP_LOG|STATUS|SLAVE|HOSTS|THREADS|TABLES|LOG)\n |READ_DEFAULT_(FILE|GROUP)|(GROUP|MULTIPLE_KEY|BINARY|BLOB)_FLAG|BOTH\n |STMT_ATTR_(CURSOR_TYPE|UPDATE_MAX_LENGTH|PREFETCH_ROWS)|STORE_RESULT\n |SERVER_QUERY_(NO_((GOOD_)?INDEX_USED)|WAS_SLOW)|SET_(CHARSET_NAME|FLAG)\n |NO_(DEFAULT_VALUE_FLAG|DATA)|NOT_NULL_FLAG|NUM(_FLAG)?\n |CURSOR_TYPE_(READ_ONLY|SCROLLABLE|NO_CURSOR|FOR_UPDATE)\n |CLIENT_(SSL|NO_SCHEMA|COMPRESS|IGNORE_SPACE|INTERACTIVE|FOUND_ROWS)\n |TYPE_(GEOMETRY|((MEDIUM|LONG|TINY)_)?BLOB|BIT|SHORT|STRING|SET|YEAR|NULL|NEWDECIMAL|NEWDATE|CHAR\n |TIME(STAMP)?|TINY|INT24|INTERVAL|DOUBLE|DECIMAL|DATE(TIME)?|ENUM|VAR_STRING|FLOAT|LONG(LONG)?)\n |TIME_STAMP_FLAG|INIT_COMMAND|ZEROFILL_FLAG|ON_UPDATE_NOW_FLAG\n |OPT_(NET_((CMD|READ)_BUFFER_SIZE)|CONNECT_TIMEOUT|INT_AND_FLOAT_NATIVE|LOCAL_INFILE)\n |DEBUG_TRACE_ENABLED|DATA_TRUNCATED|USE_RESULT|(ENUM|(PART|PRI|UNIQUE)_KEY|UNSIGNED)_FLAG\n |ASSOC|ASYNC|AUTO_INCREMENT_FLAG)\n|MCRYPT_(RC(2|6)|RIJNDAEL_(128|192|256)|RAND|GOST|XTEA|MODE_(STREAM|NOFB|CBC|CFB|OFB|ECB)|MARS\n |BLOWFISH(_COMPAT)?|SERPENT|SKIPJACK|SAFER(64|128|PLUS)|CRYPT|CAST_(128|256)|TRIPLEDES|THREEWAY\n |TWOFISH|IDEA|(3)?DES|DECRYPT|DEV_(U)?RANDOM|PANAMA|ENCRYPT|ENIGNA|WAKE|LOKI97|ARCFOUR(_IV)?)\n|STREAM_(REPORT_ERRORS|MUST_SEEK|MKDIR_RECURSIVE|BUFFER_(NONE|FULL|LINE)|SHUT_(RD)?WR\n |SOCK_(RDM|RAW|STREAM|SEQPACKET|DGRAM)|SERVER_(BIND|LISTEN)\n |NOTIFY_(REDIRECTED|RESOLVE|MIME_TYPE_IS|SEVERITY_(INFO|ERR|WARN)|COMPLETED|CONNECT|PROGRESS\n |FILE_SIZE_IS|FAILURE|AUTH_(REQUIRED|RESULT))\n |CRYPTO_METHOD_((SSLv2(3)?|SSLv3|TLS)_(CLIENT|SERVER))|CLIENT_((ASYNC_)?CONNECT|PERSISTENT)\n |CAST_(AS_STREAM|FOR_SELECT)|(IGNORE|IS)_URL|IPPROTO_(RAW|TCP|ICMP|IP|UDP)|OOB\n |OPTION_(READ_(BUFFER|TIMEOUT)|BLOCKING|WRITE_BUFFER)|URL_STAT_(LINK|QUIET)|USE_PATH\n |PEEK|PF_(INET(6)?|UNIX)|ENFORCE_SAFE_MODE|FILTER_(ALL|READ|WRITE))\n|SUNFUNCS_RET_(DOUBLE|STRING|TIMESTAMP)\n|SQLITE_(READONLY|ROW|MISMATCH|MISUSE|BOTH|BUSY|SCHEMA|NOMEM|NOTFOUND|NOTADB|NOLFS|NUM|CORRUPT\n |CONSTRAINT|CANTOPEN|TOOBIG|INTERRUPT|INTERNAL|IOERR|OK|DONE|PROTOCOL|PERM|ERROR|EMPTY\n |FORMAT|FULL|LOCKED|ABORT|ASSOC|AUTH)\n|SQLITE3_(BOTH|BLOB|NUM|NULL|TEXT|INTEGER|OPEN_(READ(ONLY|WRITE)|CREATE)|FLOAT_ASSOC)\n|CURL(M_(BAD_((EASY)?HANDLE)|CALL_MULTI_PERFORM|INTERNAL_ERROR|OUT_OF_MEMORY|OK)\n |MSG_DONE|SSH_AUTH_(HOST|NONE|DEFAULT|PUBLICKEY|PASSWORD|KEYBOARD)\n |CLOSEPOLICY_(SLOWEST|CALLBACK|OLDEST|LEAST_(RECENTLY_USED|TRAFFIC)\n |INFO_(REDIRECT_(COUNT|TIME)|REQUEST_SIZE|SSL_VERIFYRESULT|STARTTRANSFER_TIME\n |(SIZE|SPEED)_(DOWNLOAD|UPLOAD)|HTTP_CODE|HEADER_(OUT|SIZE)|NAMELOOKUP_TIME\n |CONNECT_TIME|CONTENT_(TYPE|LENGTH_(DOWNLOAD|UPLOAD))|CERTINFO|TOTAL_TIME\n |PRIVATE|PRETRANSFER_TIME|EFFECTIVE_URL|FILETIME)\n |OPT_(RESUME_FROM|RETURNTRANSFER|REDIR_PROTOCOLS|REFERER|READ(DATA|FUNCTION)|RANGE|RANDOM_FILE\n |MAX(CONNECTS|REDIRS)|BINARYTRANSFER|BUFFERSIZE\n |SSH_(HOST_PUBLIC_KEY_MD5|(PRIVATE|PUBLIC)_KEYFILE)|AUTH_TYPES)\n |SSL(CERT(TYPE|PASSWD)?|ENGINE(_DEFAULT)?|VERSION|KEY(TYPE|PASSWD)?)\n |SSL_(CIPHER_LIST|VERIFY(HOST|PEER))\n |STDERR|HTTP(GET|HEADER|200ALIASES|_VERSION|PROXYTUNNEL|AUTH)\n |HEADER(FUNCTION)?|NO(BODY|SIGNAL|PROGRESS)|NETRC|CRLF|CONNECTTIMEOUT(_MS)?\n |COOKIE(SESSION|JAR|FILE)?|CUSTOMREQUEST|CERTINFO|CLOSEPOLICY|CA(INFO|PATH)|TRANSFERTEXT\n |TCP_NODELAY|TIME(CONDITION|OUT(_MS)?|VALUE)|INTERFACE|INFILE(SIZE)?|IPRESOLVE\n |DNS_(CACHE_TIMEOUT|USE_GLOBAL_CACHE)|URL|USER(AGENT|PWD)|UNRESTRICTED_AUTH|UPLOAD\n |PRIVATE|PROGRESSFUNCTION|PROXY(TYPE|USERPWD|PORT|AUTH)?|PROTOCOLS|PORT\n |POST(REDIR|QUOTE|FIELDS)?|PUT|EGDSOCKET|ENCODING|VERBOSE|KRB4LEVEL|KEYPASSWD|QUOTE|FRESH_CONNECT\n |FTP(APPEND|LISTONLY|PORT|SSLAUTH)\n |FTP_(SSL|SKIP_PASV_IP|CREATE_MISSING_DIRS|USE_EP(RT|SV)|FILEMETHOD)\n |FILE(TIME)?|FORBID_REUSE|FOLLOWLOCATION|FAILONERROR|WRITE(FUNCTION|HEADER)|LOW_SPEED_(LIMIT|TIME)\n |AUTOREFERER)\n |PROXY_(HTTP|SOCKS(4|5))|PROTO_(SCP|SFTP|HTTP(S)?|TELNET|TFTP|DICT|FTP(S)?|FILE|LDAP(S)?|ALL)\n |E_((RECV|READ)_ERROR|GOT_NOTHING|MALFORMAT_USER\n |BAD_(CONTENT_ENCODING|CALLING_ORDER|PASSWORD_ENTERED|FUNCTION_ARGUMENT)\n |SSH|SSL_(CIPHER|CONNECT_ERROR|CERTPROBLEM|CACERT|PEER_CERTIFICATE|ENGINE_(NOTFOUND|SETFAILED))\n |SHARE_IN_USE|SEND_ERROR|HTTP_(RANGE_ERROR|NOT_FOUND|PORT_FAILED|POST_ERROR)\n |COULDNT_(RESOLVE_(HOST|PROXY)|CONNECT)|TOO_MANY_REDIRECTS|TELNET_OPTION_SYNTAX|OBSOLETE\n |OUT_OF_MEMORY|OPERATION|TIMEOUTED|OK|URL_MALFORMAT(_USER)?|UNSUPPORTED_PROTOCOL\n |UNKNOWN_TELNET_OPTION|PARTIAL_FILE\n |FTP_(BAD_DOWNLOAD_RESUME|SSL_FAILED|COULDNT_(RETR_FILE|GET_SIZE|STOR_FILE|SET_(BINARY|ASCII)|USE_REST)\n |CANT_(GET_HOST|RECONNECT)|USER_PASSWORD_INCORRECT|PORT_FAILED|QUOTE_ERROR|WRITE_ERROR\n |WEIRD_((PASS|PASV|SERVER|USER)_REPLY|227_FORMAT)|ACCESS_DENIED)\n |FILESIZE_EXCEEDED|FILE_COULDNT_READ_FILE|FUNCTION_NOT_FOUND|FAILED_INIT|WRITE_ERROR|LIBRARY_NOT_FOUND\n |LDAP_(SEARCH_FAILED|CANNOT_BIND|INVALID_URL)|ABORTED_BY_CALLBACK)\n |VERSION_NOW\n |FTP(METHOD_(MULTI|SINGLE|NO)CWD|SSL_(ALL|NONE|CONTROL|TRY)|AUTH_(DEFAULT|SSL|TLS))\n |AUTH_(ANY(SAFE)?|BASIC|DIGEST|GSSNEGOTIATE|NTLM))\n|CURL_(HTTP_VERSION_(1_(0|1)|NONE)|NETRC_(REQUIRED|IGNORED|OPTIONAL)|TIMECOND_(IF(UN)?MODSINCE|LASTMOD)\n |IPRESOLVE_(V(4|6)|WHATEVER)|VERSION_(SSL|IPV6|KERBEROS4|LIBZ))\n|IMAGETYPE_(GIF|XBM|BMP|SWF|COUNT|TIFF_(MM|II)|ICO|IFF|UNKNOWN|JB2|JPX|JP2|JPC|JPEG(2000)?|PSD|PNG|WBMP)\n|INPUT_(REQUEST|GET|SERVER|SESSION|COOKIE|POST|ENV)|ICONV_(MIME_DECODE_(STRICT|CONTINUE_ON_ERROR)|IMPL|VERSION)\n|DNS_(MX|SRV|SOA|HINFO|NS|NAPTR|CNAME|TXT|PTR|ANY|ALL|AAAA|A(6)?)\n|DOM(STRING_SIZE_ERR)\n|DOM_((SYNTAX|HIERARCHY_REQUEST|NO_(MODIFICATION_ALLOWED|DATA_ALLOWED)|NOT_(FOUND|SUPPORTED)|NAMESPACE\n |INDEX_SIZE|USE_ATTRIBUTE|VALID_(MODIFICATION|STATE|CHARACTER|ACCESS)|PHP|VALIDATION|WRONG_DOCUMENT)_ERR)\n|JSON_(HEX_(TAG|QUOT|AMP|APOS)|NUMERIC_CHECK|ERROR_(SYNTAX|STATE_MISMATCH|NONE|CTRL_CHAR|DEPTH|UTF8)|FORCE_OBJECT)\n|PREG_((D_UTF8(_OFFSET)?|NO|INTERNAL|(BACKTRACK|RECURSION)_LIMIT)_ERROR|GREP_INVERT\n |SPLIT_(NO_EMPTY|(DELIM|OFFSET)_CAPTURE)|SET_ORDER|OFFSET_CAPTURE|PATTERN_ORDER)\n|PSFS_(PASS_ON|ERR_FATAL|FEED_ME|FLAG_(NORMAL|FLUSH_(CLOSE|INC)))\n|PCRE_VERSION|POSIX_((F|R|W|X)_OK|S_IF(REG|BLK|SOCK|CHR|IFO))\n|FNM_(NOESCAPE|CASEFOLD|PERIOD|PATHNAME)\n|FILTER_(REQUIRE_(SCALAR|ARRAY)|NULL_ON_FAILURE|CALLBACK|DEFAULT|UNSAFE_RAW\n |SANITIZE_(MAGIC_QUOTES|STRING|STRIPPED|SPECIAL_CHARS|NUMBER_(INT|FLOAT)|URL\n |EMAIL|ENCODED|FULL_SPCIAL_CHARS)\n |VALIDATE_(REGEXP|BOOLEAN|INT|IP|URL|EMAIL|FLOAT)\n |FORCE_ARRAY\n |FLAG_(SCHEME_REQUIRED|STRIP_(BACKTICK|HIGH|LOW)|HOST_REQUIRED|NONE|NO_(RES|PRIV)_RANGE|ENCODE_QUOTES\n |IPV(4|6)|PATH_REQUIRED|EMPTY_STRING_NULL|ENCODE_(HIGH|LOW|AMP)|QUERY_REQUIRED\n |ALLOW_(SCIENTIFIC|HEX|THOUSAND|OCTAL|FRACTION)))\n|FILE_(BINARY|SKIP_EMPTY_LINES|NO_DEFAULT_CONTEXT|TEXT|IGNORE_NEW_LINES|USE_INCLUDE_PATH|APPEND)\n|FILEINFO_(RAW|MIME(_(ENCODING|TYPE))?|SYMLINK|NONE|CONTINUE|DEVICES|PRESERVE_ATIME)\n|FORCE_(DEFLATE|GZIP)\n|LIBXML_(XINCLUDE|NSCLEAN|NO(XMLDECL|BLANKS|NET|CDATA|ERROR|EMPTYTAG|ENT|WARNING)\n |COMPACT|DTD(VALID|LOAD|ATTR)|((DOTTED|LOADED)_)?VERSION|PARSEHUGE|ERR_(NONE|ERROR|FATAL|WARNING)))\n\\b",
|
|
677
|
+
"name": "support.constant.ext.php"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"captures": {
|
|
681
|
+
"1": {
|
|
682
|
+
"name": "punctuation.separator.inheritance.php"
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
"match": "(?x)\n(\\\\)?\\b\n(T_(RETURN|REQUIRE(_ONCE)?|GOTO|GLOBAL|(MINUS|MOD|MUL|XOR)_EQUAL|METHOD_C|ML_COMMENT|BREAK\n |BOOL_CAST|BOOLEAN_(AND|OR)|BAD_CHARACTER|SR(_EQUAL)?|STRING(_CAST|VARNAME)?|START_HEREDOC|STATIC\n |SWITCH|SL(_EQUAL)?|HALT_COMPILER|NS_(C|SEPARATOR)|NUM_STRING|NEW|NAMESPACE|CHARACTER|COMMENT\n |CONSTANT(_ENCAPSED_STRING)?|CONCAT_EQUAL|CONTINUE|CURLY_OPEN|CLOSE_TAG|CLONE|CLASS(_C)?\n |CASE|CATCH|TRY|THROW|IMPLEMENTS|ISSET|IS_((GREATER|SMALLER)_OR_EQUAL|(NOT_)?(IDENTICAL|EQUAL))\n |INSTANCEOF|INCLUDE(_ONCE)?|INC|INT_CAST|INTERFACE|INLINE_HTML|IF|OR_EQUAL|OBJECT_(CAST|OPERATOR)\n |OPEN_TAG(_WITH_ECHO)?|OLD_FUNCTION|DNUMBER|DIR|DIV_EQUAL|DOC_COMMENT|DOUBLE_(ARROW|CAST|COLON)\n |DOLLAR_OPEN_CURLY_BRACES|DO|DEC|DECLARE|DEFAULT|USE|UNSET(_CAST)?|PRINT|PRIVATE|PROTECTED|PUBLIC\n |PLUS_EQUAL|PAAMAYIM_NEKUDOTAYIM|EXTENDS|EXIT|EMPTY|ENCAPSED_AND_WHITESPACE\n |END(SWITCH|IF|DECLARE|FOR(EACH)?|WHILE)|END_HEREDOC|ECHO|EVAL|ELSE(IF)?|VAR(IABLE)?|FINAL|FILE\n |FOR(EACH)?|FUNC_C|FUNCTION|WHITESPACE|WHILE|LNUMBER|LIST|LINE|LOGICAL_(AND|OR|XOR)\n |ARRAY_(CAST)?|ABSTRACT|AS|AND_EQUAL))\n\\b",
|
|
686
|
+
"name": "support.constant.parser-token.php"
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
|
|
690
|
+
"name": "constant.other.php"
|
|
691
|
+
}
|
|
692
|
+
]
|
|
693
|
+
},
|
|
694
|
+
"function-call": {
|
|
695
|
+
"patterns": [
|
|
696
|
+
{
|
|
697
|
+
"begin": "(?xi)\n(\n \\\\?\\b # Optional root namespace\n [a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]* # First namespace\n (?:\\\\[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)+ # Additional namespaces\n)\\s*(\\()",
|
|
698
|
+
"beginCaptures": {
|
|
699
|
+
"1": {
|
|
700
|
+
"patterns": [
|
|
701
|
+
{
|
|
702
|
+
"include": "#namespace"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
|
|
706
|
+
"name": "entity.name.function.php"
|
|
707
|
+
}
|
|
708
|
+
]
|
|
709
|
+
},
|
|
710
|
+
"2": {
|
|
711
|
+
"name": "punctuation.definition.arguments.begin.bracket.round.php"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"end": "\\)|(?=\\?>)",
|
|
715
|
+
"endCaptures": {
|
|
716
|
+
"0": {
|
|
717
|
+
"name": "punctuation.definition.arguments.end.bracket.round.php"
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
"name": "meta.function-call.php",
|
|
721
|
+
"patterns": [
|
|
722
|
+
{
|
|
723
|
+
"include": "#language"
|
|
724
|
+
}
|
|
725
|
+
]
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"begin": "(?i)(\\\\)?\\b([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\s*(\\()",
|
|
729
|
+
"beginCaptures": {
|
|
730
|
+
"1": {
|
|
731
|
+
"patterns": [
|
|
732
|
+
{
|
|
733
|
+
"include": "#namespace"
|
|
734
|
+
}
|
|
735
|
+
]
|
|
736
|
+
},
|
|
737
|
+
"2": {
|
|
738
|
+
"patterns": [
|
|
739
|
+
{
|
|
740
|
+
"include": "#support"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
|
|
744
|
+
"name": "entity.name.function.php"
|
|
745
|
+
}
|
|
746
|
+
]
|
|
747
|
+
},
|
|
748
|
+
"3": {
|
|
749
|
+
"name": "punctuation.definition.arguments.begin.bracket.round.php"
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
"end": "\\)|(?=\\?>)",
|
|
753
|
+
"endCaptures": {
|
|
754
|
+
"0": {
|
|
755
|
+
"name": "punctuation.definition.arguments.end.bracket.round.php"
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
"name": "meta.function-call.php",
|
|
759
|
+
"patterns": [
|
|
760
|
+
{
|
|
761
|
+
"include": "#language"
|
|
762
|
+
}
|
|
763
|
+
]
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"match": "(?i)\\b(print|echo)\\b",
|
|
767
|
+
"name": "support.function.construct.output.php"
|
|
768
|
+
}
|
|
769
|
+
]
|
|
770
|
+
},
|
|
771
|
+
"function-parameters": {
|
|
772
|
+
"patterns": [
|
|
773
|
+
{
|
|
774
|
+
"include": "#comments"
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
"match": ",",
|
|
778
|
+
"name": "punctuation.separator.delimiter.php"
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"begin": "(?xi)\n(array) # Typehint\n\\s+((&)?\\s*(\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Variable name with possible reference\n\\s*(=)\\s*(array)\\s*(\\() # Default value",
|
|
782
|
+
"beginCaptures": {
|
|
783
|
+
"1": {
|
|
784
|
+
"name": "storage.type.php"
|
|
785
|
+
},
|
|
786
|
+
"2": {
|
|
787
|
+
"name": "variable.other.php"
|
|
788
|
+
},
|
|
789
|
+
"3": {
|
|
790
|
+
"name": "storage.modifier.reference.php"
|
|
791
|
+
},
|
|
792
|
+
"4": {
|
|
793
|
+
"name": "punctuation.definition.variable.php"
|
|
794
|
+
},
|
|
795
|
+
"5": {
|
|
796
|
+
"name": "keyword.operator.assignment.php"
|
|
797
|
+
},
|
|
798
|
+
"6": {
|
|
799
|
+
"name": "support.function.construct.php"
|
|
800
|
+
},
|
|
801
|
+
"7": {
|
|
802
|
+
"name": "punctuation.definition.array.begin.bracket.round.php"
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
"contentName": "meta.array.php",
|
|
806
|
+
"end": "\\)",
|
|
807
|
+
"endCaptures": {
|
|
808
|
+
"0": {
|
|
809
|
+
"name": "punctuation.definition.array.end.bracket.round.php"
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
"name": "meta.function.parameter.array.php",
|
|
813
|
+
"patterns": [
|
|
814
|
+
{
|
|
815
|
+
"include": "#comments"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"include": "#strings"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"include": "#numbers"
|
|
822
|
+
}
|
|
823
|
+
]
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
"captures": {
|
|
827
|
+
"1": {
|
|
828
|
+
"name": "storage.type.php"
|
|
829
|
+
},
|
|
830
|
+
"10": {
|
|
831
|
+
"name": "invalid.illegal.non-null-typehinted.php"
|
|
832
|
+
},
|
|
833
|
+
"2": {
|
|
834
|
+
"name": "variable.other.php"
|
|
835
|
+
},
|
|
836
|
+
"3": {
|
|
837
|
+
"name": "storage.modifier.reference.php"
|
|
838
|
+
},
|
|
839
|
+
"4": {
|
|
840
|
+
"name": "punctuation.definition.variable.php"
|
|
841
|
+
},
|
|
842
|
+
"5": {
|
|
843
|
+
"name": "keyword.operator.assignment.php"
|
|
844
|
+
},
|
|
845
|
+
"6": {
|
|
846
|
+
"name": "constant.language.php"
|
|
847
|
+
},
|
|
848
|
+
"7": {
|
|
849
|
+
"name": "punctuation.section.array.begin.php"
|
|
850
|
+
},
|
|
851
|
+
"8": {
|
|
852
|
+
"patterns": [
|
|
853
|
+
{
|
|
854
|
+
"include": "#parameter-default-types"
|
|
855
|
+
}
|
|
856
|
+
]
|
|
857
|
+
},
|
|
858
|
+
"9": {
|
|
859
|
+
"name": "punctuation.section.array.end.php"
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
"match": "(?xi)\n(array|callable) # Typehint\n\\s+((&)?\\s*(\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Variable name with possible reference\n(?: # Optional default value\n \\s*(=)\\s*\n (?:\n (null)\n |\n (\\[)((?>[^\\[\\]]+|\\[\\g<8>\\])*)(\\])\n |((?:\\S*?\\(\\))|(?:\\S*?))\n )\n)?\n\\s*(?=,|\\)|/[/*]|\\#|$) # A closing parentheses (end of argument list) or a comma or a comment",
|
|
863
|
+
"name": "meta.function.parameter.array.php"
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"begin": "(?xi)\n(\\\\?(?:[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*\\\\)*) # Optional namespace\n([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Typehinted class name\n\\s+((&)?\\s*(\\.\\.\\.)?(\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Variable name with possible reference",
|
|
867
|
+
"beginCaptures": {
|
|
868
|
+
"1": {
|
|
869
|
+
"name": "support.other.namespace.php",
|
|
870
|
+
"patterns": [
|
|
871
|
+
{
|
|
872
|
+
"match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
|
|
873
|
+
"name": "storage.type.php"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"match": "\\\\",
|
|
877
|
+
"name": "punctuation.separator.inheritance.php"
|
|
878
|
+
}
|
|
879
|
+
]
|
|
880
|
+
},
|
|
881
|
+
"2": {
|
|
882
|
+
"name": "storage.type.php"
|
|
883
|
+
},
|
|
884
|
+
"3": {
|
|
885
|
+
"name": "variable.other.php"
|
|
886
|
+
},
|
|
887
|
+
"4": {
|
|
888
|
+
"name": "storage.modifier.reference.php"
|
|
889
|
+
},
|
|
890
|
+
"5": {
|
|
891
|
+
"name": "keyword.operator.variadic.php"
|
|
892
|
+
},
|
|
893
|
+
"6": {
|
|
894
|
+
"name": "punctuation.definition.variable.php"
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
"end": "(?=,|\\)|/[/*]|\\#)",
|
|
898
|
+
"name": "meta.function.parameter.typehinted.php",
|
|
899
|
+
"patterns": [
|
|
900
|
+
{
|
|
901
|
+
"begin": "=",
|
|
902
|
+
"beginCaptures": {
|
|
903
|
+
"0": {
|
|
904
|
+
"name": "keyword.operator.assignment.php"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
"end": "(?=,|\\)|/[/*]|\\#)",
|
|
908
|
+
"patterns": [
|
|
909
|
+
{
|
|
910
|
+
"include": "#language"
|
|
911
|
+
}
|
|
912
|
+
]
|
|
913
|
+
}
|
|
914
|
+
]
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"captures": {
|
|
918
|
+
"1": {
|
|
919
|
+
"name": "variable.other.php"
|
|
920
|
+
},
|
|
921
|
+
"2": {
|
|
922
|
+
"name": "storage.modifier.reference.php"
|
|
923
|
+
},
|
|
924
|
+
"3": {
|
|
925
|
+
"name": "keyword.operator.variadic.php"
|
|
926
|
+
},
|
|
927
|
+
"4": {
|
|
928
|
+
"name": "punctuation.definition.variable.php"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"match": "(?xi)\n((&)?\\s*(\\.\\.\\.)?(\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Variable name with possible reference\n\\s*(?=,|\\)|/[/*]|\\#|$) # A closing parentheses (end of argument list) or a comma or a comment",
|
|
932
|
+
"name": "meta.function.parameter.no-default.php"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"begin": "(?xi)\n((&)?\\s*(\\.\\.\\.)?(\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Variable name with possible reference\n\\s*(=)\\s*\n(?:(\\[)((?>[^\\[\\]]+|\\[\\g<6>\\])*)(\\]))? # Optional default type",
|
|
936
|
+
"beginCaptures": {
|
|
937
|
+
"1": {
|
|
938
|
+
"name": "variable.other.php"
|
|
939
|
+
},
|
|
940
|
+
"2": {
|
|
941
|
+
"name": "storage.modifier.reference.php"
|
|
942
|
+
},
|
|
943
|
+
"3": {
|
|
944
|
+
"name": "keyword.operator.variadic.php"
|
|
945
|
+
},
|
|
946
|
+
"4": {
|
|
947
|
+
"name": "punctuation.definition.variable.php"
|
|
948
|
+
},
|
|
949
|
+
"5": {
|
|
950
|
+
"name": "keyword.operator.assignment.php"
|
|
951
|
+
},
|
|
952
|
+
"6": {
|
|
953
|
+
"name": "punctuation.section.array.begin.php"
|
|
954
|
+
},
|
|
955
|
+
"7": {
|
|
956
|
+
"patterns": [
|
|
957
|
+
{
|
|
958
|
+
"include": "#parameter-default-types"
|
|
959
|
+
}
|
|
960
|
+
]
|
|
961
|
+
},
|
|
962
|
+
"8": {
|
|
963
|
+
"name": "punctuation.section.array.end.php"
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
"end": "(?=,|\\)|/[/*]|\\#)",
|
|
967
|
+
"name": "meta.function.parameter.default.php",
|
|
968
|
+
"patterns": [
|
|
969
|
+
{
|
|
970
|
+
"include": "#parameter-default-types"
|
|
971
|
+
}
|
|
972
|
+
]
|
|
973
|
+
}
|
|
974
|
+
]
|
|
975
|
+
},
|
|
976
|
+
"heredoc": {
|
|
977
|
+
"patterns": [
|
|
978
|
+
{
|
|
979
|
+
"begin": "(?i)(?=<<<\\s*(\"?)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)(\\1)\\s*$)",
|
|
980
|
+
"end": "(?!\\G)",
|
|
981
|
+
"name": "string.unquoted.heredoc.php",
|
|
982
|
+
"patterns": [
|
|
983
|
+
{
|
|
984
|
+
"include": "#heredoc_interior"
|
|
985
|
+
}
|
|
986
|
+
]
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"begin": "(?=<<<\\s*'([a-zA-Z_]+[a-zA-Z0-9_]*)'\\s*$)",
|
|
990
|
+
"end": "(?!\\G)",
|
|
991
|
+
"name": "string.unquoted.nowdoc.php",
|
|
992
|
+
"patterns": [
|
|
993
|
+
{
|
|
994
|
+
"include": "#nowdoc_interior"
|
|
995
|
+
}
|
|
996
|
+
]
|
|
997
|
+
}
|
|
998
|
+
]
|
|
999
|
+
},
|
|
1000
|
+
"heredoc_interior": {
|
|
1001
|
+
"patterns": [
|
|
1002
|
+
{
|
|
1003
|
+
"begin": "(<<<)\\s*(\"?)(HTML)(\\2)(\\s*)$",
|
|
1004
|
+
"beginCaptures": {
|
|
1005
|
+
"0": {
|
|
1006
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
1007
|
+
},
|
|
1008
|
+
"1": {
|
|
1009
|
+
"name": "punctuation.definition.string.php"
|
|
1010
|
+
},
|
|
1011
|
+
"3": {
|
|
1012
|
+
"name": "keyword.operator.heredoc.php"
|
|
1013
|
+
},
|
|
1014
|
+
"5": {
|
|
1015
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
|
+
"contentName": "text.html",
|
|
1019
|
+
"end": "^(\\3)\\b",
|
|
1020
|
+
"endCaptures": {
|
|
1021
|
+
"0": {
|
|
1022
|
+
"name": "punctuation.section.embedded.end.php"
|
|
1023
|
+
},
|
|
1024
|
+
"1": {
|
|
1025
|
+
"name": "keyword.operator.heredoc.php"
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
"name": "meta.embedded.html",
|
|
1029
|
+
"patterns": [
|
|
1030
|
+
{
|
|
1031
|
+
"include": "#interpolation"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"include": "text.html.basic"
|
|
1035
|
+
}
|
|
1036
|
+
]
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"begin": "(<<<)\\s*(\"?)(XML)(\\2)(\\s*)$",
|
|
1040
|
+
"beginCaptures": {
|
|
1041
|
+
"0": {
|
|
1042
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
1043
|
+
},
|
|
1044
|
+
"1": {
|
|
1045
|
+
"name": "punctuation.definition.string.php"
|
|
1046
|
+
},
|
|
1047
|
+
"3": {
|
|
1048
|
+
"name": "keyword.operator.heredoc.php"
|
|
1049
|
+
},
|
|
1050
|
+
"5": {
|
|
1051
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
1052
|
+
}
|
|
1053
|
+
},
|
|
1054
|
+
"contentName": "text.xml",
|
|
1055
|
+
"end": "^(\\3)\\b",
|
|
1056
|
+
"endCaptures": {
|
|
1057
|
+
"0": {
|
|
1058
|
+
"name": "punctuation.section.embedded.end.php"
|
|
1059
|
+
},
|
|
1060
|
+
"1": {
|
|
1061
|
+
"name": "keyword.operator.heredoc.php"
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
"name": "meta.embedded.xml",
|
|
1065
|
+
"patterns": [
|
|
1066
|
+
{
|
|
1067
|
+
"include": "#interpolation"
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"include": "text.xml"
|
|
1071
|
+
}
|
|
1072
|
+
]
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"begin": "(<<<)\\s*(\"?)(SQL)(\\2)(\\s*)$",
|
|
1076
|
+
"beginCaptures": {
|
|
1077
|
+
"0": {
|
|
1078
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
1079
|
+
},
|
|
1080
|
+
"1": {
|
|
1081
|
+
"name": "punctuation.definition.string.php"
|
|
1082
|
+
},
|
|
1083
|
+
"3": {
|
|
1084
|
+
"name": "keyword.operator.heredoc.php"
|
|
1085
|
+
},
|
|
1086
|
+
"5": {
|
|
1087
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
"contentName": "source.sql",
|
|
1091
|
+
"end": "^(\\3)\\b",
|
|
1092
|
+
"endCaptures": {
|
|
1093
|
+
"0": {
|
|
1094
|
+
"name": "punctuation.section.embedded.end.php"
|
|
1095
|
+
},
|
|
1096
|
+
"1": {
|
|
1097
|
+
"name": "keyword.operator.heredoc.php"
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
"name": "meta.embedded.sql",
|
|
1101
|
+
"patterns": [
|
|
1102
|
+
{
|
|
1103
|
+
"include": "#interpolation"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"include": "source.sql"
|
|
1107
|
+
}
|
|
1108
|
+
]
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"begin": "(<<<)\\s*(\"?)(JAVASCRIPT|JS)(\\2)(\\s*)$",
|
|
1112
|
+
"beginCaptures": {
|
|
1113
|
+
"0": {
|
|
1114
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
1115
|
+
},
|
|
1116
|
+
"1": {
|
|
1117
|
+
"name": "punctuation.definition.string.php"
|
|
1118
|
+
},
|
|
1119
|
+
"3": {
|
|
1120
|
+
"name": "keyword.operator.heredoc.php"
|
|
1121
|
+
},
|
|
1122
|
+
"5": {
|
|
1123
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
"contentName": "source.js",
|
|
1127
|
+
"end": "^(\\3)\\b",
|
|
1128
|
+
"endCaptures": {
|
|
1129
|
+
"0": {
|
|
1130
|
+
"name": "punctuation.section.embedded.end.php"
|
|
1131
|
+
},
|
|
1132
|
+
"1": {
|
|
1133
|
+
"name": "keyword.operator.heredoc.php"
|
|
1134
|
+
}
|
|
1135
|
+
},
|
|
1136
|
+
"name": "meta.embedded.js",
|
|
1137
|
+
"patterns": [
|
|
1138
|
+
{
|
|
1139
|
+
"include": "#interpolation"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"include": "source.js"
|
|
1143
|
+
}
|
|
1144
|
+
]
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"begin": "(<<<)\\s*(\"?)(JSON)(\\2)(\\s*)$",
|
|
1148
|
+
"beginCaptures": {
|
|
1149
|
+
"0": {
|
|
1150
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
1151
|
+
},
|
|
1152
|
+
"1": {
|
|
1153
|
+
"name": "punctuation.definition.string.php"
|
|
1154
|
+
},
|
|
1155
|
+
"3": {
|
|
1156
|
+
"name": "keyword.operator.heredoc.php"
|
|
1157
|
+
},
|
|
1158
|
+
"5": {
|
|
1159
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
"contentName": "source.json",
|
|
1163
|
+
"end": "^(\\3)\\b",
|
|
1164
|
+
"endCaptures": {
|
|
1165
|
+
"0": {
|
|
1166
|
+
"name": "punctuation.section.embedded.end.php"
|
|
1167
|
+
},
|
|
1168
|
+
"1": {
|
|
1169
|
+
"name": "keyword.operator.heredoc.php"
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
"name": "meta.embedded.json",
|
|
1173
|
+
"patterns": [
|
|
1174
|
+
{
|
|
1175
|
+
"include": "#interpolation"
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
"include": "source.json"
|
|
1179
|
+
}
|
|
1180
|
+
]
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"begin": "(<<<)\\s*(\"?)(CSS)(\\2)(\\s*)$",
|
|
1184
|
+
"beginCaptures": {
|
|
1185
|
+
"0": {
|
|
1186
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
1187
|
+
},
|
|
1188
|
+
"1": {
|
|
1189
|
+
"name": "punctuation.definition.string.php"
|
|
1190
|
+
},
|
|
1191
|
+
"3": {
|
|
1192
|
+
"name": "keyword.operator.heredoc.php"
|
|
1193
|
+
},
|
|
1194
|
+
"5": {
|
|
1195
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
"contentName": "source.css",
|
|
1199
|
+
"end": "^(\\3)\\b",
|
|
1200
|
+
"endCaptures": {
|
|
1201
|
+
"0": {
|
|
1202
|
+
"name": "punctuation.section.embedded.end.php"
|
|
1203
|
+
},
|
|
1204
|
+
"1": {
|
|
1205
|
+
"name": "keyword.operator.heredoc.php"
|
|
1206
|
+
}
|
|
1207
|
+
},
|
|
1208
|
+
"name": "meta.embedded.css",
|
|
1209
|
+
"patterns": [
|
|
1210
|
+
{
|
|
1211
|
+
"include": "#interpolation"
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
"include": "source.css"
|
|
1215
|
+
}
|
|
1216
|
+
]
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"begin": "(<<<)\\s*(\"?)(REGEXP?)(\\2)(\\s*)$",
|
|
1220
|
+
"beginCaptures": {
|
|
1221
|
+
"0": {
|
|
1222
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
1223
|
+
},
|
|
1224
|
+
"1": {
|
|
1225
|
+
"name": "punctuation.definition.string.php"
|
|
1226
|
+
},
|
|
1227
|
+
"3": {
|
|
1228
|
+
"name": "keyword.operator.heredoc.php"
|
|
1229
|
+
},
|
|
1230
|
+
"5": {
|
|
1231
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
1232
|
+
}
|
|
1233
|
+
},
|
|
1234
|
+
"contentName": "string.regexp.heredoc.php",
|
|
1235
|
+
"end": "^(\\3)\\b",
|
|
1236
|
+
"endCaptures": {
|
|
1237
|
+
"0": {
|
|
1238
|
+
"name": "punctuation.section.embedded.end.php"
|
|
1239
|
+
},
|
|
1240
|
+
"1": {
|
|
1241
|
+
"name": "keyword.operator.heredoc.php"
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
"patterns": [
|
|
1245
|
+
{
|
|
1246
|
+
"include": "#interpolation"
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
"match": "(\\\\){1,2}[.$^\\[\\]{}]",
|
|
1250
|
+
"name": "constant.character.escape.regex.php"
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
"captures": {
|
|
1254
|
+
"1": {
|
|
1255
|
+
"name": "punctuation.definition.arbitrary-repitition.php"
|
|
1256
|
+
},
|
|
1257
|
+
"3": {
|
|
1258
|
+
"name": "punctuation.definition.arbitrary-repitition.php"
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
"match": "({)\\d+(,\\d+)?(})",
|
|
1262
|
+
"name": "string.regexp.arbitrary-repitition.php"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"begin": "\\[(?:\\^?\\])?",
|
|
1266
|
+
"captures": {
|
|
1267
|
+
"0": {
|
|
1268
|
+
"name": "punctuation.definition.character-class.php"
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1271
|
+
"end": "\\]",
|
|
1272
|
+
"name": "string.regexp.character-class.php",
|
|
1273
|
+
"patterns": [
|
|
1274
|
+
{
|
|
1275
|
+
"match": "\\\\[\\\\'\\[\\]]",
|
|
1276
|
+
"name": "constant.character.escape.php"
|
|
1277
|
+
}
|
|
1278
|
+
]
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"match": "[$^+*]",
|
|
1282
|
+
"name": "keyword.operator.regexp.php"
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
"begin": "(?i)(?<=^|\\s)(#)\\s(?=[[a-z0-9_\\x{7f}-\\x{ff},. \\t?!-][^\\x{00}-\\x{7f}]]*$)",
|
|
1286
|
+
"beginCaptures": {
|
|
1287
|
+
"1": {
|
|
1288
|
+
"name": "punctuation.definition.comment.php"
|
|
1289
|
+
}
|
|
1290
|
+
},
|
|
1291
|
+
"end": "$",
|
|
1292
|
+
"endCaptures": {
|
|
1293
|
+
"0": {
|
|
1294
|
+
"name": "punctuation.definition.comment.php"
|
|
1295
|
+
}
|
|
1296
|
+
},
|
|
1297
|
+
"name": "comment.line.number-sign.php"
|
|
1298
|
+
}
|
|
1299
|
+
]
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"begin": "(?i)(<<<)\\s*(\"?)([a-z_\\x{7f}-\\x{ff}]+[a-z0-9_\\x{7f}-\\x{ff}]*)(\\2)(\\s*)",
|
|
1303
|
+
"beginCaptures": {
|
|
1304
|
+
"1": {
|
|
1305
|
+
"name": "punctuation.definition.string.php"
|
|
1306
|
+
},
|
|
1307
|
+
"3": {
|
|
1308
|
+
"name": "keyword.operator.heredoc.php"
|
|
1309
|
+
},
|
|
1310
|
+
"5": {
|
|
1311
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
1312
|
+
}
|
|
1313
|
+
},
|
|
1314
|
+
"end": "^(\\3)\\b",
|
|
1315
|
+
"endCaptures": {
|
|
1316
|
+
"1": {
|
|
1317
|
+
"name": "keyword.operator.heredoc.php"
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1320
|
+
"patterns": [
|
|
1321
|
+
{
|
|
1322
|
+
"include": "#interpolation"
|
|
1323
|
+
}
|
|
1324
|
+
]
|
|
1325
|
+
}
|
|
1326
|
+
]
|
|
1327
|
+
},
|
|
1328
|
+
"instantiation": {
|
|
1329
|
+
"begin": "(?i)(new)\\s+",
|
|
1330
|
+
"beginCaptures": {
|
|
1331
|
+
"1": {
|
|
1332
|
+
"name": "keyword.other.new.php"
|
|
1333
|
+
}
|
|
1334
|
+
},
|
|
1335
|
+
"end": "(?i)(?=[^a-z0-9_\\x{7f}-\\x{ff}\\\\])",
|
|
1336
|
+
"patterns": [
|
|
1337
|
+
{
|
|
1338
|
+
"match": "(?i)(parent|static|self)(?![a-z0-9_\\x{7f}-\\x{ff}])",
|
|
1339
|
+
"name": "storage.type.php"
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
"include": "#class-name"
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
"include": "#variable-name"
|
|
1346
|
+
}
|
|
1347
|
+
]
|
|
1348
|
+
},
|
|
1349
|
+
"interpolation": {
|
|
1350
|
+
"patterns": [
|
|
1351
|
+
{
|
|
1352
|
+
"match": "\\\\[0-7]{1,3}",
|
|
1353
|
+
"name": "constant.character.escape.octal.php"
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"match": "\\\\x[0-9A-Fa-f]{1,2}",
|
|
1357
|
+
"name": "constant.character.escape.hex.php"
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
"match": "\\\\u{[0-9A-Fa-f]+}",
|
|
1361
|
+
"name": "constant.character.escape.unicode.php"
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"match": "\\\\[nrtvef$\"\\\\]",
|
|
1365
|
+
"name": "constant.character.escape.php"
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"begin": "{(?=\\$.*?})",
|
|
1369
|
+
"beginCaptures": {
|
|
1370
|
+
"0": {
|
|
1371
|
+
"name": "punctuation.definition.variable.php"
|
|
1372
|
+
}
|
|
1373
|
+
},
|
|
1374
|
+
"end": "}",
|
|
1375
|
+
"endCaptures": {
|
|
1376
|
+
"0": {
|
|
1377
|
+
"name": "punctuation.definition.variable.php"
|
|
1378
|
+
}
|
|
1379
|
+
},
|
|
1380
|
+
"patterns": [
|
|
1381
|
+
{
|
|
1382
|
+
"include": "#language"
|
|
1383
|
+
}
|
|
1384
|
+
]
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
"include": "#variable-name"
|
|
1388
|
+
}
|
|
1389
|
+
]
|
|
1390
|
+
},
|
|
1391
|
+
"invoke-call": {
|
|
1392
|
+
"captures": {
|
|
1393
|
+
"1": {
|
|
1394
|
+
"name": "punctuation.definition.variable.php"
|
|
1395
|
+
},
|
|
1396
|
+
"2": {
|
|
1397
|
+
"name": "variable.other.php"
|
|
1398
|
+
}
|
|
1399
|
+
},
|
|
1400
|
+
"match": "(?i)(\\$+)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)(?=\\s*\\()",
|
|
1401
|
+
"name": "meta.function-call.invoke.php"
|
|
1402
|
+
},
|
|
1403
|
+
"language": {
|
|
1404
|
+
"patterns": [
|
|
1405
|
+
{
|
|
1406
|
+
"include": "#comments"
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
"begin": "(?i)^\\s*(interface)\\s+([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\s*(extends)?\\s*",
|
|
1410
|
+
"beginCaptures": {
|
|
1411
|
+
"1": {
|
|
1412
|
+
"name": "storage.type.interface.php"
|
|
1413
|
+
},
|
|
1414
|
+
"2": {
|
|
1415
|
+
"name": "entity.name.type.interface.php"
|
|
1416
|
+
},
|
|
1417
|
+
"3": {
|
|
1418
|
+
"name": "storage.modifier.extends.php"
|
|
1419
|
+
}
|
|
1420
|
+
},
|
|
1421
|
+
"end": "(?i)((?:[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*\\s*,\\s*)*)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?\\s*(?:(?={)|$)",
|
|
1422
|
+
"endCaptures": {
|
|
1423
|
+
"1": {
|
|
1424
|
+
"patterns": [
|
|
1425
|
+
{
|
|
1426
|
+
"match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
|
|
1427
|
+
"name": "entity.other.inherited-class.php"
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
"match": ",",
|
|
1431
|
+
"name": "punctuation.separator.classes.php"
|
|
1432
|
+
}
|
|
1433
|
+
]
|
|
1434
|
+
},
|
|
1435
|
+
"2": {
|
|
1436
|
+
"name": "entity.other.inherited-class.php"
|
|
1437
|
+
}
|
|
1438
|
+
},
|
|
1439
|
+
"name": "meta.interface.php",
|
|
1440
|
+
"patterns": [
|
|
1441
|
+
{
|
|
1442
|
+
"include": "#namespace"
|
|
1443
|
+
}
|
|
1444
|
+
]
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"begin": "(?i)^\\s*(trait)\\s+([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)",
|
|
1448
|
+
"beginCaptures": {
|
|
1449
|
+
"1": {
|
|
1450
|
+
"name": "storage.type.trait.php"
|
|
1451
|
+
},
|
|
1452
|
+
"2": {
|
|
1453
|
+
"name": "entity.name.type.trait.php"
|
|
1454
|
+
}
|
|
1455
|
+
},
|
|
1456
|
+
"end": "(?={)",
|
|
1457
|
+
"name": "meta.trait.php",
|
|
1458
|
+
"patterns": [
|
|
1459
|
+
{
|
|
1460
|
+
"include": "#comments"
|
|
1461
|
+
}
|
|
1462
|
+
]
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
"captures": {
|
|
1466
|
+
"1": {
|
|
1467
|
+
"name": "keyword.other.namespace.php"
|
|
1468
|
+
},
|
|
1469
|
+
"2": {
|
|
1470
|
+
"name": "entity.name.type.namespace.php",
|
|
1471
|
+
"patterns": [
|
|
1472
|
+
{
|
|
1473
|
+
"match": "\\\\",
|
|
1474
|
+
"name": "punctuation.separator.inheritance.php"
|
|
1475
|
+
}
|
|
1476
|
+
]
|
|
1477
|
+
}
|
|
1478
|
+
},
|
|
1479
|
+
"match": "(?i)(?:^|(?<=<\\?php))\\s*(namespace)\\s+([a-z0-9_\\x{7f}-\\x{ff}\\\\]+)(?=\\s*;)",
|
|
1480
|
+
"name": "meta.namespace.php"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"begin": "(?i)(?:^|(?<=<\\?php))\\s*(namespace)\\s+",
|
|
1484
|
+
"beginCaptures": {
|
|
1485
|
+
"1": {
|
|
1486
|
+
"name": "keyword.other.namespace.php"
|
|
1487
|
+
}
|
|
1488
|
+
},
|
|
1489
|
+
"end": "(?<=})|(?=\\?>)",
|
|
1490
|
+
"name": "meta.namespace.php",
|
|
1491
|
+
"patterns": [
|
|
1492
|
+
{
|
|
1493
|
+
"include": "#comments"
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
"captures": {
|
|
1497
|
+
"0": {
|
|
1498
|
+
"patterns": [
|
|
1499
|
+
{
|
|
1500
|
+
"match": "\\\\",
|
|
1501
|
+
"name": "punctuation.separator.inheritance.php"
|
|
1502
|
+
}
|
|
1503
|
+
]
|
|
1504
|
+
}
|
|
1505
|
+
},
|
|
1506
|
+
"match": "(?i)[a-z0-9_\\x{7f}-\\x{ff}\\\\]+",
|
|
1507
|
+
"name": "entity.name.type.namespace.php"
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"begin": "{",
|
|
1511
|
+
"beginCaptures": {
|
|
1512
|
+
"0": {
|
|
1513
|
+
"name": "punctuation.definition.namespace.begin.bracket.curly.php"
|
|
1514
|
+
}
|
|
1515
|
+
},
|
|
1516
|
+
"end": "}|(?=\\?>)",
|
|
1517
|
+
"endCaptures": {
|
|
1518
|
+
"0": {
|
|
1519
|
+
"name": "punctuation.definition.namespace.end.bracket.curly.php"
|
|
1520
|
+
}
|
|
1521
|
+
},
|
|
1522
|
+
"patterns": [
|
|
1523
|
+
{
|
|
1524
|
+
"include": "#language"
|
|
1525
|
+
}
|
|
1526
|
+
]
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
"match": "[^\\s]+",
|
|
1530
|
+
"name": "invalid.illegal.identifier.php"
|
|
1531
|
+
}
|
|
1532
|
+
]
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
"match": "\\s+(?=use\\b)"
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
"begin": "(?i)\\buse\\b",
|
|
1539
|
+
"beginCaptures": {
|
|
1540
|
+
"0": {
|
|
1541
|
+
"name": "keyword.other.use.php"
|
|
1542
|
+
}
|
|
1543
|
+
},
|
|
1544
|
+
"end": "(?<=})|(?=;)",
|
|
1545
|
+
"name": "meta.use.php",
|
|
1546
|
+
"patterns": [
|
|
1547
|
+
{
|
|
1548
|
+
"match": "\\b(const|function)\\b",
|
|
1549
|
+
"name": "storage.type.${1:/downcase}.php"
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
"begin": "{",
|
|
1553
|
+
"beginCaptures": {
|
|
1554
|
+
"0": {
|
|
1555
|
+
"name": "punctuation.definition.use.begin.bracket.curly.php"
|
|
1556
|
+
}
|
|
1557
|
+
},
|
|
1558
|
+
"end": "}",
|
|
1559
|
+
"endCaptures": {
|
|
1560
|
+
"0": {
|
|
1561
|
+
"name": "punctuation.definition.use.end.bracket.curly.php"
|
|
1562
|
+
}
|
|
1563
|
+
},
|
|
1564
|
+
"patterns": [
|
|
1565
|
+
{
|
|
1566
|
+
"include": "#scope-resolution"
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
"captures": {
|
|
1570
|
+
"1": {
|
|
1571
|
+
"name": "keyword.other.use-as.php"
|
|
1572
|
+
},
|
|
1573
|
+
"2": {
|
|
1574
|
+
"name": "storage.modifier.php"
|
|
1575
|
+
},
|
|
1576
|
+
"3": {
|
|
1577
|
+
"name": "entity.other.alias.php"
|
|
1578
|
+
}
|
|
1579
|
+
},
|
|
1580
|
+
"match": "(?xi)\n\\b(as)\n\\s+(final|abstract|public|private|protected|static)\n\\s+([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\n\\b"
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
"captures": {
|
|
1584
|
+
"1": {
|
|
1585
|
+
"name": "keyword.other.use-as.php"
|
|
1586
|
+
},
|
|
1587
|
+
"2": {
|
|
1588
|
+
"patterns": [
|
|
1589
|
+
{
|
|
1590
|
+
"match": "^(?:final|abstract|public|private|protected|static)$",
|
|
1591
|
+
"name": "storage.modifier.php"
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"match": ".+",
|
|
1595
|
+
"name": "entity.other.alias.php"
|
|
1596
|
+
}
|
|
1597
|
+
]
|
|
1598
|
+
}
|
|
1599
|
+
},
|
|
1600
|
+
"match": "(?xi)\n\\b(as)\n\\s+([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\n\\b"
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
"captures": {
|
|
1604
|
+
"1": {
|
|
1605
|
+
"name": "keyword.other.use-insteadof.php"
|
|
1606
|
+
},
|
|
1607
|
+
"2": {
|
|
1608
|
+
"name": "support.class.php"
|
|
1609
|
+
}
|
|
1610
|
+
},
|
|
1611
|
+
"match": "(?i)\\b(insteadof)\\s+([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)"
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
"match": ";",
|
|
1615
|
+
"name": "punctuation.terminator.expression.php"
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
"include": "#use-inner"
|
|
1619
|
+
}
|
|
1620
|
+
]
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
"include": "#use-inner"
|
|
1624
|
+
}
|
|
1625
|
+
]
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
"begin": "(?i)^\\s*(?:(abstract|final)\\s+)?(class)\\s+([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)",
|
|
1629
|
+
"beginCaptures": {
|
|
1630
|
+
"1": {
|
|
1631
|
+
"name": "storage.modifier.${1:/downcase}.php"
|
|
1632
|
+
},
|
|
1633
|
+
"2": {
|
|
1634
|
+
"name": "storage.type.class.php"
|
|
1635
|
+
},
|
|
1636
|
+
"3": {
|
|
1637
|
+
"name": "entity.name.type.class.php"
|
|
1638
|
+
}
|
|
1639
|
+
},
|
|
1640
|
+
"end": "}|(?=\\?>)",
|
|
1641
|
+
"endCaptures": {
|
|
1642
|
+
"0": {
|
|
1643
|
+
"name": "punctuation.definition.class.end.bracket.curly.php"
|
|
1644
|
+
}
|
|
1645
|
+
},
|
|
1646
|
+
"name": "meta.class.php",
|
|
1647
|
+
"patterns": [
|
|
1648
|
+
{
|
|
1649
|
+
"include": "#comments"
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
"begin": "(?i)(extends)\\s+",
|
|
1653
|
+
"beginCaptures": {
|
|
1654
|
+
"1": {
|
|
1655
|
+
"name": "storage.modifier.extends.php"
|
|
1656
|
+
}
|
|
1657
|
+
},
|
|
1658
|
+
"contentName": "meta.other.inherited-class.php",
|
|
1659
|
+
"end": "(?i)(?=[^a-z0-9_\\x{7f}-\\x{ff}\\\\])",
|
|
1660
|
+
"patterns": [
|
|
1661
|
+
{
|
|
1662
|
+
"begin": "(?i)(?=\\\\?[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*\\\\)",
|
|
1663
|
+
"end": "(?i)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?(?=[^a-z0-9_\\x{7f}-\\x{ff}\\\\])",
|
|
1664
|
+
"endCaptures": {
|
|
1665
|
+
"1": {
|
|
1666
|
+
"name": "entity.other.inherited-class.php"
|
|
1667
|
+
}
|
|
1668
|
+
},
|
|
1669
|
+
"patterns": [
|
|
1670
|
+
{
|
|
1671
|
+
"include": "#namespace"
|
|
1672
|
+
}
|
|
1673
|
+
]
|
|
1674
|
+
},
|
|
1675
|
+
{
|
|
1676
|
+
"include": "#class-builtin"
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
"include": "#namespace"
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
|
|
1683
|
+
"name": "entity.other.inherited-class.php"
|
|
1684
|
+
}
|
|
1685
|
+
]
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"begin": "(?i)(implements)\\s+",
|
|
1689
|
+
"beginCaptures": {
|
|
1690
|
+
"1": {
|
|
1691
|
+
"name": "storage.modifier.implements.php"
|
|
1692
|
+
}
|
|
1693
|
+
},
|
|
1694
|
+
"end": "(?i)(?=[;{])",
|
|
1695
|
+
"patterns": [
|
|
1696
|
+
{
|
|
1697
|
+
"include": "#comments"
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
"begin": "(?i)(?=[a-z0-9_\\x{7f}-\\x{ff}\\\\]+)",
|
|
1701
|
+
"contentName": "meta.other.inherited-class.php",
|
|
1702
|
+
"end": "(?i)(?:\\s*(?:,|(?=[^a-z0-9_\\x{7f}-\\x{ff}\\\\\\s]))\\s*)",
|
|
1703
|
+
"patterns": [
|
|
1704
|
+
{
|
|
1705
|
+
"begin": "(?i)(?=\\\\?[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*\\\\)",
|
|
1706
|
+
"end": "(?i)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?(?=[^a-z0-9_\\x{7f}-\\x{ff}\\\\])",
|
|
1707
|
+
"endCaptures": {
|
|
1708
|
+
"1": {
|
|
1709
|
+
"name": "entity.other.inherited-class.php"
|
|
1710
|
+
}
|
|
1711
|
+
},
|
|
1712
|
+
"patterns": [
|
|
1713
|
+
{
|
|
1714
|
+
"include": "#namespace"
|
|
1715
|
+
}
|
|
1716
|
+
]
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"include": "#class-builtin"
|
|
1720
|
+
},
|
|
1721
|
+
{
|
|
1722
|
+
"include": "#namespace"
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
"match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
|
|
1726
|
+
"name": "entity.other.inherited-class.php"
|
|
1727
|
+
}
|
|
1728
|
+
]
|
|
1729
|
+
}
|
|
1730
|
+
]
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
"begin": "{",
|
|
1734
|
+
"beginCaptures": {
|
|
1735
|
+
"0": {
|
|
1736
|
+
"name": "punctuation.definition.class.begin.bracket.curly.php"
|
|
1737
|
+
}
|
|
1738
|
+
},
|
|
1739
|
+
"contentName": "meta.class.body.php",
|
|
1740
|
+
"end": "(?=}|\\?>)",
|
|
1741
|
+
"patterns": [
|
|
1742
|
+
{
|
|
1743
|
+
"include": "#language"
|
|
1744
|
+
}
|
|
1745
|
+
]
|
|
1746
|
+
}
|
|
1747
|
+
]
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
"include": "#switch_statement"
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
"captures": {
|
|
1754
|
+
"1": {
|
|
1755
|
+
"name": "keyword.control.${1:/downcase}.php"
|
|
1756
|
+
}
|
|
1757
|
+
},
|
|
1758
|
+
"match": "(?x)\n\\s*\n\\b(\n break|case|continue|declare|default|die|do|\n else(if)?|end(declare|for(each)?|if|switch|while)|exit|\n for(each)?|if|return|switch|use|while|yield\n)\\b"
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"begin": "(?i)\\b((?:require|include)(?:_once)?)\\s+",
|
|
1762
|
+
"beginCaptures": {
|
|
1763
|
+
"1": {
|
|
1764
|
+
"name": "keyword.control.import.include.php"
|
|
1765
|
+
}
|
|
1766
|
+
},
|
|
1767
|
+
"end": "(?=\\s|;|$|\\?>)",
|
|
1768
|
+
"name": "meta.include.php",
|
|
1769
|
+
"patterns": [
|
|
1770
|
+
{
|
|
1771
|
+
"include": "#language"
|
|
1772
|
+
}
|
|
1773
|
+
]
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"begin": "\\b(catch)\\s*(\\()",
|
|
1777
|
+
"beginCaptures": {
|
|
1778
|
+
"1": {
|
|
1779
|
+
"name": "keyword.control.exception.catch.php"
|
|
1780
|
+
},
|
|
1781
|
+
"2": {
|
|
1782
|
+
"name": "punctuation.definition.parameters.begin.bracket.round.php"
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
"end": "\\)",
|
|
1786
|
+
"endCaptures": {
|
|
1787
|
+
"0": {
|
|
1788
|
+
"name": "punctuation.definition.parameters.end.bracket.round.php"
|
|
1789
|
+
}
|
|
1790
|
+
},
|
|
1791
|
+
"name": "meta.catch.php",
|
|
1792
|
+
"patterns": [
|
|
1793
|
+
{
|
|
1794
|
+
"include": "#namespace"
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
"captures": {
|
|
1798
|
+
"1": {
|
|
1799
|
+
"name": "support.class.exception.php"
|
|
1800
|
+
},
|
|
1801
|
+
"2": {
|
|
1802
|
+
"patterns": [
|
|
1803
|
+
{
|
|
1804
|
+
"match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
|
|
1805
|
+
"name": "support.class.exception.php"
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
"match": "\\|",
|
|
1809
|
+
"name": "punctuation.separator.delimiter.php"
|
|
1810
|
+
}
|
|
1811
|
+
]
|
|
1812
|
+
},
|
|
1813
|
+
"3": {
|
|
1814
|
+
"name": "variable.other.php"
|
|
1815
|
+
},
|
|
1816
|
+
"4": {
|
|
1817
|
+
"name": "punctuation.definition.variable.php"
|
|
1818
|
+
}
|
|
1819
|
+
},
|
|
1820
|
+
"match": "(?xi)\n([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Exception class\n((?:\\s*\\|\\s*[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)*) # Optional additional exception classes\n\\s*\n((\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Variable"
|
|
1821
|
+
}
|
|
1822
|
+
]
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
"match": "\\b(catch|try|throw|exception|finally)\\b",
|
|
1826
|
+
"name": "keyword.control.exception.php"
|
|
1827
|
+
},
|
|
1828
|
+
{
|
|
1829
|
+
"begin": "(?i)\\b(function)\\s*(?=\\()",
|
|
1830
|
+
"beginCaptures": {
|
|
1831
|
+
"1": {
|
|
1832
|
+
"name": "storage.type.function.php"
|
|
1833
|
+
}
|
|
1834
|
+
},
|
|
1835
|
+
"end": "(?={)",
|
|
1836
|
+
"name": "meta.function.closure.php",
|
|
1837
|
+
"patterns": [
|
|
1838
|
+
{
|
|
1839
|
+
"begin": "\\(",
|
|
1840
|
+
"beginCaptures": {
|
|
1841
|
+
"0": {
|
|
1842
|
+
"name": "punctuation.definition.parameters.begin.bracket.round.php"
|
|
1843
|
+
}
|
|
1844
|
+
},
|
|
1845
|
+
"contentName": "meta.function.parameters.php",
|
|
1846
|
+
"end": "\\)",
|
|
1847
|
+
"endCaptures": {
|
|
1848
|
+
"0": {
|
|
1849
|
+
"name": "punctuation.definition.parameters.end.bracket.round.php"
|
|
1850
|
+
}
|
|
1851
|
+
},
|
|
1852
|
+
"patterns": [
|
|
1853
|
+
{
|
|
1854
|
+
"include": "#function-parameters"
|
|
1855
|
+
}
|
|
1856
|
+
]
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
"begin": "(?i)(use)\\s*(\\()",
|
|
1860
|
+
"beginCaptures": {
|
|
1861
|
+
"1": {
|
|
1862
|
+
"name": "keyword.other.function.use.php"
|
|
1863
|
+
},
|
|
1864
|
+
"2": {
|
|
1865
|
+
"name": "punctuation.definition.parameters.begin.bracket.round.php"
|
|
1866
|
+
}
|
|
1867
|
+
},
|
|
1868
|
+
"end": "\\)",
|
|
1869
|
+
"endCaptures": {
|
|
1870
|
+
"0": {
|
|
1871
|
+
"name": "punctuation.definition.parameters.end.bracket.round.php"
|
|
1872
|
+
}
|
|
1873
|
+
},
|
|
1874
|
+
"patterns": [
|
|
1875
|
+
{
|
|
1876
|
+
"captures": {
|
|
1877
|
+
"1": {
|
|
1878
|
+
"name": "variable.other.php"
|
|
1879
|
+
},
|
|
1880
|
+
"2": {
|
|
1881
|
+
"name": "storage.modifier.reference.php"
|
|
1882
|
+
},
|
|
1883
|
+
"3": {
|
|
1884
|
+
"name": "punctuation.definition.variable.php"
|
|
1885
|
+
}
|
|
1886
|
+
},
|
|
1887
|
+
"match": "(?i)((&)?\\s*(\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\s*(?=,|\\))",
|
|
1888
|
+
"name": "meta.function.closure.use.php"
|
|
1889
|
+
}
|
|
1890
|
+
]
|
|
1891
|
+
}
|
|
1892
|
+
]
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
"begin": "(?x)\n((?:(?:final|abstract|public|private|protected|static)\\s+)*)\n(function)\\s+\n(?i:\n (__(?:call|construct|debugInfo|destruct|get|set|isset|unset|tostring|\n clone|set_state|sleep|wakeup|autoload|invoke|callStatic))\n |([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n)\n\\s*(\\()",
|
|
1896
|
+
"beginCaptures": {
|
|
1897
|
+
"1": {
|
|
1898
|
+
"patterns": [
|
|
1899
|
+
{
|
|
1900
|
+
"match": "final|abstract|public|private|protected|static",
|
|
1901
|
+
"name": "storage.modifier.php"
|
|
1902
|
+
}
|
|
1903
|
+
]
|
|
1904
|
+
},
|
|
1905
|
+
"2": {
|
|
1906
|
+
"name": "storage.type.function.php"
|
|
1907
|
+
},
|
|
1908
|
+
"3": {
|
|
1909
|
+
"name": "support.function.magic.php"
|
|
1910
|
+
},
|
|
1911
|
+
"4": {
|
|
1912
|
+
"name": "entity.name.function.php"
|
|
1913
|
+
},
|
|
1914
|
+
"5": {
|
|
1915
|
+
"name": "punctuation.definition.parameters.begin.bracket.round.php"
|
|
1916
|
+
}
|
|
1917
|
+
},
|
|
1918
|
+
"contentName": "meta.function.parameters.php",
|
|
1919
|
+
"end": "(\\))(?:\\s*(:)\\s*([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*))?",
|
|
1920
|
+
"endCaptures": {
|
|
1921
|
+
"1": {
|
|
1922
|
+
"name": "punctuation.definition.parameters.end.bracket.round.php"
|
|
1923
|
+
},
|
|
1924
|
+
"2": {
|
|
1925
|
+
"name": "keyword.operator.return-value.php"
|
|
1926
|
+
},
|
|
1927
|
+
"3": {
|
|
1928
|
+
"name": "storage.type.php"
|
|
1929
|
+
}
|
|
1930
|
+
},
|
|
1931
|
+
"name": "meta.function.php",
|
|
1932
|
+
"patterns": [
|
|
1933
|
+
{
|
|
1934
|
+
"include": "#function-parameters"
|
|
1935
|
+
}
|
|
1936
|
+
]
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
"include": "#invoke-call"
|
|
1940
|
+
},
|
|
1941
|
+
{
|
|
1942
|
+
"include": "#scope-resolution"
|
|
1943
|
+
},
|
|
1944
|
+
{
|
|
1945
|
+
"include": "#variables"
|
|
1946
|
+
},
|
|
1947
|
+
{
|
|
1948
|
+
"include": "#strings"
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
"captures": {
|
|
1952
|
+
"1": {
|
|
1953
|
+
"name": "support.function.construct.php"
|
|
1954
|
+
},
|
|
1955
|
+
"2": {
|
|
1956
|
+
"name": "punctuation.definition.array.begin.bracket.round.php"
|
|
1957
|
+
},
|
|
1958
|
+
"3": {
|
|
1959
|
+
"name": "punctuation.definition.array.end.bracket.round.php"
|
|
1960
|
+
}
|
|
1961
|
+
},
|
|
1962
|
+
"match": "(array)(\\()(\\))",
|
|
1963
|
+
"name": "meta.array.empty.php"
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
"begin": "(array)(\\()",
|
|
1967
|
+
"beginCaptures": {
|
|
1968
|
+
"1": {
|
|
1969
|
+
"name": "support.function.construct.php"
|
|
1970
|
+
},
|
|
1971
|
+
"2": {
|
|
1972
|
+
"name": "punctuation.definition.array.begin.bracket.round.php"
|
|
1973
|
+
}
|
|
1974
|
+
},
|
|
1975
|
+
"end": "\\)|(?=\\?>)",
|
|
1976
|
+
"endCaptures": {
|
|
1977
|
+
"0": {
|
|
1978
|
+
"name": "punctuation.definition.array.end.bracket.round.php"
|
|
1979
|
+
}
|
|
1980
|
+
},
|
|
1981
|
+
"name": "meta.array.php",
|
|
1982
|
+
"patterns": [
|
|
1983
|
+
{
|
|
1984
|
+
"include": "#language"
|
|
1985
|
+
}
|
|
1986
|
+
]
|
|
1987
|
+
},
|
|
1988
|
+
{
|
|
1989
|
+
"captures": {
|
|
1990
|
+
"1": {
|
|
1991
|
+
"name": "punctuation.definition.storage-type.begin.bracket.round.php"
|
|
1992
|
+
},
|
|
1993
|
+
"2": {
|
|
1994
|
+
"name": "storage.type.php"
|
|
1995
|
+
},
|
|
1996
|
+
"3": {
|
|
1997
|
+
"name": "punctuation.definition.storage-type.end.bracket.round.php"
|
|
1998
|
+
}
|
|
1999
|
+
},
|
|
2000
|
+
"match": "(?i)(\\()\\s*(array|real|double|float|int(?:eger)?|bool(?:ean)?|string|object|binary|unset)\\s*(\\))"
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
"match": "(?i)\\b(array|real|double|float|int(eger)?|bool(ean)?|string|class|var|function|interface|trait|parent|self|object)\\b",
|
|
2004
|
+
"name": "storage.type.php"
|
|
2005
|
+
},
|
|
2006
|
+
{
|
|
2007
|
+
"match": "(?i)\\b(global|abstract|const|extends|implements|final|private|protected|public|static)\\b",
|
|
2008
|
+
"name": "storage.modifier.php"
|
|
2009
|
+
},
|
|
2010
|
+
{
|
|
2011
|
+
"include": "#object"
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
"match": ";",
|
|
2015
|
+
"name": "punctuation.terminator.expression.php"
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
"match": ":",
|
|
2019
|
+
"name": "punctuation.terminator.statement.php"
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
"include": "#heredoc"
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
"include": "#numbers"
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
"match": "(?i)\\bclone\\b",
|
|
2029
|
+
"name": "keyword.other.clone.php"
|
|
2030
|
+
},
|
|
2031
|
+
{
|
|
2032
|
+
"match": "\\.=?",
|
|
2033
|
+
"name": "keyword.operator.string.php"
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
"match": "=>",
|
|
2037
|
+
"name": "keyword.operator.key.php"
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
"captures": {
|
|
2041
|
+
"1": {
|
|
2042
|
+
"name": "keyword.operator.assignment.php"
|
|
2043
|
+
},
|
|
2044
|
+
"2": {
|
|
2045
|
+
"name": "storage.modifier.reference.php"
|
|
2046
|
+
},
|
|
2047
|
+
"3": {
|
|
2048
|
+
"name": "storage.modifier.reference.php"
|
|
2049
|
+
}
|
|
2050
|
+
},
|
|
2051
|
+
"match": "(?i)(\\=)(&)|(&)(?=[$a-z_])"
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
"match": "@",
|
|
2055
|
+
"name": "keyword.operator.error-control.php"
|
|
2056
|
+
},
|
|
2057
|
+
{
|
|
2058
|
+
"match": "===|==|!==|!=|<>",
|
|
2059
|
+
"name": "keyword.operator.comparison.php"
|
|
2060
|
+
},
|
|
2061
|
+
{
|
|
2062
|
+
"match": "=|\\+=|\\-=|\\*=|/=|%=|&=|\\|=|\\^=|<<=|>>=",
|
|
2063
|
+
"name": "keyword.operator.assignment.php"
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
"match": "<=>|<=|>=|<|>",
|
|
2067
|
+
"name": "keyword.operator.comparison.php"
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
"match": "\\-\\-|\\+\\+",
|
|
2071
|
+
"name": "keyword.operator.increment-decrement.php"
|
|
2072
|
+
},
|
|
2073
|
+
{
|
|
2074
|
+
"match": "\\-|\\+|\\*|/|%",
|
|
2075
|
+
"name": "keyword.operator.arithmetic.php"
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
"match": "(?i)(!|&&|\\|\\|)|\\b(and|or|xor|as)\\b",
|
|
2079
|
+
"name": "keyword.operator.logical.php"
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
"include": "#function-call"
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
"match": "<<|>>|~|\\^|&|\\|",
|
|
2086
|
+
"name": "keyword.operator.bitwise.php"
|
|
2087
|
+
},
|
|
2088
|
+
{
|
|
2089
|
+
"begin": "(?i)\\b(instanceof)\\s+(?=[\\\\$a-z_])",
|
|
2090
|
+
"beginCaptures": {
|
|
2091
|
+
"1": {
|
|
2092
|
+
"name": "keyword.operator.type.php"
|
|
2093
|
+
}
|
|
2094
|
+
},
|
|
2095
|
+
"end": "(?=[^\\\\$a-z0-9_\\x{7f}-\\x{ff}])",
|
|
2096
|
+
"patterns": [
|
|
2097
|
+
{
|
|
2098
|
+
"include": "#class-name"
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
"include": "#variable-name"
|
|
2102
|
+
}
|
|
2103
|
+
]
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
"include": "#instantiation"
|
|
2107
|
+
},
|
|
2108
|
+
{
|
|
2109
|
+
"captures": {
|
|
2110
|
+
"1": {
|
|
2111
|
+
"name": "keyword.control.goto.php"
|
|
2112
|
+
},
|
|
2113
|
+
"2": {
|
|
2114
|
+
"name": "support.other.php"
|
|
2115
|
+
}
|
|
2116
|
+
},
|
|
2117
|
+
"match": "(?i)(goto)\\s+([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)"
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
"captures": {
|
|
2121
|
+
"1": {
|
|
2122
|
+
"name": "entity.name.goto-label.php"
|
|
2123
|
+
}
|
|
2124
|
+
},
|
|
2125
|
+
"match": "(?i)^\\s*([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\s*:(?!:)"
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
"include": "#string-backtick"
|
|
2129
|
+
},
|
|
2130
|
+
{
|
|
2131
|
+
"begin": "{",
|
|
2132
|
+
"beginCaptures": {
|
|
2133
|
+
"0": {
|
|
2134
|
+
"name": "punctuation.definition.begin.bracket.curly.php"
|
|
2135
|
+
}
|
|
2136
|
+
},
|
|
2137
|
+
"end": "}|(?=\\?>)",
|
|
2138
|
+
"endCaptures": {
|
|
2139
|
+
"0": {
|
|
2140
|
+
"name": "punctuation.definition.end.bracket.curly.php"
|
|
2141
|
+
}
|
|
2142
|
+
},
|
|
2143
|
+
"patterns": [
|
|
2144
|
+
{
|
|
2145
|
+
"include": "#language"
|
|
2146
|
+
}
|
|
2147
|
+
]
|
|
2148
|
+
},
|
|
2149
|
+
{
|
|
2150
|
+
"begin": "\\[",
|
|
2151
|
+
"beginCaptures": {
|
|
2152
|
+
"0": {
|
|
2153
|
+
"name": "punctuation.section.array.begin.php"
|
|
2154
|
+
}
|
|
2155
|
+
},
|
|
2156
|
+
"end": "\\]|(?=\\?>)",
|
|
2157
|
+
"endCaptures": {
|
|
2158
|
+
"0": {
|
|
2159
|
+
"name": "punctuation.section.array.end.php"
|
|
2160
|
+
}
|
|
2161
|
+
},
|
|
2162
|
+
"patterns": [
|
|
2163
|
+
{
|
|
2164
|
+
"include": "#language"
|
|
2165
|
+
}
|
|
2166
|
+
]
|
|
2167
|
+
},
|
|
2168
|
+
{
|
|
2169
|
+
"begin": "\\(",
|
|
2170
|
+
"beginCaptures": {
|
|
2171
|
+
"0": {
|
|
2172
|
+
"name": "punctuation.definition.begin.bracket.round.php"
|
|
2173
|
+
}
|
|
2174
|
+
},
|
|
2175
|
+
"end": "\\)|(?=\\?>)",
|
|
2176
|
+
"endCaptures": {
|
|
2177
|
+
"0": {
|
|
2178
|
+
"name": "punctuation.definition.end.bracket.round.php"
|
|
2179
|
+
}
|
|
2180
|
+
},
|
|
2181
|
+
"patterns": [
|
|
2182
|
+
{
|
|
2183
|
+
"include": "#language"
|
|
2184
|
+
}
|
|
2185
|
+
]
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
"include": "#constants"
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"match": ",",
|
|
2192
|
+
"name": "punctuation.separator.delimiter.php"
|
|
2193
|
+
}
|
|
2194
|
+
]
|
|
2195
|
+
},
|
|
2196
|
+
"namespace": {
|
|
2197
|
+
"begin": "(?i)(?:(namespace)|[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?(\\\\)(?=.*?[^a-z0-9_\\x{7f}-\\x{ff}\\\\])",
|
|
2198
|
+
"beginCaptures": {
|
|
2199
|
+
"1": {
|
|
2200
|
+
"name": "variable.language.namespace.php"
|
|
2201
|
+
},
|
|
2202
|
+
"2": {
|
|
2203
|
+
"name": "punctuation.separator.inheritance.php"
|
|
2204
|
+
}
|
|
2205
|
+
},
|
|
2206
|
+
"end": "(?i)(?=[a-z0-9_\\x{7f}-\\x{ff}]*[^a-z0-9_\\x{7f}-\\x{ff}\\\\])",
|
|
2207
|
+
"name": "support.other.namespace.php",
|
|
2208
|
+
"patterns": [
|
|
2209
|
+
{
|
|
2210
|
+
"match": "\\\\",
|
|
2211
|
+
"name": "punctuation.separator.inheritance.php"
|
|
2212
|
+
}
|
|
2213
|
+
]
|
|
2214
|
+
},
|
|
2215
|
+
"nowdoc_interior": {
|
|
2216
|
+
"patterns": [
|
|
2217
|
+
{
|
|
2218
|
+
"begin": "(<<<)\\s*'(HTML)'(\\s*)$",
|
|
2219
|
+
"beginCaptures": {
|
|
2220
|
+
"0": {
|
|
2221
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
2222
|
+
},
|
|
2223
|
+
"1": {
|
|
2224
|
+
"name": "punctuation.definition.string.php"
|
|
2225
|
+
},
|
|
2226
|
+
"2": {
|
|
2227
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2228
|
+
},
|
|
2229
|
+
"3": {
|
|
2230
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
2231
|
+
}
|
|
2232
|
+
},
|
|
2233
|
+
"contentName": "text.html",
|
|
2234
|
+
"end": "^(\\2)\\b",
|
|
2235
|
+
"endCaptures": {
|
|
2236
|
+
"0": {
|
|
2237
|
+
"name": "punctuation.section.embedded.end.php"
|
|
2238
|
+
},
|
|
2239
|
+
"1": {
|
|
2240
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2241
|
+
}
|
|
2242
|
+
},
|
|
2243
|
+
"name": "meta.embedded.html",
|
|
2244
|
+
"patterns": [
|
|
2245
|
+
{
|
|
2246
|
+
"include": "text.html.basic"
|
|
2247
|
+
}
|
|
2248
|
+
]
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
"begin": "(<<<)\\s*'(XML)'(\\s*)$",
|
|
2252
|
+
"beginCaptures": {
|
|
2253
|
+
"0": {
|
|
2254
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
2255
|
+
},
|
|
2256
|
+
"1": {
|
|
2257
|
+
"name": "punctuation.definition.string.php"
|
|
2258
|
+
},
|
|
2259
|
+
"2": {
|
|
2260
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2261
|
+
},
|
|
2262
|
+
"3": {
|
|
2263
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
2264
|
+
}
|
|
2265
|
+
},
|
|
2266
|
+
"contentName": "text.xml",
|
|
2267
|
+
"end": "^(\\2)\\b",
|
|
2268
|
+
"endCaptures": {
|
|
2269
|
+
"0": {
|
|
2270
|
+
"name": "punctuation.section.embedded.end.php"
|
|
2271
|
+
},
|
|
2272
|
+
"1": {
|
|
2273
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2274
|
+
}
|
|
2275
|
+
},
|
|
2276
|
+
"name": "meta.embedded.xml",
|
|
2277
|
+
"patterns": [
|
|
2278
|
+
{
|
|
2279
|
+
"include": "text.xml"
|
|
2280
|
+
}
|
|
2281
|
+
]
|
|
2282
|
+
},
|
|
2283
|
+
{
|
|
2284
|
+
"begin": "(<<<)\\s*'(SQL)'(\\s*)$",
|
|
2285
|
+
"beginCaptures": {
|
|
2286
|
+
"0": {
|
|
2287
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
2288
|
+
},
|
|
2289
|
+
"1": {
|
|
2290
|
+
"name": "punctuation.definition.string.php"
|
|
2291
|
+
},
|
|
2292
|
+
"2": {
|
|
2293
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2294
|
+
},
|
|
2295
|
+
"3": {
|
|
2296
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
2297
|
+
}
|
|
2298
|
+
},
|
|
2299
|
+
"contentName": "source.sql",
|
|
2300
|
+
"end": "^(\\2)\\b",
|
|
2301
|
+
"endCaptures": {
|
|
2302
|
+
"0": {
|
|
2303
|
+
"name": "punctuation.section.embedded.end.php"
|
|
2304
|
+
},
|
|
2305
|
+
"1": {
|
|
2306
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2307
|
+
}
|
|
2308
|
+
},
|
|
2309
|
+
"name": "meta.embedded.sql",
|
|
2310
|
+
"patterns": [
|
|
2311
|
+
{
|
|
2312
|
+
"include": "source.sql"
|
|
2313
|
+
}
|
|
2314
|
+
]
|
|
2315
|
+
},
|
|
2316
|
+
{
|
|
2317
|
+
"begin": "(<<<)\\s*'(JAVASCRIPT|JS)'(\\s*)$",
|
|
2318
|
+
"beginCaptures": {
|
|
2319
|
+
"0": {
|
|
2320
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
2321
|
+
},
|
|
2322
|
+
"1": {
|
|
2323
|
+
"name": "punctuation.definition.string.php"
|
|
2324
|
+
},
|
|
2325
|
+
"2": {
|
|
2326
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2327
|
+
},
|
|
2328
|
+
"3": {
|
|
2329
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
2330
|
+
}
|
|
2331
|
+
},
|
|
2332
|
+
"contentName": "source.js",
|
|
2333
|
+
"end": "^(\\2)\\b",
|
|
2334
|
+
"endCaptures": {
|
|
2335
|
+
"0": {
|
|
2336
|
+
"name": "punctuation.section.embedded.end.php"
|
|
2337
|
+
},
|
|
2338
|
+
"1": {
|
|
2339
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2340
|
+
}
|
|
2341
|
+
},
|
|
2342
|
+
"name": "meta.embedded.js",
|
|
2343
|
+
"patterns": [
|
|
2344
|
+
{
|
|
2345
|
+
"include": "source.js"
|
|
2346
|
+
}
|
|
2347
|
+
]
|
|
2348
|
+
},
|
|
2349
|
+
{
|
|
2350
|
+
"begin": "(<<<)\\s*'(JSON)'(\\s*)$",
|
|
2351
|
+
"beginCaptures": {
|
|
2352
|
+
"0": {
|
|
2353
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
2354
|
+
},
|
|
2355
|
+
"1": {
|
|
2356
|
+
"name": "punctuation.definition.string.php"
|
|
2357
|
+
},
|
|
2358
|
+
"2": {
|
|
2359
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2360
|
+
},
|
|
2361
|
+
"3": {
|
|
2362
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
2363
|
+
}
|
|
2364
|
+
},
|
|
2365
|
+
"contentName": "source.json",
|
|
2366
|
+
"end": "^(\\2)\\b",
|
|
2367
|
+
"endCaptures": {
|
|
2368
|
+
"0": {
|
|
2369
|
+
"name": "punctuation.section.embedded.end.php"
|
|
2370
|
+
},
|
|
2371
|
+
"1": {
|
|
2372
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
"name": "meta.embedded.json",
|
|
2376
|
+
"patterns": [
|
|
2377
|
+
{
|
|
2378
|
+
"include": "source.json"
|
|
2379
|
+
}
|
|
2380
|
+
]
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
"begin": "(<<<)\\s*'(CSS)'(\\s*)$",
|
|
2384
|
+
"beginCaptures": {
|
|
2385
|
+
"0": {
|
|
2386
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
2387
|
+
},
|
|
2388
|
+
"1": {
|
|
2389
|
+
"name": "punctuation.definition.string.php"
|
|
2390
|
+
},
|
|
2391
|
+
"2": {
|
|
2392
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2393
|
+
},
|
|
2394
|
+
"3": {
|
|
2395
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
2396
|
+
}
|
|
2397
|
+
},
|
|
2398
|
+
"contentName": "source.css",
|
|
2399
|
+
"end": "^(\\2)\\b",
|
|
2400
|
+
"endCaptures": {
|
|
2401
|
+
"0": {
|
|
2402
|
+
"name": "punctuation.section.embedded.end.php"
|
|
2403
|
+
},
|
|
2404
|
+
"1": {
|
|
2405
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2406
|
+
}
|
|
2407
|
+
},
|
|
2408
|
+
"name": "meta.embedded.css",
|
|
2409
|
+
"patterns": [
|
|
2410
|
+
{
|
|
2411
|
+
"include": "source.css"
|
|
2412
|
+
}
|
|
2413
|
+
]
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
"begin": "(<<<)\\s*'(REGEXP?)'(\\s*)$",
|
|
2417
|
+
"beginCaptures": {
|
|
2418
|
+
"0": {
|
|
2419
|
+
"name": "punctuation.section.embedded.begin.php"
|
|
2420
|
+
},
|
|
2421
|
+
"1": {
|
|
2422
|
+
"name": "punctuation.definition.string.php"
|
|
2423
|
+
},
|
|
2424
|
+
"2": {
|
|
2425
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2426
|
+
},
|
|
2427
|
+
"3": {
|
|
2428
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
2429
|
+
}
|
|
2430
|
+
},
|
|
2431
|
+
"contentName": "string.regexp.nowdoc.php",
|
|
2432
|
+
"end": "^(\\2)\\b",
|
|
2433
|
+
"endCaptures": {
|
|
2434
|
+
"0": {
|
|
2435
|
+
"name": "punctuation.section.embedded.end.php"
|
|
2436
|
+
},
|
|
2437
|
+
"1": {
|
|
2438
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2439
|
+
}
|
|
2440
|
+
},
|
|
2441
|
+
"patterns": [
|
|
2442
|
+
{
|
|
2443
|
+
"match": "(\\\\){1,2}[.$^\\[\\]{}]",
|
|
2444
|
+
"name": "constant.character.escape.regex.php"
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
"captures": {
|
|
2448
|
+
"1": {
|
|
2449
|
+
"name": "punctuation.definition.arbitrary-repitition.php"
|
|
2450
|
+
},
|
|
2451
|
+
"3": {
|
|
2452
|
+
"name": "punctuation.definition.arbitrary-repitition.php"
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2455
|
+
"match": "({)\\d+(,\\d+)?(})",
|
|
2456
|
+
"name": "string.regexp.arbitrary-repitition.php"
|
|
2457
|
+
},
|
|
2458
|
+
{
|
|
2459
|
+
"begin": "\\[(?:\\^?\\])?",
|
|
2460
|
+
"captures": {
|
|
2461
|
+
"0": {
|
|
2462
|
+
"name": "punctuation.definition.character-class.php"
|
|
2463
|
+
}
|
|
2464
|
+
},
|
|
2465
|
+
"end": "\\]",
|
|
2466
|
+
"name": "string.regexp.character-class.php",
|
|
2467
|
+
"patterns": [
|
|
2468
|
+
{
|
|
2469
|
+
"match": "\\\\[\\\\'\\[\\]]",
|
|
2470
|
+
"name": "constant.character.escape.php"
|
|
2471
|
+
}
|
|
2472
|
+
]
|
|
2473
|
+
},
|
|
2474
|
+
{
|
|
2475
|
+
"match": "[$^+*]",
|
|
2476
|
+
"name": "keyword.operator.regexp.php"
|
|
2477
|
+
},
|
|
2478
|
+
{
|
|
2479
|
+
"begin": "(?i)(?<=^|\\s)(#)\\s(?=[[a-z0-9_\\x{7f}-\\x{ff},. \\t?!-][^\\x{00}-\\x{7f}]]*$)",
|
|
2480
|
+
"beginCaptures": {
|
|
2481
|
+
"1": {
|
|
2482
|
+
"name": "punctuation.definition.comment.php"
|
|
2483
|
+
}
|
|
2484
|
+
},
|
|
2485
|
+
"end": "$",
|
|
2486
|
+
"endCaptures": {
|
|
2487
|
+
"0": {
|
|
2488
|
+
"name": "punctuation.definition.comment.php"
|
|
2489
|
+
}
|
|
2490
|
+
},
|
|
2491
|
+
"name": "comment.line.number-sign.php"
|
|
2492
|
+
}
|
|
2493
|
+
]
|
|
2494
|
+
},
|
|
2495
|
+
{
|
|
2496
|
+
"begin": "(?i)(<<<)\\s*'([a-z_\\x{7f}-\\x{ff}]+[a-z0-9_\\x{7f}-\\x{ff}]*)'(\\s*)",
|
|
2497
|
+
"beginCaptures": {
|
|
2498
|
+
"1": {
|
|
2499
|
+
"name": "punctuation.definition.string.php"
|
|
2500
|
+
},
|
|
2501
|
+
"2": {
|
|
2502
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2503
|
+
},
|
|
2504
|
+
"3": {
|
|
2505
|
+
"name": "invalid.illegal.trailing-whitespace.php"
|
|
2506
|
+
}
|
|
2507
|
+
},
|
|
2508
|
+
"end": "^(\\2)\\b",
|
|
2509
|
+
"endCaptures": {
|
|
2510
|
+
"1": {
|
|
2511
|
+
"name": "keyword.operator.nowdoc.php"
|
|
2512
|
+
}
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
]
|
|
2516
|
+
},
|
|
2517
|
+
"numbers": {
|
|
2518
|
+
"patterns": [
|
|
2519
|
+
{
|
|
2520
|
+
"match": "0[xX][0-9a-fA-F]+",
|
|
2521
|
+
"name": "constant.numeric.hex.php"
|
|
2522
|
+
},
|
|
2523
|
+
{
|
|
2524
|
+
"match": "0[bB][01]+",
|
|
2525
|
+
"name": "constant.numeric.binary.php"
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
"match": "0[0-7]+",
|
|
2529
|
+
"name": "constant.numeric.octal.php"
|
|
2530
|
+
},
|
|
2531
|
+
{
|
|
2532
|
+
"captures": {
|
|
2533
|
+
"1": {
|
|
2534
|
+
"name": "punctuation.separator.decimal.period.php"
|
|
2535
|
+
},
|
|
2536
|
+
"2": {
|
|
2537
|
+
"name": "punctuation.separator.decimal.period.php"
|
|
2538
|
+
}
|
|
2539
|
+
},
|
|
2540
|
+
"match": "(?x)\n(?:\n [0-9]*(\\.)[0-9]+(?:[eE][+-]?[0-9]+)?|\n [0-9]+(\\.)[0-9]*(?:[eE][+-]?[0-9]+)?|\n [0-9]+[eE][+-]?[0-9]+\n)",
|
|
2541
|
+
"name": "constant.numeric.decimal.php"
|
|
2542
|
+
},
|
|
2543
|
+
{
|
|
2544
|
+
"match": "0|[1-9][0-9]*",
|
|
2545
|
+
"name": "constant.numeric.decimal.php"
|
|
2546
|
+
}
|
|
2547
|
+
]
|
|
2548
|
+
},
|
|
2549
|
+
"object": {
|
|
2550
|
+
"patterns": [
|
|
2551
|
+
{
|
|
2552
|
+
"begin": "(->)(\\$?{)",
|
|
2553
|
+
"beginCaptures": {
|
|
2554
|
+
"1": {
|
|
2555
|
+
"name": "keyword.operator.class.php"
|
|
2556
|
+
},
|
|
2557
|
+
"2": {
|
|
2558
|
+
"name": "punctuation.definition.variable.php"
|
|
2559
|
+
}
|
|
2560
|
+
},
|
|
2561
|
+
"end": "}",
|
|
2562
|
+
"endCaptures": {
|
|
2563
|
+
"0": {
|
|
2564
|
+
"name": "punctuation.definition.variable.php"
|
|
2565
|
+
}
|
|
2566
|
+
},
|
|
2567
|
+
"patterns": [
|
|
2568
|
+
{
|
|
2569
|
+
"include": "#language"
|
|
2570
|
+
}
|
|
2571
|
+
]
|
|
2572
|
+
},
|
|
2573
|
+
{
|
|
2574
|
+
"begin": "(?i)(->)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\s*(\\()",
|
|
2575
|
+
"beginCaptures": {
|
|
2576
|
+
"1": {
|
|
2577
|
+
"name": "keyword.operator.class.php"
|
|
2578
|
+
},
|
|
2579
|
+
"2": {
|
|
2580
|
+
"name": "entity.name.function.php"
|
|
2581
|
+
},
|
|
2582
|
+
"3": {
|
|
2583
|
+
"name": "punctuation.definition.arguments.begin.bracket.round.php"
|
|
2584
|
+
}
|
|
2585
|
+
},
|
|
2586
|
+
"end": "\\)|(?=\\?>)",
|
|
2587
|
+
"endCaptures": {
|
|
2588
|
+
"0": {
|
|
2589
|
+
"name": "punctuation.definition.arguments.end.bracket.round.php"
|
|
2590
|
+
}
|
|
2591
|
+
},
|
|
2592
|
+
"name": "meta.method-call.php",
|
|
2593
|
+
"patterns": [
|
|
2594
|
+
{
|
|
2595
|
+
"include": "#language"
|
|
2596
|
+
}
|
|
2597
|
+
]
|
|
2598
|
+
},
|
|
2599
|
+
{
|
|
2600
|
+
"captures": {
|
|
2601
|
+
"1": {
|
|
2602
|
+
"name": "keyword.operator.class.php"
|
|
2603
|
+
},
|
|
2604
|
+
"2": {
|
|
2605
|
+
"name": "variable.other.property.php"
|
|
2606
|
+
},
|
|
2607
|
+
"3": {
|
|
2608
|
+
"name": "punctuation.definition.variable.php"
|
|
2609
|
+
}
|
|
2610
|
+
},
|
|
2611
|
+
"match": "(?i)(->)((\\$+)?[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?"
|
|
2612
|
+
}
|
|
2613
|
+
]
|
|
2614
|
+
},
|
|
2615
|
+
"parameter-default-types": {
|
|
2616
|
+
"patterns": [
|
|
2617
|
+
{
|
|
2618
|
+
"include": "#strings"
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
"include": "#numbers"
|
|
2622
|
+
},
|
|
2623
|
+
{
|
|
2624
|
+
"include": "#string-backtick"
|
|
2625
|
+
},
|
|
2626
|
+
{
|
|
2627
|
+
"include": "#variables"
|
|
2628
|
+
},
|
|
2629
|
+
{
|
|
2630
|
+
"match": "=>",
|
|
2631
|
+
"name": "keyword.operator.key.php"
|
|
2632
|
+
},
|
|
2633
|
+
{
|
|
2634
|
+
"match": "=",
|
|
2635
|
+
"name": "keyword.operator.assignment.php"
|
|
2636
|
+
},
|
|
2637
|
+
{
|
|
2638
|
+
"match": "&(?=\\s*\\$)",
|
|
2639
|
+
"name": "storage.modifier.reference.php"
|
|
2640
|
+
},
|
|
2641
|
+
{
|
|
2642
|
+
"begin": "(array)\\s*(\\()",
|
|
2643
|
+
"beginCaptures": {
|
|
2644
|
+
"1": {
|
|
2645
|
+
"name": "support.function.construct.php"
|
|
2646
|
+
},
|
|
2647
|
+
"2": {
|
|
2648
|
+
"name": "punctuation.definition.array.begin.bracket.round.php"
|
|
2649
|
+
}
|
|
2650
|
+
},
|
|
2651
|
+
"end": "\\)",
|
|
2652
|
+
"endCaptures": {
|
|
2653
|
+
"0": {
|
|
2654
|
+
"name": "punctuation.definition.array.end.bracket.round.php"
|
|
2655
|
+
}
|
|
2656
|
+
},
|
|
2657
|
+
"name": "meta.array.php",
|
|
2658
|
+
"patterns": [
|
|
2659
|
+
{
|
|
2660
|
+
"include": "#parameter-default-types"
|
|
2661
|
+
}
|
|
2662
|
+
]
|
|
2663
|
+
},
|
|
2664
|
+
{
|
|
2665
|
+
"include": "#instantiation"
|
|
2666
|
+
},
|
|
2667
|
+
{
|
|
2668
|
+
"begin": "(?xi)\n(?=[a-z0-9_\\x{7f}-\\x{ff}\\\\]+(::)\n ([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?\n)",
|
|
2669
|
+
"end": "(?i)(::)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?",
|
|
2670
|
+
"endCaptures": {
|
|
2671
|
+
"1": {
|
|
2672
|
+
"name": "keyword.operator.class.php"
|
|
2673
|
+
},
|
|
2674
|
+
"2": {
|
|
2675
|
+
"name": "constant.other.class.php"
|
|
2676
|
+
}
|
|
2677
|
+
},
|
|
2678
|
+
"patterns": [
|
|
2679
|
+
{
|
|
2680
|
+
"include": "#class-name"
|
|
2681
|
+
}
|
|
2682
|
+
]
|
|
2683
|
+
},
|
|
2684
|
+
{
|
|
2685
|
+
"include": "#constants"
|
|
2686
|
+
}
|
|
2687
|
+
]
|
|
2688
|
+
},
|
|
2689
|
+
"php_doc": {
|
|
2690
|
+
"patterns": [
|
|
2691
|
+
{
|
|
2692
|
+
"match": "^(?!\\s*\\*).*?(?:(?=\\*\\/)|$\\n?)",
|
|
2693
|
+
"name": "invalid.illegal.missing-asterisk.phpdoc.php"
|
|
2694
|
+
},
|
|
2695
|
+
{
|
|
2696
|
+
"captures": {
|
|
2697
|
+
"1": {
|
|
2698
|
+
"name": "keyword.other.phpdoc.php"
|
|
2699
|
+
},
|
|
2700
|
+
"3": {
|
|
2701
|
+
"name": "storage.modifier.php"
|
|
2702
|
+
},
|
|
2703
|
+
"4": {
|
|
2704
|
+
"name": "invalid.illegal.wrong-access-type.phpdoc.php"
|
|
2705
|
+
}
|
|
2706
|
+
},
|
|
2707
|
+
"match": "^\\s*\\*\\s*(@access)\\s+((public|private|protected)|(.+))\\s*$"
|
|
2708
|
+
},
|
|
2709
|
+
{
|
|
2710
|
+
"captures": {
|
|
2711
|
+
"1": {
|
|
2712
|
+
"name": "keyword.other.phpdoc.php"
|
|
2713
|
+
},
|
|
2714
|
+
"2": {
|
|
2715
|
+
"name": "markup.underline.link.php"
|
|
2716
|
+
}
|
|
2717
|
+
},
|
|
2718
|
+
"match": "(@xlink)\\s+(.+)\\s*$"
|
|
2719
|
+
},
|
|
2720
|
+
{
|
|
2721
|
+
"begin": "(@(?:global|param|property(-(read|write))?|return|throws|var))\\s+(?=[A-Za-z_\\x{7f}-\\x{ff}\\\\]|\\()",
|
|
2722
|
+
"beginCaptures": {
|
|
2723
|
+
"1": {
|
|
2724
|
+
"name": "keyword.other.phpdoc.php"
|
|
2725
|
+
}
|
|
2726
|
+
},
|
|
2727
|
+
"contentName": "meta.other.type.phpdoc.php",
|
|
2728
|
+
"end": "(?=\\s|\\*/)",
|
|
2729
|
+
"patterns": [
|
|
2730
|
+
{
|
|
2731
|
+
"include": "#php_doc_types_array_multiple"
|
|
2732
|
+
},
|
|
2733
|
+
{
|
|
2734
|
+
"include": "#php_doc_types_array_single"
|
|
2735
|
+
},
|
|
2736
|
+
{
|
|
2737
|
+
"include": "#php_doc_types"
|
|
2738
|
+
}
|
|
2739
|
+
]
|
|
2740
|
+
},
|
|
2741
|
+
{
|
|
2742
|
+
"match": "(?x)\n@\n(\n api|abstract|author|category|copyright|example|global|inherit[Dd]oc|internal|\n license|link|method|property(-(read|write))?|package|param|return|see|since|source|\n static|subpackage|throws|todo|var|version|uses|deprecated|final|ignore\n)\\b",
|
|
2743
|
+
"name": "keyword.other.phpdoc.php"
|
|
2744
|
+
},
|
|
2745
|
+
{
|
|
2746
|
+
"captures": {
|
|
2747
|
+
"1": {
|
|
2748
|
+
"name": "keyword.other.phpdoc.php"
|
|
2749
|
+
}
|
|
2750
|
+
},
|
|
2751
|
+
"match": "{(@(link|inherit[Dd]oc)).+?}",
|
|
2752
|
+
"name": "meta.tag.inline.phpdoc.php"
|
|
2753
|
+
}
|
|
2754
|
+
]
|
|
2755
|
+
},
|
|
2756
|
+
"php_doc_types": {
|
|
2757
|
+
"captures": {
|
|
2758
|
+
"0": {
|
|
2759
|
+
"patterns": [
|
|
2760
|
+
{
|
|
2761
|
+
"match": "(?x)\\b\n(string|integer|int|boolean|bool|float|double|object|mixed\n|array|resource|void|null|callback|false|true|self)\\b",
|
|
2762
|
+
"name": "keyword.other.type.php"
|
|
2763
|
+
},
|
|
2764
|
+
{
|
|
2765
|
+
"include": "#class-name"
|
|
2766
|
+
},
|
|
2767
|
+
{
|
|
2768
|
+
"match": "\\|",
|
|
2769
|
+
"name": "punctuation.separator.delimiter.php"
|
|
2770
|
+
}
|
|
2771
|
+
]
|
|
2772
|
+
}
|
|
2773
|
+
},
|
|
2774
|
+
"match": "(?i)[a-z_\\x{7f}-\\x{ff}\\\\][a-z0-9_\\x{7f}-\\x{ff}\\\\]*(\\|[a-z_\\x{7f}-\\x{ff}\\\\][a-z0-9_\\x{7f}-\\x{ff}\\\\]*)*"
|
|
2775
|
+
},
|
|
2776
|
+
"php_doc_types_array_multiple": {
|
|
2777
|
+
"begin": "\\(",
|
|
2778
|
+
"beginCaptures": {
|
|
2779
|
+
"0": {
|
|
2780
|
+
"name": "punctuation.definition.type.begin.bracket.round.phpdoc.php"
|
|
2781
|
+
}
|
|
2782
|
+
},
|
|
2783
|
+
"end": "(\\))(\\[\\])|(?=\\*/)",
|
|
2784
|
+
"endCaptures": {
|
|
2785
|
+
"1": {
|
|
2786
|
+
"name": "punctuation.definition.type.end.bracket.round.phpdoc.php"
|
|
2787
|
+
},
|
|
2788
|
+
"2": {
|
|
2789
|
+
"name": "keyword.other.array.phpdoc.php"
|
|
2790
|
+
}
|
|
2791
|
+
},
|
|
2792
|
+
"patterns": [
|
|
2793
|
+
{
|
|
2794
|
+
"include": "#php_doc_types_array_multiple"
|
|
2795
|
+
},
|
|
2796
|
+
{
|
|
2797
|
+
"include": "#php_doc_types_array_single"
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
"include": "#php_doc_types"
|
|
2801
|
+
},
|
|
2802
|
+
{
|
|
2803
|
+
"match": "\\|",
|
|
2804
|
+
"name": "punctuation.separator.delimiter.php"
|
|
2805
|
+
}
|
|
2806
|
+
]
|
|
2807
|
+
},
|
|
2808
|
+
"php_doc_types_array_single": {
|
|
2809
|
+
"captures": {
|
|
2810
|
+
"1": {
|
|
2811
|
+
"patterns": [
|
|
2812
|
+
{
|
|
2813
|
+
"include": "#php_doc_types"
|
|
2814
|
+
}
|
|
2815
|
+
]
|
|
2816
|
+
},
|
|
2817
|
+
"2": {
|
|
2818
|
+
"name": "keyword.other.array.phpdoc.php"
|
|
2819
|
+
}
|
|
2820
|
+
},
|
|
2821
|
+
"match": "(?i)([a-z_\\x{7f}-\\x{ff}\\\\][a-z0-9_\\x{7f}-\\x{ff}\\\\]*)(\\[\\])"
|
|
2822
|
+
},
|
|
2823
|
+
"regex-double-quoted": {
|
|
2824
|
+
"begin": "\"/(?=(\\\\.|[^\"/])++/[imsxeADSUXu]*\")",
|
|
2825
|
+
"beginCaptures": {
|
|
2826
|
+
"0": {
|
|
2827
|
+
"name": "punctuation.definition.string.begin.php"
|
|
2828
|
+
}
|
|
2829
|
+
},
|
|
2830
|
+
"end": "(/)([imsxeADSUXu]*)(\")",
|
|
2831
|
+
"endCaptures": {
|
|
2832
|
+
"0": {
|
|
2833
|
+
"name": "punctuation.definition.string.end.php"
|
|
2834
|
+
}
|
|
2835
|
+
},
|
|
2836
|
+
"name": "string.regexp.double-quoted.php",
|
|
2837
|
+
"patterns": [
|
|
2838
|
+
{
|
|
2839
|
+
"match": "(\\\\){1,2}[.$^\\[\\]{}]",
|
|
2840
|
+
"name": "constant.character.escape.regex.php"
|
|
2841
|
+
},
|
|
2842
|
+
{
|
|
2843
|
+
"include": "#interpolation"
|
|
2844
|
+
},
|
|
2845
|
+
{
|
|
2846
|
+
"captures": {
|
|
2847
|
+
"1": {
|
|
2848
|
+
"name": "punctuation.definition.arbitrary-repetition.php"
|
|
2849
|
+
},
|
|
2850
|
+
"3": {
|
|
2851
|
+
"name": "punctuation.definition.arbitrary-repetition.php"
|
|
2852
|
+
}
|
|
2853
|
+
},
|
|
2854
|
+
"match": "({)\\d+(,\\d+)?(})",
|
|
2855
|
+
"name": "string.regexp.arbitrary-repetition.php"
|
|
2856
|
+
},
|
|
2857
|
+
{
|
|
2858
|
+
"begin": "\\[(?:\\^?\\])?",
|
|
2859
|
+
"captures": {
|
|
2860
|
+
"0": {
|
|
2861
|
+
"name": "punctuation.definition.character-class.php"
|
|
2862
|
+
}
|
|
2863
|
+
},
|
|
2864
|
+
"end": "\\]",
|
|
2865
|
+
"name": "string.regexp.character-class.php",
|
|
2866
|
+
"patterns": [
|
|
2867
|
+
{
|
|
2868
|
+
"include": "#interpolation"
|
|
2869
|
+
}
|
|
2870
|
+
]
|
|
2871
|
+
},
|
|
2872
|
+
{
|
|
2873
|
+
"match": "[$^+*]",
|
|
2874
|
+
"name": "keyword.operator.regexp.php"
|
|
2875
|
+
}
|
|
2876
|
+
]
|
|
2877
|
+
},
|
|
2878
|
+
"regex-single-quoted": {
|
|
2879
|
+
"begin": "'/(?=(\\\\(?:\\\\(?:\\\\[\\\\']?|[^'])|.)|[^'/])++/[imsxeADSUXu]*')",
|
|
2880
|
+
"beginCaptures": {
|
|
2881
|
+
"0": {
|
|
2882
|
+
"name": "punctuation.definition.string.begin.php"
|
|
2883
|
+
}
|
|
2884
|
+
},
|
|
2885
|
+
"end": "(/)([imsxeADSUXu]*)(')",
|
|
2886
|
+
"endCaptures": {
|
|
2887
|
+
"0": {
|
|
2888
|
+
"name": "punctuation.definition.string.end.php"
|
|
2889
|
+
}
|
|
2890
|
+
},
|
|
2891
|
+
"name": "string.regexp.single-quoted.php",
|
|
2892
|
+
"patterns": [
|
|
2893
|
+
{
|
|
2894
|
+
"include": "#single_quote_regex_escape"
|
|
2895
|
+
},
|
|
2896
|
+
{
|
|
2897
|
+
"captures": {
|
|
2898
|
+
"1": {
|
|
2899
|
+
"name": "punctuation.definition.arbitrary-repetition.php"
|
|
2900
|
+
},
|
|
2901
|
+
"3": {
|
|
2902
|
+
"name": "punctuation.definition.arbitrary-repetition.php"
|
|
2903
|
+
}
|
|
2904
|
+
},
|
|
2905
|
+
"match": "({)\\d+(,\\d+)?(})",
|
|
2906
|
+
"name": "string.regexp.arbitrary-repetition.php"
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
"begin": "\\[(?:\\^?\\])?",
|
|
2910
|
+
"captures": {
|
|
2911
|
+
"0": {
|
|
2912
|
+
"name": "punctuation.definition.character-class.php"
|
|
2913
|
+
}
|
|
2914
|
+
},
|
|
2915
|
+
"end": "\\]",
|
|
2916
|
+
"name": "string.regexp.character-class.php"
|
|
2917
|
+
},
|
|
2918
|
+
{
|
|
2919
|
+
"match": "[$^+*]",
|
|
2920
|
+
"name": "keyword.operator.regexp.php"
|
|
2921
|
+
}
|
|
2922
|
+
]
|
|
2923
|
+
},
|
|
2924
|
+
"scope-resolution": {
|
|
2925
|
+
"patterns": [
|
|
2926
|
+
{
|
|
2927
|
+
"captures": {
|
|
2928
|
+
"1": {
|
|
2929
|
+
"patterns": [
|
|
2930
|
+
{
|
|
2931
|
+
"match": "\\b(self|static|parent)\\b",
|
|
2932
|
+
"name": "storage.type.php"
|
|
2933
|
+
},
|
|
2934
|
+
{
|
|
2935
|
+
"match": "\\w+",
|
|
2936
|
+
"name": "entity.name.class.php"
|
|
2937
|
+
},
|
|
2938
|
+
{
|
|
2939
|
+
"include": "#class-name"
|
|
2940
|
+
},
|
|
2941
|
+
{
|
|
2942
|
+
"include": "#variable-name"
|
|
2943
|
+
}
|
|
2944
|
+
]
|
|
2945
|
+
}
|
|
2946
|
+
},
|
|
2947
|
+
"match": "(?i)\\b([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)(?=\\s*::)"
|
|
2948
|
+
},
|
|
2949
|
+
{
|
|
2950
|
+
"begin": "(?i)(::)\\s*([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\s*(\\()",
|
|
2951
|
+
"beginCaptures": {
|
|
2952
|
+
"1": {
|
|
2953
|
+
"name": "keyword.operator.class.php"
|
|
2954
|
+
},
|
|
2955
|
+
"2": {
|
|
2956
|
+
"name": "entity.name.function.php"
|
|
2957
|
+
},
|
|
2958
|
+
"3": {
|
|
2959
|
+
"name": "punctuation.definition.arguments.begin.bracket.round.php"
|
|
2960
|
+
}
|
|
2961
|
+
},
|
|
2962
|
+
"end": "\\)|(?=\\?>)",
|
|
2963
|
+
"endCaptures": {
|
|
2964
|
+
"0": {
|
|
2965
|
+
"name": "punctuation.definition.arguments.end.bracket.round.php"
|
|
2966
|
+
}
|
|
2967
|
+
},
|
|
2968
|
+
"name": "meta.method-call.static.php",
|
|
2969
|
+
"patterns": [
|
|
2970
|
+
{
|
|
2971
|
+
"include": "#language"
|
|
2972
|
+
}
|
|
2973
|
+
]
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
"captures": {
|
|
2977
|
+
"1": {
|
|
2978
|
+
"name": "keyword.operator.class.php"
|
|
2979
|
+
},
|
|
2980
|
+
"2": {
|
|
2981
|
+
"name": "keyword.other.class.php"
|
|
2982
|
+
}
|
|
2983
|
+
},
|
|
2984
|
+
"match": "(?i)(::)\\s*(class)\\b"
|
|
2985
|
+
},
|
|
2986
|
+
{
|
|
2987
|
+
"captures": {
|
|
2988
|
+
"1": {
|
|
2989
|
+
"name": "keyword.operator.class.php"
|
|
2990
|
+
},
|
|
2991
|
+
"2": {
|
|
2992
|
+
"name": "variable.other.class.php"
|
|
2993
|
+
},
|
|
2994
|
+
"3": {
|
|
2995
|
+
"name": "punctuation.definition.variable.php"
|
|
2996
|
+
},
|
|
2997
|
+
"4": {
|
|
2998
|
+
"name": "constant.other.class.php"
|
|
2999
|
+
}
|
|
3000
|
+
},
|
|
3001
|
+
"match": "(?xi)\n(::)\\s*\n(?:\n ((\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Variable\n |\n ([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Constant\n)?"
|
|
3002
|
+
}
|
|
3003
|
+
]
|
|
3004
|
+
},
|
|
3005
|
+
"single_quote_regex_escape": {
|
|
3006
|
+
"match": "\\\\(?:\\\\(?:\\\\[\\\\']?|[^'])|.)",
|
|
3007
|
+
"name": "constant.character.escape.php"
|
|
3008
|
+
},
|
|
3009
|
+
"sql-string-double-quoted": {
|
|
3010
|
+
"begin": "\"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND)\\b)",
|
|
3011
|
+
"beginCaptures": {
|
|
3012
|
+
"0": {
|
|
3013
|
+
"name": "punctuation.definition.string.begin.php"
|
|
3014
|
+
}
|
|
3015
|
+
},
|
|
3016
|
+
"contentName": "source.sql.embedded.php",
|
|
3017
|
+
"end": "\"",
|
|
3018
|
+
"endCaptures": {
|
|
3019
|
+
"0": {
|
|
3020
|
+
"name": "punctuation.definition.string.end.php"
|
|
3021
|
+
}
|
|
3022
|
+
},
|
|
3023
|
+
"name": "string.quoted.double.sql.php",
|
|
3024
|
+
"patterns": [
|
|
3025
|
+
{
|
|
3026
|
+
"captures": {
|
|
3027
|
+
"1": {
|
|
3028
|
+
"name": "punctuation.definition.comment.sql"
|
|
3029
|
+
}
|
|
3030
|
+
},
|
|
3031
|
+
"match": "(#)(\\\\\"|[^\"])*(?=\"|$)",
|
|
3032
|
+
"name": "comment.line.number-sign.sql"
|
|
3033
|
+
},
|
|
3034
|
+
{
|
|
3035
|
+
"captures": {
|
|
3036
|
+
"1": {
|
|
3037
|
+
"name": "punctuation.definition.comment.sql"
|
|
3038
|
+
}
|
|
3039
|
+
},
|
|
3040
|
+
"match": "(--)(\\\\\"|[^\"])*(?=\"|$)",
|
|
3041
|
+
"name": "comment.line.double-dash.sql"
|
|
3042
|
+
},
|
|
3043
|
+
{
|
|
3044
|
+
"match": "\\\\[\\\\\"`']",
|
|
3045
|
+
"name": "constant.character.escape.php"
|
|
3046
|
+
},
|
|
3047
|
+
{
|
|
3048
|
+
"match": "'(?=((\\\\')|[^'\"])*(\"|$))",
|
|
3049
|
+
"name": "string.quoted.single.unclosed.sql"
|
|
3050
|
+
},
|
|
3051
|
+
{
|
|
3052
|
+
"match": "`(?=((\\\\`)|[^`\"])*(\"|$))",
|
|
3053
|
+
"name": "string.quoted.other.backtick.unclosed.sql"
|
|
3054
|
+
},
|
|
3055
|
+
{
|
|
3056
|
+
"begin": "'",
|
|
3057
|
+
"end": "'",
|
|
3058
|
+
"name": "string.quoted.single.sql",
|
|
3059
|
+
"patterns": [
|
|
3060
|
+
{
|
|
3061
|
+
"include": "#interpolation"
|
|
3062
|
+
}
|
|
3063
|
+
]
|
|
3064
|
+
},
|
|
3065
|
+
{
|
|
3066
|
+
"begin": "`",
|
|
3067
|
+
"end": "`",
|
|
3068
|
+
"name": "string.quoted.other.backtick.sql",
|
|
3069
|
+
"patterns": [
|
|
3070
|
+
{
|
|
3071
|
+
"include": "#interpolation"
|
|
3072
|
+
}
|
|
3073
|
+
]
|
|
3074
|
+
},
|
|
3075
|
+
{
|
|
3076
|
+
"include": "#interpolation"
|
|
3077
|
+
},
|
|
3078
|
+
{
|
|
3079
|
+
"include": "source.sql"
|
|
3080
|
+
}
|
|
3081
|
+
]
|
|
3082
|
+
},
|
|
3083
|
+
"sql-string-single-quoted": {
|
|
3084
|
+
"begin": "'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND)\\b)",
|
|
3085
|
+
"beginCaptures": {
|
|
3086
|
+
"0": {
|
|
3087
|
+
"name": "punctuation.definition.string.begin.php"
|
|
3088
|
+
}
|
|
3089
|
+
},
|
|
3090
|
+
"contentName": "source.sql.embedded.php",
|
|
3091
|
+
"end": "'",
|
|
3092
|
+
"endCaptures": {
|
|
3093
|
+
"0": {
|
|
3094
|
+
"name": "punctuation.definition.string.end.php"
|
|
3095
|
+
}
|
|
3096
|
+
},
|
|
3097
|
+
"name": "string.quoted.single.sql.php",
|
|
3098
|
+
"patterns": [
|
|
3099
|
+
{
|
|
3100
|
+
"captures": {
|
|
3101
|
+
"1": {
|
|
3102
|
+
"name": "punctuation.definition.comment.sql"
|
|
3103
|
+
}
|
|
3104
|
+
},
|
|
3105
|
+
"match": "(#)(\\\\'|[^'])*(?='|$)",
|
|
3106
|
+
"name": "comment.line.number-sign.sql"
|
|
3107
|
+
},
|
|
3108
|
+
{
|
|
3109
|
+
"captures": {
|
|
3110
|
+
"1": {
|
|
3111
|
+
"name": "punctuation.definition.comment.sql"
|
|
3112
|
+
}
|
|
3113
|
+
},
|
|
3114
|
+
"match": "(--)(\\\\'|[^'])*(?='|$)",
|
|
3115
|
+
"name": "comment.line.double-dash.sql"
|
|
3116
|
+
},
|
|
3117
|
+
{
|
|
3118
|
+
"match": "\\\\[\\\\'`\"]",
|
|
3119
|
+
"name": "constant.character.escape.php"
|
|
3120
|
+
},
|
|
3121
|
+
{
|
|
3122
|
+
"match": "`(?=((\\\\`)|[^`'])*('|$))",
|
|
3123
|
+
"name": "string.quoted.other.backtick.unclosed.sql"
|
|
3124
|
+
},
|
|
3125
|
+
{
|
|
3126
|
+
"match": "\"(?=((\\\\\")|[^\"'])*('|$))",
|
|
3127
|
+
"name": "string.quoted.double.unclosed.sql"
|
|
3128
|
+
},
|
|
3129
|
+
{
|
|
3130
|
+
"include": "source.sql"
|
|
3131
|
+
}
|
|
3132
|
+
]
|
|
3133
|
+
},
|
|
3134
|
+
"string-backtick": {
|
|
3135
|
+
"begin": "`",
|
|
3136
|
+
"beginCaptures": {
|
|
3137
|
+
"0": {
|
|
3138
|
+
"name": "punctuation.definition.string.begin.php"
|
|
3139
|
+
}
|
|
3140
|
+
},
|
|
3141
|
+
"end": "`",
|
|
3142
|
+
"endCaptures": {
|
|
3143
|
+
"0": {
|
|
3144
|
+
"name": "punctuation.definition.string.end.php"
|
|
3145
|
+
}
|
|
3146
|
+
},
|
|
3147
|
+
"name": "string.interpolated.php",
|
|
3148
|
+
"patterns": [
|
|
3149
|
+
{
|
|
3150
|
+
"match": "\\\\.",
|
|
3151
|
+
"name": "constant.character.escape.php"
|
|
3152
|
+
},
|
|
3153
|
+
{
|
|
3154
|
+
"include": "#interpolation"
|
|
3155
|
+
}
|
|
3156
|
+
]
|
|
3157
|
+
},
|
|
3158
|
+
"string-double-quoted": {
|
|
3159
|
+
"begin": "\"",
|
|
3160
|
+
"beginCaptures": {
|
|
3161
|
+
"0": {
|
|
3162
|
+
"name": "punctuation.definition.string.begin.php"
|
|
3163
|
+
}
|
|
3164
|
+
},
|
|
3165
|
+
"end": "\"",
|
|
3166
|
+
"endCaptures": {
|
|
3167
|
+
"0": {
|
|
3168
|
+
"name": "punctuation.definition.string.end.php"
|
|
3169
|
+
}
|
|
3170
|
+
},
|
|
3171
|
+
"name": "string.quoted.double.php",
|
|
3172
|
+
"patterns": [
|
|
3173
|
+
{
|
|
3174
|
+
"include": "#interpolation"
|
|
3175
|
+
}
|
|
3176
|
+
]
|
|
3177
|
+
},
|
|
3178
|
+
"string-single-quoted": {
|
|
3179
|
+
"begin": "'",
|
|
3180
|
+
"beginCaptures": {
|
|
3181
|
+
"0": {
|
|
3182
|
+
"name": "punctuation.definition.string.begin.php"
|
|
3183
|
+
}
|
|
3184
|
+
},
|
|
3185
|
+
"end": "'",
|
|
3186
|
+
"endCaptures": {
|
|
3187
|
+
"0": {
|
|
3188
|
+
"name": "punctuation.definition.string.end.php"
|
|
3189
|
+
}
|
|
3190
|
+
},
|
|
3191
|
+
"name": "string.quoted.single.php",
|
|
3192
|
+
"patterns": [
|
|
3193
|
+
{
|
|
3194
|
+
"match": "\\\\[\\\\']",
|
|
3195
|
+
"name": "constant.character.escape.php"
|
|
3196
|
+
}
|
|
3197
|
+
]
|
|
3198
|
+
},
|
|
3199
|
+
"strings": {
|
|
3200
|
+
"patterns": [
|
|
3201
|
+
{
|
|
3202
|
+
"include": "#regex-double-quoted"
|
|
3203
|
+
},
|
|
3204
|
+
{
|
|
3205
|
+
"include": "#sql-string-double-quoted"
|
|
3206
|
+
},
|
|
3207
|
+
{
|
|
3208
|
+
"include": "#string-double-quoted"
|
|
3209
|
+
},
|
|
3210
|
+
{
|
|
3211
|
+
"include": "#regex-single-quoted"
|
|
3212
|
+
},
|
|
3213
|
+
{
|
|
3214
|
+
"include": "#sql-string-single-quoted"
|
|
3215
|
+
},
|
|
3216
|
+
{
|
|
3217
|
+
"include": "#string-single-quoted"
|
|
3218
|
+
}
|
|
3219
|
+
]
|
|
3220
|
+
},
|
|
3221
|
+
"support": {
|
|
3222
|
+
"patterns": [
|
|
3223
|
+
{
|
|
3224
|
+
"match": "(?xi)\n\\b\napc_(\n store|sma_info|compile_file|clear_cache|cas|cache_info|inc|dec|define_constants|delete(_file)?|\n exists|fetch|load_constants|add|bin_(dump|load)(file)?\n)\\b",
|
|
3225
|
+
"name": "support.function.apc.php"
|
|
3226
|
+
},
|
|
3227
|
+
{
|
|
3228
|
+
"match": "(?xi)\\b\n(\n shuffle|sizeof|sort|next|nat(case)?sort|count|compact|current|in_array|usort|uksort|uasort|\n pos|prev|end|each|extract|ksort|key(_exists)?|krsort|list|asort|arsort|rsort|reset|range|\n array(_(shift|sum|splice|search|slice|chunk|change_key_case|count_values|column|combine|\n (diff|intersect)(_(u)?(key|assoc))?|u(diff|intersect)(_(u)?assoc)?|unshift|unique|\n pop|push|pad|product|values|keys|key_exists|filter|fill(_keys)?|flip|walk(_recursive)?|\n reduce|replace(_recursive)?|reverse|rand|multisort|merge(_recursive)?|map)?)\n)\\b",
|
|
3229
|
+
"name": "support.function.array.php"
|
|
3230
|
+
},
|
|
3231
|
+
{
|
|
3232
|
+
"match": "(?xi)\\b\n(\n show_source|sys_getloadavg|sleep|highlight_(file|string)|constant|connection_(aborted|status)|\n time_(nanosleep|sleep_until)|ignore_user_abort|die|define(d)?|usleep|uniqid|unpack|__halt_compiler|\n php_(check_syntax|strip_whitespace)|pack|eval|exit|get_browser\n)\\b",
|
|
3233
|
+
"name": "support.function.basic_functions.php"
|
|
3234
|
+
},
|
|
3235
|
+
{
|
|
3236
|
+
"match": "(?i)\\bbc(scale|sub|sqrt|comp|div|pow(mod)?|add|mod|mul)\\b",
|
|
3237
|
+
"name": "support.function.bcmath.php"
|
|
3238
|
+
},
|
|
3239
|
+
{
|
|
3240
|
+
"match": "(?i)\\bblenc_encrypt\\b",
|
|
3241
|
+
"name": "support.function.blenc.php"
|
|
3242
|
+
},
|
|
3243
|
+
{
|
|
3244
|
+
"match": "(?i)\\bbz(compress|close|open|decompress|errstr|errno|error|flush|write|read)\\b",
|
|
3245
|
+
"name": "support.function.bz2.php"
|
|
3246
|
+
},
|
|
3247
|
+
{
|
|
3248
|
+
"match": "(?xi)\\b\n(\n (French|Gregorian|Jewish|Julian)ToJD|cal_(to_jd|info|days_in_month|from_jd)|unixtojd|\n jdto(unix|jewish)|easter_(date|days)|JD(MonthName|To(Gregorian|Julian|French)|DayOfWeek)\n)\\b",
|
|
3249
|
+
"name": "support.function.calendar.php"
|
|
3250
|
+
},
|
|
3251
|
+
{
|
|
3252
|
+
"match": "(?xi)\\b\n(\n class_alias|all_user_method(_array)?|is_(a|subclass_of)|__autoload|(class|interface|method|property|trait)_exists|\n get_(class(_(vars|methods))?|(called|parent)_class|object_vars|declared_(classes|interfaces|traits))\n)\\b",
|
|
3253
|
+
"name": "support.function.classobj.php"
|
|
3254
|
+
},
|
|
3255
|
+
{
|
|
3256
|
+
"match": "(?xi)\\b\n(\n com_(create_guid|print_typeinfo|event_sink|load_typelib|get_active_object|message_pump)|\n variant_(sub|set(_type)?|not|neg|cast|cat|cmp|int|idiv|imp|or|div|date_(from|to)_timestamp|\n pow|eqv|fix|and|add|abs|round|get_type|xor|mod|mul)\n)\\b",
|
|
3257
|
+
"name": "support.function.com.php"
|
|
3258
|
+
},
|
|
3259
|
+
{
|
|
3260
|
+
"begin": "(?i)\\b(isset|unset|eval|empty|list)\\b",
|
|
3261
|
+
"name": "support.function.construct.php"
|
|
3262
|
+
},
|
|
3263
|
+
{
|
|
3264
|
+
"match": "(?i)\\b(print|echo)\\b",
|
|
3265
|
+
"name": "support.function.construct.output.php"
|
|
3266
|
+
},
|
|
3267
|
+
{
|
|
3268
|
+
"match": "(?i)\\bctype_(space|cntrl|digit|upper|punct|print|lower|alnum|alpha|graph|xdigit)\\b",
|
|
3269
|
+
"name": "support.function.ctype.php"
|
|
3270
|
+
},
|
|
3271
|
+
{
|
|
3272
|
+
"match": "(?xi)\\b\ncurl_(\n share_(close|init|setopt)|strerror|setopt(_array)?|copy_handle|close|init|unescape|pause|escape|\n errno|error|exec|version|file_create|reset|getinfo|\n multi_(strerror|setopt|select|close|init|info_read|(add|remove)_handle|getcontent|exec)\n)\\b",
|
|
3273
|
+
"name": "support.function.curl.php"
|
|
3274
|
+
},
|
|
3275
|
+
{
|
|
3276
|
+
"match": "(?xi)\\b\n(\n strtotime|str[fp]time|checkdate|time|timezone_name_(from_abbr|get)|idate|\n timezone_((location|offset|transitions|version)_get|(abbreviations|identifiers)_list|open)|\n date(_(sun(rise|set)|sun_info|sub|create(_(immutable_)?from_format)?|timestamp_(get|set)|timezone_(get|set)|time_set|\n isodate_set|interval_(create_from_date_string|format)|offset_get|diff|default_timezone_(get|set)|date_set|\n parse(_from_format)?|format|add|get_last_errors|modify))?|\n localtime|get(date|timeofday)|gm(strftime|date|mktime)|microtime|mktime\n)\\b",
|
|
3277
|
+
"name": "support.function.datetime.php"
|
|
3278
|
+
},
|
|
3279
|
+
{
|
|
3280
|
+
"match": "(?i)\\bdba_(sync|handlers|nextkey|close|insert|optimize|open|delete|popen|exists|key_split|firstkey|fetch|list|replace)\\b",
|
|
3281
|
+
"name": "support.function.dba.php"
|
|
3282
|
+
},
|
|
3283
|
+
{
|
|
3284
|
+
"match": "(?i)\\bdbx_(sort|connect|compare|close|escape_string|error|query|fetch_row)\\b",
|
|
3285
|
+
"name": "support.function.dbx.php"
|
|
3286
|
+
},
|
|
3287
|
+
{
|
|
3288
|
+
"match": "(?i)\\b(scandir|chdir|chroot|closedir|opendir|dir|rewinddir|readdir|getcwd)\\b",
|
|
3289
|
+
"name": "support.function.dir.php"
|
|
3290
|
+
},
|
|
3291
|
+
{
|
|
3292
|
+
"match": "(?xi)\\b\neio_(\n sync(fs)?|sync_file_range|symlink|stat(vfs)?|sendfile|set_min_parallel|set_max_(idle|poll_(reqs|time)|parallel)|\n seek|n(threads|op|pending|reqs|ready)|chown|chmod|custom|close|cancel|truncate|init|open|dup2|unlink|utime|poll|\n event_loop|f(sync|stat(vfs)?|chown|chmod|truncate|datasync|utime|allocate)|write|lstat|link|rename|realpath|\n read(ahead|dir|link)?|rmdir|get_(event_stream|last_error)|grp(_(add|cancel|limit))?|mknod|mkdir|busy\n)\\b",
|
|
3293
|
+
"name": "support.function.eio.php"
|
|
3294
|
+
},
|
|
3295
|
+
{
|
|
3296
|
+
"match": "(?xi)\\b\nenchant_(\n dict_(store_replacement|suggest|check|is_in_session|describe|quick_check|add_to_(personal|session)|get_error)|\n broker_(set_ordering|init|dict_exists|describe|free(_dict)?|list_dicts|request_(pwl_)?dict|get_error)\n)\\b",
|
|
3297
|
+
"name": "support.function.enchant.php"
|
|
3298
|
+
},
|
|
3299
|
+
{
|
|
3300
|
+
"match": "(?i)\\bsplit(i)?|sql_regcase|ereg(i)?(_replace)?\\b",
|
|
3301
|
+
"name": "support.function.ereg.php"
|
|
3302
|
+
},
|
|
3303
|
+
{
|
|
3304
|
+
"match": "(?i)\\b((restore|set)_(error_handler|exception_handler)|trigger_error|debug_(print_)?backtrace|user_error|error_(log|reporting|get_last))\\b",
|
|
3305
|
+
"name": "support.function.errorfunc.php"
|
|
3306
|
+
},
|
|
3307
|
+
{
|
|
3308
|
+
"match": "(?i)\\bshell_exec|system|passthru|proc_(nice|close|terminate|open|get_status)|escapeshell(arg|cmd)|exec\\b",
|
|
3309
|
+
"name": "support.function.exec.php"
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
"match": "(?i)\\b(exif_(thumbnail|tagname|imagetype|read_data)|read_exif_data)\\b",
|
|
3313
|
+
"name": "support.function.exif.php"
|
|
3314
|
+
},
|
|
3315
|
+
{
|
|
3316
|
+
"match": "(?xi)\\b\nfann_(\n (duplicate|length|merge|shuffle|subset)_train_data|scale_(train(_data)?|(input|output)(_train_data)?)|\n set_(scaling_params|sarprop_(step_error_(shift|threshold_factor)|temperature|weight_decay_shift)|\n cascade_(num_candidate_groups|candidate_(change_fraction|limit|stagnation_epochs)|\n output_(change_fraction|stagnation_epochs)|weight_multiplier|activation_(functions|steepnesses)|\n (max|min)_(cand|out)_epochs)|\n callback|training_algorithm|train_(error|stop)_function|(input|output)_scaling_params|error_log|\n quickprop_(decay|mu)|weight(_array)?|learning_(momentum|rate)|bit_fail_limit|\n activation_(function|steepness)(_(hidden|layer|output))?|\n rprop_((decrease|increase)_factor|delta_(max|min|zero)))|\n save(_train)?|num_(input|output)_train_data|copy|clear_scaling_params|cascadetrain_on_(file|data)|\n create_((sparse|shortcut|standard)(_array)?|train(_from_callback)?|from_file)|\n test(_data)?|train(_(on_(file|data)|epoch))?|init_weights|descale_(input|output|train)|destroy(_train)?|\n print_error|run|reset_(MSE|err(no|str))|read_train_from_file|randomize_weights|\n get_(sarprop_(step_error_(shift|threshold_factor)|temperature|weight_decay_shift)|num_(input|output|layers)|\n network_type|MSE|connection_(array|rate)|bias_array|bit_fail(_limit)?|\n cascade_(num_(candidates|candidate_groups)|(candidate|output)_(change_fraction|limit|stagnation_epochs)|\n weight_multiplier|activation_(functions|steepnesses)(_count)?|(max|min)_(cand|out)_epochs)|\n total_(connections|neurons)|training_algorithm|train_(error|stop)_function|err(no|str)|\n quickprop_(decay|mu)|learning_(momentum|rate)|layer_array|activation_(function|steepness)|\n rprop_((decrease|increase)_factor|delta_(max|min|zero)))\n)\\b",
|
|
3317
|
+
"name": "support.function.fann.php"
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
"match": "(?xi)\\b\n(\n symlink|stat|set_file_buffer|chown|chgrp|chmod|copy|clearstatcache|touch|tempnam|tmpfile|\n is_(dir|(uploaded_)?file|executable|link|readable|writ(e)?able)|disk_(free|total)_space|diskfreespace|\n dirname|delete|unlink|umask|pclose|popen|pathinfo|parse_ini_(file|string)|fscanf|fstat|fseek|fnmatch|\n fclose|ftell|ftruncate|file(size|[acm]time|type|inode|owner|perms|group)?|file_(exists|(get|put)_contents)|\n f(open|puts|putcsv|passthru|eof|flush|write|lock|read|gets(s)?|getc(sv)?)|lstat|lchown|lchgrp|link(info)?|\n rename|rewind|read(file|link)|realpath(_cache_(get|size))?|rmdir|glob|move_uploaded_file|mkdir|basename\n)\\b",
|
|
3321
|
+
"name": "support.function.file.php"
|
|
3322
|
+
},
|
|
3323
|
+
{
|
|
3324
|
+
"match": "(?i)\\b(finfo_(set_flags|close|open|file|buffer)|mime_content_type)\\b",
|
|
3325
|
+
"name": "support.function.fileinfo.php"
|
|
3326
|
+
},
|
|
3327
|
+
{
|
|
3328
|
+
"match": "(?i)\\bfilter_(has_var|input(_array)?|id|var(_array)?|list)\\b",
|
|
3329
|
+
"name": "support.function.filter.php"
|
|
3330
|
+
},
|
|
3331
|
+
{
|
|
3332
|
+
"match": "(?i)\\bfastcgi_finish_request\\b",
|
|
3333
|
+
"name": "support.function.fpm.php"
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
"match": "(?i)\\b(call_user_(func|method)(_array)?|create_function|unregister_tick_function|forward_static_call(_array)?|function_exists|func_(num_args|get_arg(s)?)|register_(shutdown|tick)_function|get_defined_functions)\\b",
|
|
3337
|
+
"name": "support.function.funchand.php"
|
|
3338
|
+
},
|
|
3339
|
+
{
|
|
3340
|
+
"match": "(?i)\\b((n)?gettext|textdomain|d((n)?gettext|c(n)?gettext)|bind(textdomain|_textdomain_codeset))\\b",
|
|
3341
|
+
"name": "support.function.gettext.php"
|
|
3342
|
+
},
|
|
3343
|
+
{
|
|
3344
|
+
"match": "(?xi)\\b\ngmp_(\n scan[01]|strval|sign|sub|setbit|sqrt(rem)?|hamdist|neg|nextprime|com|clrbit|cmp|testbit|\n intval|init|invert|import|or|div(exact)?|div_(q|qr|r)|jacobi|popcount|pow(m)?|perfect_square|\n prob_prime|export|fact|legendre|and|add|abs|root(rem)?|random(_(bits|range))?|gcd(ext)?|xor|mod|mul\n)\\b",
|
|
3345
|
+
"name": "support.function.gmp.php"
|
|
3346
|
+
},
|
|
3347
|
+
{
|
|
3348
|
+
"match": "(?i)\\bhash(_(hmac(_file)?|copy|init|update(_(file|stream))?|pbkdf2|equals|file|final|algos))?\\b",
|
|
3349
|
+
"name": "support.function.hash.php"
|
|
3350
|
+
},
|
|
3351
|
+
{
|
|
3352
|
+
"match": "(?xi)\\b\n(\n http_(support|send_(status|stream|content_(disposition|type)|data|file|last_modified)|head|\n negotiate_(charset|content_type|language)|chunked_decode|cache_(etag|last_modified)|throttle|\n inflate|deflate|date|post_(data|fields)|put_(data|file|stream)|persistent_handles_(count|clean|ident)|\n parse_(cookie|headers|message|params)|redirect|request(_(method_(exists|name|(un)?register)|body_encode))?|\n get(_request_(headers|body(_stream)?))?|match_(etag|modified|request_header)|build_(cookie|str|url))|\n ob_(etag|deflate|inflate)handler\n)\\b",
|
|
3353
|
+
"name": "support.function.http.php"
|
|
3354
|
+
},
|
|
3355
|
+
{
|
|
3356
|
+
"match": "(?i)\\b(iconv(_(str(pos|len|rpos)|substr|(get|set)_encoding|mime_(decode(_headers)?|encode)))?|ob_iconv_handler)\\b",
|
|
3357
|
+
"name": "support.function.iconv.php"
|
|
3358
|
+
},
|
|
3359
|
+
{
|
|
3360
|
+
"match": "(?i)\\biis_((start|stop)_(service|server)|set_(script_map|server_rights|dir_security|app_settings)|(add|remove)_server|get_(script_map|service_state|server_(rights|by_(comment|path))|dir_security))\\b",
|
|
3361
|
+
"name": "support.function.iisfunc.php"
|
|
3362
|
+
},
|
|
3363
|
+
{
|
|
3364
|
+
"match": "(?xi)\\b\n(\n iptc(embed|parse)|(jpeg|png)2wbmp|gd_info|getimagesize(fromstring)?|\n image(s[xy]|scale|(char|string)(up)?|set(style|thickness|tile|interpolation|pixel|brush)|savealpha|\n convolution|copy(resampled|resized|merge(gray)?)?|colors(forindex|total)|\n color(set|closest(alpha|hwb)?|transparent|deallocate|(allocate|exact|resolve)(alpha)?|at|match)|\n crop(auto)?|create(truecolor|from(string|jpeg|png|wbmp|webp|gif|gd(2(part)?)?|xpm|xbm))?|\n types|ttf(bbox|text)|truecolortopalette|istruecolor|interlace|2wbmp|destroy|dashedline|jpeg|\n _type_to_(extension|mime_type)|ps(slantfont|text|(encode|extend|free|load)font|bbox)|png|polygon|\n palette(copy|totruecolor)|ellipse|ft(text|bbox)|filter|fill|filltoborder|\n filled(arc|ellipse|polygon|rectangle)|font(height|width)|flip|webp|wbmp|line|loadfont|layereffect|\n antialias|affine(matrix(concat|get))?|alphablending|arc|rotate|rectangle|gif|gd(2)?|gammacorrect|\n grab(screen|window)|xbm)\n)\\b",
|
|
3365
|
+
"name": "support.function.image.php"
|
|
3366
|
+
},
|
|
3367
|
+
{
|
|
3368
|
+
"match": "(?xi)\\b\n(\n sys_get_temp_dir|set_(time_limit|include_path|magic_quotes_runtime)|cli_(get|set)_process_title|\n ini_(alter|get(_all)?|restore|set)|zend_(thread_id|version|logo_guid)|dl|php(credits|info|version)|\n php_(sapi_name|ini_(scanned_files|loaded_file)|uname|logo_guid)|putenv|extension_loaded|version_compare|\n assert(_options)?|restore_include_path|gc_(collect_cycles|disable|enable(d)?)|getopt|\n get_(cfg_var|current_user|defined_constants|extension_funcs|include_path|included_files|loaded_extensions|\n magic_quotes_(gpc|runtime)|required_files|resources)|\n get(env|lastmod|rusage|my(inode|[gup]id))|\n memory_get_(peak_)?usage|main|magic_quotes_runtime\n)\\b",
|
|
3369
|
+
"name": "support.function.info.php"
|
|
3370
|
+
},
|
|
3371
|
+
{
|
|
3372
|
+
"match": "(?xi)\\b\nibase_(\n set_event_handler|service_(attach|detach)|server_info|num_(fields|params)|name_result|connect|\n commit(_ret)?|close|trans|delete_user|drop_db|db_info|pconnect|param_info|prepare|err(code|msg)|\n execute|query|field_info|fetch_(assoc|object|row)|free_(event_handler|query|result)|wait_event|\n add_user|affected_rows|rollback(_ret)?|restore|gen_id|modify_user|maintain_db|backup|\n blob_(cancel|close|create|import|info|open|echo|add|get)\n)\\b",
|
|
3373
|
+
"name": "support.function.interbase.php"
|
|
3374
|
+
},
|
|
3375
|
+
{
|
|
3376
|
+
"match": "(?xi)\\b\n(\n normalizer_(normalize|is_normalized)|idn_to_(unicode|utf8|ascii)|\n numfmt_(set_(symbol|(text_)?attribute|pattern)|create|(parse|format)(_currency)?|\n get_(symbol|(text_)?attribute|pattern|error_(code|message)|locale))|\n collator_(sort(_with_sort_keys)?|set_(attribute|strength)|compare|create|asort|\n get_(strength|sort_key|error_(code|message)|locale|attribute))|\n transliterator_(create(_(inverse|from_rules))?|transliterate|list_ids|get_error_(code|message))|\n intl(cal|tz)_get_error_(code|message)|intl_(is_failure|error_name|get_error_(code|message))|\n datefmt_(set_(calendar|lenient|pattern|timezone(_id)?)|create|is_lenient|parse|format(_object)?|localtime|\n get_(calendar(_object)?|time(type|zone(_id)?)|datetype|pattern|error_(code|message)|locale))|\n locale_(set_default|compose|canonicalize|parse|filter_matches|lookup|accept_from_http|\n get_(script|display_(script|name|variant|language|region)|default|primary_language|keywords|all_variants|region))|\n resourcebundle_(create|count|locales|get(_(error_(code|message)))?)|\n grapheme_(str(i?str|r?i?pos|len)|substr|extract)|\n msgfmt_(set_pattern|create|(format|parse)(_message)?|get_(pattern|error_(code|message)|locale))\n)\\b",
|
|
3377
|
+
"name": "support.function.intl.php"
|
|
3378
|
+
},
|
|
3379
|
+
{
|
|
3380
|
+
"match": "(?i)\\bjson_(decode|encode|last_error(_msg)?)\\b",
|
|
3381
|
+
"name": "support.function.json.php"
|
|
3382
|
+
},
|
|
3383
|
+
{
|
|
3384
|
+
"match": "(?xi)\\b\nldap_(\n start|tls|sort|search|sasl_bind|set_(option|rebind_proc)|(first|next)_(attribute|entry|reference)|\n connect|control_paged_result(_response)?|count_entries|compare|close|t61_to_8859|8859_to_t61|\n dn2ufn|delete|unbind|parse_(reference|result)|escape|errno|err2str|error|explode_dn|bind|\n free_result|list|add|rename|read|get_(option|dn|entries|values(_len)?|attributes)|modify(_batch)?|\n mod_(add|del|replace)\n)\\b",
|
|
3385
|
+
"name": "support.function.ldap.php"
|
|
3386
|
+
},
|
|
3387
|
+
{
|
|
3388
|
+
"match": "(?i)\\blibxml_(set_(streams_context|external_entity_loader)|clear_errors|disable_entity_loader|use_internal_errors|get_(errors|last_error))\\b",
|
|
3389
|
+
"name": "support.function.libxml.php"
|
|
3390
|
+
},
|
|
3391
|
+
{
|
|
3392
|
+
"match": "(?i)\\b(ezmlm_hash|mail)\\b",
|
|
3393
|
+
"name": "support.function.mail.php"
|
|
3394
|
+
},
|
|
3395
|
+
{
|
|
3396
|
+
"match": "(?xi)\\b\n(\n (a)?(cos|sin|tan)(h)?|sqrt|srand|hypot|hexdec|ceil|is_(nan|(in)?finite)|octdec|dec(hex|oct|bin)|deg2rad|\n pi|pow|exp(m1)?|floor|fmod|lcg_value|log(1(p|0))?|atan2|abs|round|rand|rad2deg|getrandmax|\n mt_(srand|rand|getrandmax)|max|min|bindec|base_convert\n)\\b",
|
|
3397
|
+
"name": "support.function.math.php"
|
|
3398
|
+
},
|
|
3399
|
+
{
|
|
3400
|
+
"match": "(?xi)\\b\nmb_(\n str(cut|str|to(lower|upper)|istr|ipos|imwidth|pos|width|len|rchr|richr|ripos|rpos)|\n substitute_character|substr(_count)?|split|send_mail|http_(input|output)|check_encoding|\n convert_(case|encoding|kana|variables)|internal_encoding|output_handler|decode_(numericentity|mimeheader)|\n detect_(encoding|order)|parse_str|preferred_mime_name|encoding_aliases|encode_(numericentity|mimeheader)|\n ereg(i(_replace)?)?|ereg_(search(_(get(pos|regs)|init|regs|(set)?pos))?|replace(_callback)?|match)|\n list_encodings|language|regex_(set_options|encoding)|get_info\n)\\b",
|
|
3401
|
+
"name": "support.function.mbstring.php"
|
|
3402
|
+
},
|
|
3403
|
+
{
|
|
3404
|
+
"match": "(?xi)\\b\n(\n mcrypt_(\n cfb|create_iv|cbc|ofb|decrypt|encrypt|ecb|list_(algorithms|modes)|generic(_((de)?init|end))?|\n enc_(self_test|is_block_(algorithm|algorithm_mode|mode)|\n get_(supported_key_sizes|(block|iv|key)_size|(algorithms|modes)_name))|\n get_(cipher_name|(block|iv|key)_size)|\n module_(close|self_test|is_block_(algorithm|algorithm_mode|mode)|open|\n get_(supported_key_sizes|algo_(block|key)_size)))|\n mdecrypt_generic\n)\\b",
|
|
3405
|
+
"name": "support.function.mcrypt.php"
|
|
3406
|
+
},
|
|
3407
|
+
{
|
|
3408
|
+
"match": "(?i)\\bmemcache_debug\\b",
|
|
3409
|
+
"name": "support.function.memcache.php"
|
|
3410
|
+
},
|
|
3411
|
+
{
|
|
3412
|
+
"match": "(?i)\\bmhash(_(count|keygen_s2k|get_(hash_name|block_size)))?\\b",
|
|
3413
|
+
"name": "support.function.mhash.php"
|
|
3414
|
+
},
|
|
3415
|
+
{
|
|
3416
|
+
"match": "(?i)\\b(log_(cmd_(insert|delete|update)|killcursor|write_batch|reply|getmore)|bson_(decode|encode))\\b",
|
|
3417
|
+
"name": "support.function.mongo.php"
|
|
3418
|
+
},
|
|
3419
|
+
{
|
|
3420
|
+
"match": "(?xi)\\b\nmysql_(\n stat|set_charset|select_db|num_(fields|rows)|connect|client_encoding|close|create_db|escape_string|\n thread_id|tablename|insert_id|info|data_seek|drop_db|db_(name|query)|unbuffered_query|pconnect|ping|\n errno|error|query|field_(seek|name|type|table|flags|len)|fetch_(object|field|lengths|assoc|array|row)|\n free_result|list_(tables|dbs|processes|fields)|affected_rows|result|real_escape_string|\n get_(client|host|proto|server)_info\n)\\b",
|
|
3421
|
+
"name": "support.function.mysql.php"
|
|
3422
|
+
},
|
|
3423
|
+
{
|
|
3424
|
+
"match": "(?xi)\\b\nmysqli_(\n ssl_set|store_result|stat|send_(query|long_data)|set_(charset|opt|local_infile_(default|handler))|\n stmt_(store_result|send_long_data|next_result|close|init|data_seek|prepare|execute|fetch|free_result|\n attr_(get|set)|result_metadata|reset|get_(result|warnings)|more_results|bind_(param|result))|\n select_db|slave_query|savepoint|next_result|change_user|character_set_name|connect|commit|\n client_encoding|close|thread_safe|init|options|(enable|disable)_(reads_from_master|rpl_parse)|\n dump_debug_info|debug|data_seek|use_result|ping|poll|param_count|prepare|escape_string|execute|\n embedded_server_(start|end)|kill|query|field_seek|free_result|autocommit|rollback|report|refresh|\n fetch(_(object|fields|field(_direct)?|assoc|all|array|row))?|rpl_(parse_enabled|probe|query_type)|\n release_savepoint|reap_async_query|real_(connect|escape_string|query)|more_results|multi_query|\n get_(charset|connection_stats|client_(stats|info|version)|cache_stats|warnings|links_stats|metadata)|\n master_query|bind_(param|result)|begin_transaction\n)\\b",
|
|
3425
|
+
"name": "support.function.mysqli.php"
|
|
3426
|
+
},
|
|
3427
|
+
{
|
|
3428
|
+
"match": "(?i)\\bmysqlnd_memcache_(set|get_config)\\b",
|
|
3429
|
+
"name": "support.function.mysqlnd-memcache.php"
|
|
3430
|
+
},
|
|
3431
|
+
{
|
|
3432
|
+
"match": "(?i)\\bmysqlnd_ms_(set_(user_pick_server|qos)|dump_servers|query_is_select|fabric_select_(shard|global)|get_(stats|last_(used_connection|gtid))|xa_(commit|rollback|gc|begin)|match_wild)\\b",
|
|
3433
|
+
"name": "support.function.mysqlnd-ms.php"
|
|
3434
|
+
},
|
|
3435
|
+
{
|
|
3436
|
+
"match": "(?i)\\bmysqlnd_qc_(set_(storage_handler|cache_condition|is_select|user_handlers)|clear_cache|get_(normalized_query_trace_log|core_stats|cache_info|query_trace_log|available_handlers))\\b",
|
|
3437
|
+
"name": "support.function.mysqlnd-qc.php"
|
|
3438
|
+
},
|
|
3439
|
+
{
|
|
3440
|
+
"match": "(?i)\\bmysqlnd_uh_(set_(statement|connection)_proxy|convert_to_mysqlnd)\\b",
|
|
3441
|
+
"name": "support.function.mysqlnd-uh.php"
|
|
3442
|
+
},
|
|
3443
|
+
{
|
|
3444
|
+
"match": "(?xi)\\b\n(\n syslog|socket_(set_(blocking|timeout)|get_status)|set(raw)?cookie|http_response_code|openlog|\n headers_(list|sent)|header(_(register_callback|remove))?|checkdnsrr|closelog|inet_(ntop|pton)|ip2long|\n openlog|dns_(check_record|get_(record|mx))|define_syslog_variables|(p)?fsockopen|long2ip|\n get(servby(name|port)|host(name|by(name(l)?|addr))|protoby(name|number)|mxrr)\n)\\b",
|
|
3445
|
+
"name": "support.function.network.php"
|
|
3446
|
+
},
|
|
3447
|
+
{
|
|
3448
|
+
"match": "(?i)\\bnsapi_(virtual|response_headers|request_headers)\\b",
|
|
3449
|
+
"name": "support.function.nsapi.php"
|
|
3450
|
+
},
|
|
3451
|
+
{
|
|
3452
|
+
"match": "(?xi)\\b\n(\n oci(statementtype|setprefetch|serverversion|savelob(file)?|numcols|new(collection|cursor|descriptor)|nlogon|\n column(scale|size|name|type(raw)?|isnull|precision)|coll(size|trim|assign(elem)?|append|getelem|max)|commit|\n closelob|cancel|internaldebug|definebyname|plogon|parse|error|execute|fetch(statement|into)?|\n free(statement|collection|cursor|desc)|write(temporarylob|lobtofile)|loadlob|log(on|off)|rowcount|rollback|\n result|bindbyname)|\n oci_(statement_type|set_(client_(info|identifier)|prefetch|edition|action|module_name)|server_version|\n num_(fields|rows)|new_(connect|collection|cursor|descriptor)|connect|commit|client_version|close|cancel|\n internal_debug|define_by_name|pconnect|password_change|parse|error|execute|bind_(array_)?by_name|\n field_(scale|size|name|type(_raw)?|is_null|precision)|fetch(_(object|assoc|all|array|row))?|\n free_(statement|descriptor)|lob_(copy|is_equal)|rollback|result|get_implicit_resultset)\n)\\b",
|
|
3453
|
+
"name": "support.function.oci8.php"
|
|
3454
|
+
},
|
|
3455
|
+
{
|
|
3456
|
+
"match": "(?i)\\bopcache_(compile_file|invalidate|reset|get_(status|configuration))\\b",
|
|
3457
|
+
"name": "support.function.opcache.php"
|
|
3458
|
+
},
|
|
3459
|
+
{
|
|
3460
|
+
"match": "(?xi)\\b\nopenssl_(\n sign|spki_(new|export(_challenge)?|verify)|seal|csr_(sign|new|export(_to_file)?|get_(subject|public_key))|\n cipher_iv_length|open|dh_compute_key|digest|decrypt|public_(decrypt|encrypt)|encrypt|error_string|\n pkcs12_(export(_to_file)?|read)|pkcs7_(sign|decrypt|encrypt|verify)|verify|free_key|random_pseudo_bytes|\n pkey_(new|export(_to_file)?|free|get_(details|public|private))|private_(decrypt|encrypt)|pbkdf2|\n get_((cipher|md)_methods|cert_locations|(public|private)key)|\n x509_(check_private_key|checkpurpose|parse|export(_to_file)?|fingerprint|free|read)\n)\\b",
|
|
3461
|
+
"name": "support.function.openssl.php"
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
"match": "(?xi)\\b\n(\n output_(add_rewrite_var|reset_rewrite_vars)|flush|\n ob_(start|clean|implicit_flush|end_(clean|flush)|flush|list_handlers|gzhandler|\n get_(status|contents|clean|flush|length|level))\n)\\b",
|
|
3465
|
+
"name": "support.function.output.php"
|
|
3466
|
+
},
|
|
3467
|
+
{
|
|
3468
|
+
"match": "(?i)\\bpassword_(hash|needs_rehash|verify|get_info)\\b",
|
|
3469
|
+
"name": "support.function.password.php"
|
|
3470
|
+
},
|
|
3471
|
+
{
|
|
3472
|
+
"match": "(?xi)\\b\npcntl_(\n strerror|signal(_dispatch)?|sig(timedwait|procmask|waitinfo)|setpriority|errno|exec|fork|\n w(stopsig|termsig|if(stopped|signaled|exited))|wait(pid)?|alarm|getpriority|get_last_error\n)\\b",
|
|
3473
|
+
"name": "support.function.pcntl.php"
|
|
3474
|
+
},
|
|
3475
|
+
{
|
|
3476
|
+
"match": "(?xi)\\b\npg_(\n socket|send_(prepare|execute|query(_params)?)|set_(client_encoding|error_verbosity)|select|host|\n num_(fields|rows)|consume_input|connection_(status|reset|busy)|connect(_poll)?|convert|copy_(from|to)|\n client_encoding|close|cancel_query|tty|transaction_status|trace|insert|options|delete|dbname|untrace|\n unescape_bytea|update|pconnect|ping|port|put_line|parameter_status|prepare|version|query(_params)?|\n escape_(string|identifier|literal|bytea)|end_copy|execute|flush|free_result|last_(notice|error|oid)|\n field_(size|num|name|type(_oid)?|table|is_null|prtlen)|affected_rows|result_(status|seek|error(_field)?)|\n fetch_(object|assoc|all(_columns)?|array|row|result)|get_(notify|pid|result)|meta_data|\n lo_(seek|close|create|tell|truncate|import|open|unlink|export|write|read(_all)?)|\n)\\b",
|
|
3477
|
+
"name": "support.function.pgsql.php"
|
|
3478
|
+
},
|
|
3479
|
+
{
|
|
3480
|
+
"match": "(?i)\\b(virtual|getallheaders|apache_((get|set)env|note|child_terminate|lookup_uri|response_headers|reset_timeout|request_headers|get_(version|modules)))\\b",
|
|
3481
|
+
"name": "support.function.php_apache.php"
|
|
3482
|
+
},
|
|
3483
|
+
{
|
|
3484
|
+
"match": "(?i)\\bdom_import_simplexml\\b",
|
|
3485
|
+
"name": "support.function.php_dom.php"
|
|
3486
|
+
},
|
|
3487
|
+
{
|
|
3488
|
+
"match": "(?xi)\\b\nftp_(\n ssl_connect|systype|site|size|set_option|nlist|nb_(continue|f?(put|get))|ch(dir|mod)|connect|cdup|close|\n delete|put|pwd|pasv|exec|quit|f(put|get)|login|alloc|rename|raw(list)?|rmdir|get(_option)?|mdtm|mkdir\n)\\b",
|
|
3489
|
+
"name": "support.function.php_ftp.php"
|
|
3490
|
+
},
|
|
3491
|
+
{
|
|
3492
|
+
"match": "(?xi)\\b\nimap_(\n (create|delete|list|rename|scan)(mailbox)?|status|sort|subscribe|set_quota|set(flag_full|acl)|search|savebody|\n num_(recent|msg)|check|close|clearflag_full|thread|timeout|open|header(info)?|headers|append|alerts|reopen|\n 8bit|unsubscribe|undelete|utf7_(decode|encode)|utf8|uid|ping|errors|expunge|qprint|gc|\n fetch(structure|header|text|mime|body)|fetch_overview|lsub|list(scan|subscribed)|last_error|\n rfc822_(parse_(headers|adrlist)|write_address)|get(subscribed|acl|mailboxes)|get_quota(root)?|\n msgno|mime_header_decode|mail_(copy|compose|move)|mail|mailboxmsginfo|binary|body(struct)?|base64\n)\\b",
|
|
3493
|
+
"name": "support.function.php_imap.php"
|
|
3494
|
+
},
|
|
3495
|
+
{
|
|
3496
|
+
"match": "(?xi)\\b\nmssql_(\n select_db|num_(fields|rows)|next_result|connect|close|init|data_seek|pconnect|execute|query|\n field_(seek|name|type|length)|fetch_(object|field|assoc|array|row|batch)|free_(statement|result)|\n rows_affected|result|guid_string|get_last_message|min_(error|message)_severity|bind\n)\\b",
|
|
3497
|
+
"name": "support.function.php_mssql.php"
|
|
3498
|
+
},
|
|
3499
|
+
{
|
|
3500
|
+
"match": "(?xi)\\b\nodbc_(\n statistics|specialcolumns|setoption|num_(fields|rows)|next_result|connect|columns|columnprivileges|commit|\n cursor|close(_all)?|tables|tableprivileges|do|data_source|pconnect|primarykeys|procedures|procedurecolumns|\n prepare|error(msg)?|exec(ute)?|field_(scale|num|name|type|precision|len)|foreignkeys|free_result|\n fetch_(into|object|array|row)|longreadlen|autocommit|rollback|result(_all)?|gettypeinfo|binmode\n)\\b",
|
|
3501
|
+
"name": "support.function.php_odbc.php"
|
|
3502
|
+
},
|
|
3503
|
+
{
|
|
3504
|
+
"match": "(?i)\\bpreg_(split|quote|filter|last_error|replace(_callback)?|grep|match(_all)?)\\b",
|
|
3505
|
+
"name": "support.function.php_pcre.php"
|
|
3506
|
+
},
|
|
3507
|
+
{
|
|
3508
|
+
"match": "(?i)\\b(spl_(classes|object_hash|autoload(_(call|unregister|extensions|functions|register))?)|class_(implements|uses|parents)|iterator_(count|to_array|apply))\\b",
|
|
3509
|
+
"name": "support.function.php_spl.php"
|
|
3510
|
+
},
|
|
3511
|
+
{
|
|
3512
|
+
"match": "(?i)\\bzip_(close|open|entry_(name|compressionmethod|compressedsize|close|open|filesize|read)|read)\\b",
|
|
3513
|
+
"name": "support.function.php_zip.php"
|
|
3514
|
+
},
|
|
3515
|
+
{
|
|
3516
|
+
"match": "(?xi)\\b\nposix_(\n strerror|set(s|e?u|[ep]?g)id|ctermid|ttyname|times|isatty|initgroups|uname|errno|kill|access|\n get(sid|cwd|uid|pid|ppid|pwnam|pwuid|pgid|pgrp|euid|egid|login|rlimit|gid|grnam|groups|grgid)|\n get_last_error|mknod|mkfifo\n)\\b",
|
|
3517
|
+
"name": "support.function.posix.php"
|
|
3518
|
+
},
|
|
3519
|
+
{
|
|
3520
|
+
"match": "(?i)\\bset(thread|proc)title\\b",
|
|
3521
|
+
"name": "support.function.proctitle.php"
|
|
3522
|
+
},
|
|
3523
|
+
{
|
|
3524
|
+
"match": "(?xi)\\b\npspell_(\n store_replacement|suggest|save_wordlist|new(_(config|personal))?|check|clear_session|\n config_(save_repl|create|ignore|(data|dict)_dir|personal|runtogether|repl|mode)|add_to_(session|personal)\n)\\b",
|
|
3525
|
+
"name": "support.function.pspell.php"
|
|
3526
|
+
},
|
|
3527
|
+
{
|
|
3528
|
+
"match": "(?i)\\breadline(_(completion_function|clear_history|callback_(handler_(install|remove)|read_char)|info|on_new_line|write_history|list_history|add_history|redisplay|read_history))?\\b",
|
|
3529
|
+
"name": "support.function.readline.php"
|
|
3530
|
+
},
|
|
3531
|
+
{
|
|
3532
|
+
"match": "(?i)\\brecode(_(string|file))?\\b",
|
|
3533
|
+
"name": "support.function.recode.php"
|
|
3534
|
+
},
|
|
3535
|
+
{
|
|
3536
|
+
"match": "(?i)\\brrd(c_disconnect|_(create|tune|info|update|error|version|first|fetch|last(update)?|restore|graph|xport))\\b",
|
|
3537
|
+
"name": "support.function.rrd.php"
|
|
3538
|
+
},
|
|
3539
|
+
{
|
|
3540
|
+
"match": "(?xi)\\b\n(\n shm_((get|has|remove|put)_var|detach|attach|remove)|sem_(acquire|release|remove|get)|ftok|\n msg_((get|remove|set|stat)_queue|send|queue_exists|receive)\n)\\b",
|
|
3541
|
+
"name": "support.function.sem.php"
|
|
3542
|
+
},
|
|
3543
|
+
{
|
|
3544
|
+
"match": "(?xi)\\b\nsession_(\n status|start|set_(save_handler|cookie_params)|save_path|name|commit|cache_(expire|limiter)|\n is_registered|id|destroy|decode|unset|unregister|encode|write_close|abort|reset|register(_shutdown)?|\n regenerate_id|get_cookie_params|module_name\n)\\b",
|
|
3545
|
+
"name": "support.function.session.php"
|
|
3546
|
+
},
|
|
3547
|
+
{
|
|
3548
|
+
"match": "(?i)\\bshmop_(size|close|open|delete|write|read)\\b",
|
|
3549
|
+
"name": "support.function.shmop.php"
|
|
3550
|
+
},
|
|
3551
|
+
{
|
|
3552
|
+
"match": "(?i)\\bsimplexml_(import_dom|load_(string|file))\\b",
|
|
3553
|
+
"name": "support.function.simplexml.php"
|
|
3554
|
+
},
|
|
3555
|
+
{
|
|
3556
|
+
"match": "(?xi)\\b\n(\n snmp(walk(oid)?|realwalk|get(next)?|set)|\n snmp_(set_(valueretrieval|quick_print|enum_print|oid_(numeric_print|output_format))|read_mib|\n get_(valueretrieval|quick_print))|\n snmp[23]_(set|walk|real_walk|get(next)?)\n)\\b",
|
|
3557
|
+
"name": "support.function.snmp.php"
|
|
3558
|
+
},
|
|
3559
|
+
{
|
|
3560
|
+
"match": "(?i)\\b(is_soap_fault|use_soap_error_handler)\\b",
|
|
3561
|
+
"name": "support.function.soap.php"
|
|
3562
|
+
},
|
|
3563
|
+
{
|
|
3564
|
+
"match": "(?xi)\\b\nsocket_(\n shutdown|strerror|send(to|msg)?|set_((non)?block|option)|select|connect|close|clear_error|bind|\n create(_(pair|listen))?|cmsg_space|import_stream|write|listen|last_error|accept|recv(from|msg)?|\n read|get(peer|sock)name|get_option\n)\\b",
|
|
3565
|
+
"name": "support.function.sockets.php"
|
|
3566
|
+
},
|
|
3567
|
+
{
|
|
3568
|
+
"match": "(?xi)\\b\nsqlite_(\n single_query|seek|has_(more|prev)|num_(fields|rows)|next|changes|column|current|close|\n create_(aggregate|function)|open|unbuffered_query|udf_(decode|encode)_binary|popen|prev|\n escape_string|error_string|exec|valid|key|query|field_name|factory|\n fetch_(string|single|column_types|object|all|array)|lib(encoding|version)|\n last_(insert_rowid|error)|array_query|rewind|busy_timeout\n)\\b",
|
|
3569
|
+
"name": "support.function.sqlite.php"
|
|
3570
|
+
},
|
|
3571
|
+
{
|
|
3572
|
+
"match": "(?xi)\\b\nsqlsrv_(\n send_stream_data|server_info|has_rows|num_(fields|rows)|next_result|connect|configure|commit|\n client_info|close|cancel|prepare|errors|execute|query|field_metadata|fetch(_(array|object))?|\n free_stmt|rows_affected|rollback|get_(config|field)|begin_transaction\n)\\b",
|
|
3573
|
+
"name": "support.function.sqlsrv.php"
|
|
3574
|
+
},
|
|
3575
|
+
{
|
|
3576
|
+
"match": "(?xi)\\b\nstats_(\n harmonic_mean|covariance|standard_deviation|skew|\n cdf_(noncentral_(chisquare|f)|negative_binomial|chisquare|cauchy|t|uniform|poisson|exponential|f|weibull|\n logistic|laplace|gamma|binomial|beta)|\n stat_(noncentral_t|correlation|innerproduct|independent_t|powersum|percentile|paired_t|gennch|binomial_coef)|\n dens_(normal|negative_binomial|chisquare|cauchy|t|pmf_(hypergeometric|poisson|binomial)|exponential|f|\n weibull|logistic|laplace|gamma|beta)|\n den_uniform|variance|kurtosis|absolute_deviation|\n rand_(setall|phrase_to_seeds|ranf|get_seeds|\n gen_(noncentral_[ft]|noncenral_chisquare|normal|chisquare|t|int|\n i(uniform|poisson|binomial(_negative)?)|exponential|f(uniform)?|gamma|beta))\n)\\b",
|
|
3577
|
+
"name": "support.function.stats.php"
|
|
3578
|
+
},
|
|
3579
|
+
{
|
|
3580
|
+
"match": "(?xi)\\b\n(\n set_socket_blocking|\n stream_(socket_(shutdown|sendto|server|client|pair|enable_crypto|accept|recvfrom|get_name)|\n set_(chunk_size|timeout|(read|write)_buffer|blocking)|select|notification_callback|supports_lock|\n context_(set_(option|default|params)|create|get_(options|default|params))|copy_to_stream|is_local|\n encoding|filter_(append|prepend|register|remove)|wrapper_((un)?register|restore)|\n resolve_include_path|register_wrapper|get_(contents|transports|filters|wrappers|line|meta_data)|\n bucket_(new|prepend|append|make_writeable)\n )\n)\\b",
|
|
3581
|
+
"name": "support.function.streamsfuncs.php"
|
|
3582
|
+
},
|
|
3583
|
+
{
|
|
3584
|
+
"match": "(?xi)\\b\n(\n money_format|md5(_file)?|metaphone|bin2hex|sscanf|sha1(_file)?|\n str(str|c?spn|n(at)?(case)?cmp|chr|coll|(case)?cmp|to(upper|lower)|tok|tr|istr|pos|pbrk|len|rchr|ri?pos|rev)|\n str_(getcsv|ireplace|pad|repeat|replace|rot13|shuffle|split|word_count)|\n strip(c?slashes|os)|strip_tags|similar_text|soundex|substr(_(count|compare|replace))?|setlocale|\n html(specialchars(_decode)?|entities)|html_entity_decode|hex2bin|hebrev(c)?|number_format|nl2br|nl_langinfo|\n chop|chunk_split|chr|convert_(cyr_string|uu(decode|encode))|count_chars|crypt|crc32|trim|implode|ord|\n uc(first|words)|join|parse_str|print(f)?|echo|explode|v?[fs]?printf|quoted_printable_(decode|encode)|\n quotemeta|wordwrap|lcfirst|[lr]trim|localeconv|levenshtein|addc?slashes|get_html_translation_table\n)\\b",
|
|
3585
|
+
"name": "support.function.string.php"
|
|
3586
|
+
},
|
|
3587
|
+
{
|
|
3588
|
+
"match": "(?xi)\\b\nsybase_(\n set_message_handler|select_db|num_(fields|rows)|connect|close|deadlock_retry_count|data_seek|\n unbuffered_query|pconnect|query|field_seek|fetch_(object|field|assoc|array|row)|free_result|\n affected_rows|result|get_last_message|min_(client|error|message|server)_severity\n)\\b",
|
|
3589
|
+
"name": "support.function.sybase.php"
|
|
3590
|
+
},
|
|
3591
|
+
{
|
|
3592
|
+
"match": "(?i)\\b(taint|is_tainted|untaint)\\b",
|
|
3593
|
+
"name": "support.function.taint.php"
|
|
3594
|
+
},
|
|
3595
|
+
{
|
|
3596
|
+
"match": "(?xi)\\b\n(\n tidy_((get|set)opt|set_encoding|save_config|config_count|clean_repair|is_(xhtml|xml)|diagnose|\n (access|error|warning)_count|load_config|reset_config|(parse|repair)_(string|file)|\n get_(status|html(_ver)?|head|config|output|opt_doc|root|release|body))|\n ob_tidyhandler\n)\\b",
|
|
3597
|
+
"name": "support.function.tidy.php"
|
|
3598
|
+
},
|
|
3599
|
+
{
|
|
3600
|
+
"match": "(?i)\\btoken_(name|get_all)\\b",
|
|
3601
|
+
"name": "support.function.tokenizer.php"
|
|
3602
|
+
},
|
|
3603
|
+
{
|
|
3604
|
+
"match": "(?xi)\\b\ntrader_(\n stoch(f|r|rsi)?|stddev|sin(h)?|sum|sub|set_(compat|unstable_period)|sqrt|sar(ext)?|sma|\n ht_(sine|trend(line|mode)|dc(period|phase)|phasor)|natr|cci|cos(h)?|correl|\n cdl(shootingstar|shortline|sticksandwich|stalledpattern|spinningtop|separatinglines|\n hikkake(mod)?|highwave|homingpigeon|hangingman|harami(cross)?|hammer|concealbabyswall|\n counterattack|closingmarubozu|thrusting|tasukigap|takuri|tristar|inneck|invertedhammer|\n identical3crows|2crows|onneck|doji(star)?|darkcloudcover|dragonflydoji|unique3river|\n upsidegap2crows|3(starsinsouth|inside|outside|whitesoldiers|linestrike|blackcrows)|\n piercing|engulfing|evening(doji)?star|kicking(bylength)?|longline|longleggeddoji|\n ladderbottom|advanceblock|abandonedbaby|risefall3methods|rickshawman|gapsidesidewhite|\n gravestonedoji|xsidegap3methods|morning(doji)?star|mathold|matchinglow|marubozu|\n belthold|breakaway)|\n ceil|cmo|tsf|typprice|t3|tema|tan(h)?|trix|trima|trange|obv|div|dema|dx|ultosc|ppo|\n plus_d[im]|errno|exp|ema|var|kama|floor|wclprice|willr|wma|ln|log10|bop|beta|bbands|\n linearreg(_(slope|intercept|angle))?|asin|acos|atan|atr|adosc|ad|add|adx(r)?|apo|avgprice|\n aroon(osc)?|rsi|roc|rocp|rocr(100)?|get_(compat|unstable_period)|min(index)?|minus_d[im]|\n minmax(index)?|mid(point|price)|mom|mult|medprice|mfi|macd(ext|fix)?|mavp|max(index)?|ma(ma)?\n)\\b",
|
|
3605
|
+
"name": "support.function.trader.php"
|
|
3606
|
+
},
|
|
3607
|
+
{
|
|
3608
|
+
"match": "(?i)\\buopz_(copy|compose|implement|overload|delete|undefine|extend|function|flags|restore|rename|redefine|backup)\\b",
|
|
3609
|
+
"name": "support.function.uopz.php"
|
|
3610
|
+
},
|
|
3611
|
+
{
|
|
3612
|
+
"match": "(?i)\\b(http_build_query|(raw)?url(decode|encode)|parse_url|get_(headers|meta_tags)|base64_(decode|encode))\\b",
|
|
3613
|
+
"name": "support.function.url.php"
|
|
3614
|
+
},
|
|
3615
|
+
{
|
|
3616
|
+
"match": "(?xi)\\b\n(\n strval|settype|serialize|(bool|double|float)val|debug_zval_dump|intval|import_request_variables|isset|\n is_(scalar|string|null|numeric|callable|int(eger)?|object|double|float|long|array|resource|real|bool)|\n unset|unserialize|print_r|empty|var_(dump|export)|gettype|get_(defined_vars|resource_type)\n)\\b",
|
|
3617
|
+
"name": "support.function.var.php"
|
|
3618
|
+
},
|
|
3619
|
+
{
|
|
3620
|
+
"match": "(?i)\\bwddx_(serialize_(value|vars)|deserialize|packet_(start|end)|add_vars)\\b",
|
|
3621
|
+
"name": "support.function.wddx.php"
|
|
3622
|
+
},
|
|
3623
|
+
{
|
|
3624
|
+
"match": "(?i)\\bxhprof_(sample_)?(disable|enable)\\b",
|
|
3625
|
+
"name": "support.function.xhprof.php"
|
|
3626
|
+
},
|
|
3627
|
+
{
|
|
3628
|
+
"match": "(?xi)\n\\b\n(\n utf8_(decode|encode)|\n xml_(set_((notation|(end|start)_namespace|unparsed_entity)_decl_handler|\n (character_data|default|element|external_entity_ref|processing_instruction)_handler|object)|\n parse(_into_struct)?|parser_((get|set)_option|create(_ns)?|free)|error_string|\n get_(current_((column|line)_number|byte_index)|error_code))\n)\\b",
|
|
3629
|
+
"name": "support.function.xml.php"
|
|
3630
|
+
},
|
|
3631
|
+
{
|
|
3632
|
+
"match": "(?xi)\\b\nxmlrpc_(\n server_(call_method|create|destroy|add_introspection_data|register_(introspection_callback|method))|\n is_fault|decode(_request)?|parse_method_descriptions|encode(_request)?|(get|set)_type\n)\\b",
|
|
3633
|
+
"name": "support.function.xmlrpc.php"
|
|
3634
|
+
},
|
|
3635
|
+
{
|
|
3636
|
+
"match": "(?xi)\\b\nxmlwriter_(\n (end|start|write)_(comment|cdata|dtd(_(attlist|entity|element))?|document|pi|attribute|element)|\n (start|write)_(attribute|element)_ns|write_raw|set_indent(_string)?|text|output_memory|open_(memory|uri)|\n full_end_element|flush|\n)\\b",
|
|
3637
|
+
"name": "support.function.xmlwriter.php"
|
|
3638
|
+
},
|
|
3639
|
+
{
|
|
3640
|
+
"match": "(?xi)\\b\n(\n zlib_(decode|encode|get_coding_type)|readgzfile|\n gz(seek|compress|close|tell|inflate|open|decode|deflate|uncompress|puts|passthru|encode|eof|file|\n write|rewind|read|getc|getss?)\n)\\b",
|
|
3641
|
+
"name": "support.function.zlib.php"
|
|
3642
|
+
},
|
|
3643
|
+
{
|
|
3644
|
+
"match": "(?i)\\bis_int(eger)?\\b",
|
|
3645
|
+
"name": "support.function.alias.php"
|
|
3646
|
+
}
|
|
3647
|
+
]
|
|
3648
|
+
},
|
|
3649
|
+
"switch_statement": {
|
|
3650
|
+
"patterns": [
|
|
3651
|
+
{
|
|
3652
|
+
"match": "\\s+(?=switch\\b)"
|
|
3653
|
+
},
|
|
3654
|
+
{
|
|
3655
|
+
"begin": "\\bswitch\\b(?!\\s*\\(.*\\)\\s*:)",
|
|
3656
|
+
"beginCaptures": {
|
|
3657
|
+
"0": {
|
|
3658
|
+
"name": "keyword.control.switch.php"
|
|
3659
|
+
}
|
|
3660
|
+
},
|
|
3661
|
+
"end": "}|(?=\\?>)",
|
|
3662
|
+
"endCaptures": {
|
|
3663
|
+
"0": {
|
|
3664
|
+
"name": "punctuation.definition.section.switch-block.end.bracket.curly.php"
|
|
3665
|
+
}
|
|
3666
|
+
},
|
|
3667
|
+
"name": "meta.switch-statement.php",
|
|
3668
|
+
"patterns": [
|
|
3669
|
+
{
|
|
3670
|
+
"begin": "\\(",
|
|
3671
|
+
"beginCaptures": {
|
|
3672
|
+
"0": {
|
|
3673
|
+
"name": "punctuation.definition.switch-expression.begin.bracket.round.php"
|
|
3674
|
+
}
|
|
3675
|
+
},
|
|
3676
|
+
"end": "\\)|(?=\\?>)",
|
|
3677
|
+
"endCaptures": {
|
|
3678
|
+
"0": {
|
|
3679
|
+
"name": "punctuation.definition.switch-expression.end.bracket.round.php"
|
|
3680
|
+
}
|
|
3681
|
+
},
|
|
3682
|
+
"patterns": [
|
|
3683
|
+
{
|
|
3684
|
+
"include": "#language"
|
|
3685
|
+
}
|
|
3686
|
+
]
|
|
3687
|
+
},
|
|
3688
|
+
{
|
|
3689
|
+
"begin": "{",
|
|
3690
|
+
"beginCaptures": {
|
|
3691
|
+
"0": {
|
|
3692
|
+
"name": "punctuation.definition.section.switch-block.begin.bracket.curly.php"
|
|
3693
|
+
}
|
|
3694
|
+
},
|
|
3695
|
+
"end": "(?=}|\\?>)",
|
|
3696
|
+
"patterns": [
|
|
3697
|
+
{
|
|
3698
|
+
"include": "#language"
|
|
3699
|
+
}
|
|
3700
|
+
]
|
|
3701
|
+
}
|
|
3702
|
+
]
|
|
3703
|
+
}
|
|
3704
|
+
]
|
|
3705
|
+
},
|
|
3706
|
+
"use-inner": {
|
|
3707
|
+
"patterns": [
|
|
3708
|
+
{
|
|
3709
|
+
"include": "#comments"
|
|
3710
|
+
},
|
|
3711
|
+
{
|
|
3712
|
+
"begin": "(?i)\\b(as)\\s+",
|
|
3713
|
+
"beginCaptures": {
|
|
3714
|
+
"1": {
|
|
3715
|
+
"name": "keyword.other.use-as.php"
|
|
3716
|
+
}
|
|
3717
|
+
},
|
|
3718
|
+
"end": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
|
|
3719
|
+
"endCaptures": {
|
|
3720
|
+
"0": {
|
|
3721
|
+
"name": "entity.other.alias.php"
|
|
3722
|
+
}
|
|
3723
|
+
}
|
|
3724
|
+
},
|
|
3725
|
+
{
|
|
3726
|
+
"include": "#class-name"
|
|
3727
|
+
},
|
|
3728
|
+
{
|
|
3729
|
+
"match": ",",
|
|
3730
|
+
"name": "punctuation.separator.delimiter.php"
|
|
3731
|
+
}
|
|
3732
|
+
]
|
|
3733
|
+
},
|
|
3734
|
+
"var_basic": {
|
|
3735
|
+
"patterns": [
|
|
3736
|
+
{
|
|
3737
|
+
"captures": {
|
|
3738
|
+
"1": {
|
|
3739
|
+
"name": "punctuation.definition.variable.php"
|
|
3740
|
+
}
|
|
3741
|
+
},
|
|
3742
|
+
"match": "(?i)(\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*\\b",
|
|
3743
|
+
"name": "variable.other.php"
|
|
3744
|
+
}
|
|
3745
|
+
]
|
|
3746
|
+
},
|
|
3747
|
+
"var_global": {
|
|
3748
|
+
"captures": {
|
|
3749
|
+
"1": {
|
|
3750
|
+
"name": "punctuation.definition.variable.php"
|
|
3751
|
+
}
|
|
3752
|
+
},
|
|
3753
|
+
"match": "(\\$)((_(COOKIE|FILES|GET|POST|REQUEST))|arg(v|c))\\b",
|
|
3754
|
+
"name": "variable.other.global.php"
|
|
3755
|
+
},
|
|
3756
|
+
"var_global_safer": {
|
|
3757
|
+
"captures": {
|
|
3758
|
+
"1": {
|
|
3759
|
+
"name": "punctuation.definition.variable.php"
|
|
3760
|
+
}
|
|
3761
|
+
},
|
|
3762
|
+
"match": "(\\$)((GLOBALS|_(ENV|SERVER|SESSION)))",
|
|
3763
|
+
"name": "variable.other.global.safer.php"
|
|
3764
|
+
},
|
|
3765
|
+
"var_language": {
|
|
3766
|
+
"captures": {
|
|
3767
|
+
"1": {
|
|
3768
|
+
"name": "punctuation.definition.variable.php"
|
|
3769
|
+
}
|
|
3770
|
+
},
|
|
3771
|
+
"match": "(\\$)this\\b",
|
|
3772
|
+
"name": "variable.language.this.php"
|
|
3773
|
+
},
|
|
3774
|
+
"variable-name": {
|
|
3775
|
+
"patterns": [
|
|
3776
|
+
{
|
|
3777
|
+
"include": "#var_global"
|
|
3778
|
+
},
|
|
3779
|
+
{
|
|
3780
|
+
"include": "#var_global_safer"
|
|
3781
|
+
},
|
|
3782
|
+
{
|
|
3783
|
+
"captures": {
|
|
3784
|
+
"1": {
|
|
3785
|
+
"name": "variable.other.php"
|
|
3786
|
+
},
|
|
3787
|
+
"10": {
|
|
3788
|
+
"name": "string.unquoted.index.php"
|
|
3789
|
+
},
|
|
3790
|
+
"11": {
|
|
3791
|
+
"name": "punctuation.section.array.end.php"
|
|
3792
|
+
},
|
|
3793
|
+
"2": {
|
|
3794
|
+
"name": "punctuation.definition.variable.php"
|
|
3795
|
+
},
|
|
3796
|
+
"4": {
|
|
3797
|
+
"name": "keyword.operator.class.php"
|
|
3798
|
+
},
|
|
3799
|
+
"5": {
|
|
3800
|
+
"name": "variable.other.property.php"
|
|
3801
|
+
},
|
|
3802
|
+
"6": {
|
|
3803
|
+
"name": "punctuation.section.array.begin.php"
|
|
3804
|
+
},
|
|
3805
|
+
"7": {
|
|
3806
|
+
"name": "constant.numeric.index.php"
|
|
3807
|
+
},
|
|
3808
|
+
"8": {
|
|
3809
|
+
"name": "variable.other.index.php"
|
|
3810
|
+
},
|
|
3811
|
+
"9": {
|
|
3812
|
+
"name": "punctuation.definition.variable.php"
|
|
3813
|
+
}
|
|
3814
|
+
},
|
|
3815
|
+
"match": "(?xi)\n((\\$)(?<name>[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*))\n(?:\n (->)(\\g<name>)\n |\n (\\[)(?:(\\d+)|((\\$)\\g<name>)|([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*))(\\])\n)?"
|
|
3816
|
+
},
|
|
3817
|
+
{
|
|
3818
|
+
"captures": {
|
|
3819
|
+
"1": {
|
|
3820
|
+
"name": "variable.other.php"
|
|
3821
|
+
},
|
|
3822
|
+
"2": {
|
|
3823
|
+
"name": "punctuation.definition.variable.php"
|
|
3824
|
+
},
|
|
3825
|
+
"4": {
|
|
3826
|
+
"name": "punctuation.definition.variable.php"
|
|
3827
|
+
}
|
|
3828
|
+
},
|
|
3829
|
+
"match": "(?i)((\\${)(?<name>[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)(}))"
|
|
3830
|
+
}
|
|
3831
|
+
]
|
|
3832
|
+
},
|
|
3833
|
+
"variables": {
|
|
3834
|
+
"patterns": [
|
|
3835
|
+
{
|
|
3836
|
+
"include": "#var_language"
|
|
3837
|
+
},
|
|
3838
|
+
{
|
|
3839
|
+
"include": "#var_global"
|
|
3840
|
+
},
|
|
3841
|
+
{
|
|
3842
|
+
"include": "#var_global_safer"
|
|
3843
|
+
},
|
|
3844
|
+
{
|
|
3845
|
+
"include": "#var_basic"
|
|
3846
|
+
},
|
|
3847
|
+
{
|
|
3848
|
+
"begin": "\\${(?=.*?})",
|
|
3849
|
+
"beginCaptures": {
|
|
3850
|
+
"0": {
|
|
3851
|
+
"name": "punctuation.definition.variable.php"
|
|
3852
|
+
}
|
|
3853
|
+
},
|
|
3854
|
+
"end": "}",
|
|
3855
|
+
"endCaptures": {
|
|
3856
|
+
"0": {
|
|
3857
|
+
"name": "punctuation.definition.variable.php"
|
|
3858
|
+
}
|
|
3859
|
+
},
|
|
3860
|
+
"patterns": [
|
|
3861
|
+
{
|
|
3862
|
+
"include": "#language"
|
|
3863
|
+
}
|
|
3864
|
+
]
|
|
3865
|
+
}
|
|
3866
|
+
]
|
|
3867
|
+
}
|
|
3868
|
+
},
|
|
3869
|
+
"scopeName": "text.html.php.blade"
|
|
3870
|
+
}
|