@codingame/monaco-languageclient-wrapper 1.0.9 → 1.1.3

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.
Files changed (170) hide show
  1. package/dist/BSV.tmLanguage.js +299 -0
  2. package/dist/COBOL Copybook.js +2017 -0
  3. package/dist/COBOL.js +2017 -0
  4. package/dist/COBOL.tmLanguage.js +149 -0
  5. package/dist/CodinGameMonacoWorkspace.d.ts +13 -0
  6. package/dist/Configuration.d.ts +15 -0
  7. package/dist/Erlang.plist.js +1752 -0
  8. package/dist/JSON.tmLanguage.js +221 -0
  9. package/dist/JSONC.tmLanguage.js +221 -0
  10. package/dist/JavaScript.tmLanguage.js +5894 -0
  11. package/dist/Kotlin.tmLanguage.js +724 -0
  12. package/dist/MagicPython.tmLanguage.js +5340 -0
  13. package/dist/MagicRegExp.tmLanguage.js +505 -0
  14. package/dist/Regular Expressions (JavaScript).tmLanguage.js +166 -0
  15. package/dist/SQL.plist.js +482 -0
  16. package/dist/Scala.tmLanguage.js +1255 -0
  17. package/dist/TypeScript.tmLanguage.js +5641 -0
  18. package/dist/WatchableConsoleWindow.d.ts +22 -0
  19. package/dist/_rollupPluginBabelHelpers.js +54 -0
  20. package/dist/asp-vb-net.tmlanguage.js +247 -0
  21. package/dist/bsv.js +49 -0
  22. package/dist/c.js +18 -0
  23. package/dist/c.tmLanguage.js +3347 -0
  24. package/dist/cabal.tmLanguage.js +66 -0
  25. package/dist/clojure.tmLanguage.js +443 -0
  26. package/dist/codeblock-cabal.js +42 -0
  27. package/dist/codeblock-haskell.js +42 -0
  28. package/dist/codeblock-literate-haskell.js +42 -0
  29. package/dist/codeblock.js +36 -0
  30. package/dist/codeblock2.js +95 -0
  31. package/dist/coffeescript.js +18 -0
  32. package/dist/coffeescript.tmLanguage.js +1324 -0
  33. package/dist/configuration/index.d.ts +5 -0
  34. package/dist/cpp.js +18 -0
  35. package/dist/cpp.tmLanguage.js +19996 -0
  36. package/dist/createLanguageClient.d.ts +2 -2
  37. package/dist/csharp.js +18 -0
  38. package/dist/csharp.tmLanguage.js +4750 -0
  39. package/dist/css.tmLanguage.js +1873 -0
  40. package/dist/css.worker.js +6 -0
  41. package/dist/cssContribution.js +10 -0
  42. package/dist/cuda-cpp.tmLanguage.js +19993 -0
  43. package/dist/d.js +3159 -0
  44. package/dist/dart.js +530 -0
  45. package/dist/diet.js +758 -0
  46. package/dist/diet2.js +92 -0
  47. package/dist/dml.js +169 -0
  48. package/dist/eex.js +55 -0
  49. package/dist/elixir.js +2341 -0
  50. package/dist/elixir2.js +184 -0
  51. package/dist/erlang.js +195 -0
  52. package/dist/expression.js +846 -0
  53. package/dist/extensions/autofold.d.ts +2 -0
  54. package/dist/extensions/cobol.d.ts +2 -0
  55. package/dist/extensions/index.d.ts +2 -0
  56. package/dist/features/cssContribution.d.ts +1 -0
  57. package/dist/features/htmlContribution.d.ts +1 -0
  58. package/dist/features/jsonContribution.d.ts +1 -0
  59. package/dist/features/typescriptContribution.d.ts +1 -0
  60. package/dist/fsharp.js +18 -0
  61. package/dist/fsharp.tmLanguage.js +1811 -0
  62. package/dist/go.tmLanguage.js +1025 -0
  63. package/dist/groovy.js +229 -0
  64. package/dist/groovy.tmLanguage.js +1391 -0
  65. package/dist/haskell.tmLanguage.js +629 -0
  66. package/dist/html (eex).js +31 -0
  67. package/dist/html-derivative.tmLanguage.js +57 -0
  68. package/dist/html.tmLanguage.js +2652 -0
  69. package/dist/html.tmLanguage2.js +97 -0
  70. package/dist/html.worker.js +6 -0
  71. package/dist/htmlContribution.js +10 -0
  72. package/dist/index.d.ts +3 -2
  73. package/dist/inline-styles.js +104 -0
  74. package/dist/inline-template.js +88 -0
  75. package/dist/java.js +18 -0
  76. package/dist/java.tmLanguage.js +1863 -0
  77. package/dist/javascript.js +196 -0
  78. package/dist/javascriptreact.js +196 -0
  79. package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
  80. package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
  81. package/dist/json.worker.js +6 -0
  82. package/dist/jsonContribution.js +78 -0
  83. package/dist/keybindings/index.d.ts +2 -0
  84. package/dist/keybindings/keybindingHelper.d.ts +2 -0
  85. package/dist/keybindings/vim.d.ts +3 -0
  86. package/dist/kotlin.js +117 -0
  87. package/dist/kotlinscript.js +117 -0
  88. package/dist/languageClient.d.ts +8 -14
  89. package/dist/languages/extensions/grammarLoader.d.ts +91037 -0
  90. package/dist/languages/extensions/snippetLoader.d.ts +4578 -0
  91. package/dist/languages/index.d.ts +3 -0
  92. package/dist/languages/monarch/index.d.ts +7 -0
  93. package/dist/languages/monarch/list.d.ts +7 -0
  94. package/dist/languages/monarch/stub-generator.d.ts +2 -0
  95. package/dist/languages/snippets/index.d.ts +1 -0
  96. package/dist/languages/textMate/CGTMGrammarFactory.d.ts +5 -0
  97. package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
  98. package/dist/languages/textMate/index.d.ts +2 -0
  99. package/dist/literateHaskell.tmLanguage.js +70 -0
  100. package/dist/lua.tmLanguage.js +289 -0
  101. package/dist/main.js +636 -315
  102. package/dist/markdown.js +103 -0
  103. package/dist/markdown.tmLanguage.js +2784 -0
  104. package/dist/merlin.js +111 -0
  105. package/dist/monaco.d.ts +8 -0
  106. package/dist/objective-c.tmLanguage.js +3618 -0
  107. package/dist/ocaml-hover-info.js +34 -0
  108. package/dist/ocaml-hover-type.js +24 -0
  109. package/dist/ocaml-markdown-codeblock.js +42 -0
  110. package/dist/ocaml.js +2979 -0
  111. package/dist/ocamlbuild.js +239 -0
  112. package/dist/opam.js +149 -0
  113. package/dist/pascal.js +382 -0
  114. package/dist/pascal.tmLanguage.js +169 -0
  115. package/dist/perl.tmLanguage.js +2986 -0
  116. package/dist/perl6.tmLanguage.js +323 -0
  117. package/dist/pgsql.tmLanguage.js +284 -0
  118. package/dist/php.js +265 -0
  119. package/dist/php.tmLanguage.js +3791 -0
  120. package/dist/platform.tmLanguage.js +1135 -0
  121. package/dist/powershell.js +18 -0
  122. package/dist/powershell.tmLanguage.js +1037 -0
  123. package/dist/r.tmLanguage.js +551 -0
  124. package/dist/reason-hover-info.js +34 -0
  125. package/dist/reason-hover-signature.js +21 -0
  126. package/dist/reason-hover-type.js +21 -0
  127. package/dist/reason-markdown-codeblock.js +42 -0
  128. package/dist/reason.js +100 -0
  129. package/dist/ruby.tmLanguage.js +2784 -0
  130. package/dist/rust.tmLanguage.js +1178 -0
  131. package/dist/sassdoc.tmLanguage.js +362 -0
  132. package/dist/scss.tmLanguage.js +1887 -0
  133. package/dist/sdc.tmLanguage.js +712 -0
  134. package/dist/sdl.js +162 -0
  135. package/dist/services/Configuration.d.ts +2 -3
  136. package/dist/services/EditorModelResolverService.d.ts +8 -0
  137. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +7 -0
  138. package/dist/services/WatchableConsoleWindow.d.ts +2 -0
  139. package/dist/services.d.ts +1 -2
  140. package/dist/shell-unix-bash.tmLanguage.js +1291 -0
  141. package/dist/sql.js +21 -0
  142. package/dist/staticOptions.d.ts +9 -0
  143. package/dist/stub-generator.js +15 -0
  144. package/dist/swift.js +183 -0
  145. package/dist/swift.tmLanguage.js +3288 -0
  146. package/dist/systemverilog.js +208 -0
  147. package/dist/systemverilog.tmLanguage.js +1067 -0
  148. package/dist/tcl.js +151 -0
  149. package/dist/tcl.tmlanguage.yaml.js +5484 -0
  150. package/dist/template.js +207 -0
  151. package/dist/theme/index.d.ts +3 -0
  152. package/dist/theme/registry.d.ts +4 -0
  153. package/dist/theme/semanticHighlight.d.ts +1 -0
  154. package/dist/theme/tools.d.ts +13 -0
  155. package/dist/tools.d.ts +3 -0
  156. package/dist/ts.worker.js +6 -0
  157. package/dist/typescript.js +312 -0
  158. package/dist/typescriptContribution.js +36 -0
  159. package/dist/typescriptreact.js +312 -0
  160. package/dist/ucf.tmLanguage.js +36 -0
  161. package/dist/vb.js +88 -0
  162. package/dist/verilog.js +432 -0
  163. package/dist/verilog.tmLanguage.js +321 -0
  164. package/dist/worker.d.ts +6 -0
  165. package/dist/worker.js +54 -0
  166. package/dist/xml.tmLanguage.js +395 -0
  167. package/dist/xsl.tmLanguage.js +102 -0
  168. package/dist/yaml.tmLanguage.js +629 -0
  169. package/package.json +19 -20
  170. package/stats.html +1 -1
@@ -0,0 +1,3791 @@
1
+ var information_for_contributors = [
2
+ "This file has been converted from https://github.com/microsoft/vscode/blob/master/extensions/php/",
3
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
4
+ "Once accepted there, we are happy to receive an update request."
5
+ ];
6
+ var version = "https://github.com/atom/language-php/commit/e3054bdf1f488ae0dcac51a3bc254268e3f26f84";
7
+ var scopeName = "source.php";
8
+ var patterns = [
9
+ {
10
+ include: "#attribute"
11
+ },
12
+ {
13
+ include: "#comments"
14
+ },
15
+ {
16
+ begin: "(?i)^\\s*(interface)\\s+([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)\\s*(extends)?\\s*",
17
+ beginCaptures: {
18
+ "1": {
19
+ name: "storage.type.interface.php"
20
+ },
21
+ "2": {
22
+ name: "entity.name.type.interface.php"
23
+ },
24
+ "3": {
25
+ name: "storage.modifier.extends.php"
26
+ }
27
+ },
28
+ end: "(?i)((?:[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*\\s*,\\s*)*)([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)?\\s*(?:(?={)|$)",
29
+ endCaptures: {
30
+ "1": {
31
+ patterns: [
32
+ {
33
+ match: "(?i)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*",
34
+ name: "entity.other.inherited-class.php"
35
+ },
36
+ {
37
+ match: ",",
38
+ name: "punctuation.separator.classes.php"
39
+ }
40
+ ]
41
+ },
42
+ "2": {
43
+ name: "entity.other.inherited-class.php"
44
+ }
45
+ },
46
+ name: "meta.interface.php",
47
+ patterns: [
48
+ {
49
+ include: "#namespace"
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ begin: "(?i)^\\s*(trait)\\s+([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)",
55
+ beginCaptures: {
56
+ "1": {
57
+ name: "storage.type.trait.php"
58
+ },
59
+ "2": {
60
+ name: "entity.name.type.trait.php"
61
+ }
62
+ },
63
+ end: "(?={)",
64
+ name: "meta.trait.php",
65
+ patterns: [
66
+ {
67
+ include: "#comments"
68
+ }
69
+ ]
70
+ },
71
+ {
72
+ match: "(?i)(?:^|(?<=<\\?php))\\s*(namespace)\\s+([a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+)(?=\\s*;)",
73
+ name: "meta.namespace.php",
74
+ captures: {
75
+ "1": {
76
+ name: "keyword.other.namespace.php"
77
+ },
78
+ "2": {
79
+ name: "entity.name.type.namespace.php",
80
+ patterns: [
81
+ {
82
+ match: "\\\\",
83
+ name: "punctuation.separator.inheritance.php"
84
+ }
85
+ ]
86
+ }
87
+ }
88
+ },
89
+ {
90
+ begin: "(?i)(?:^|(?<=<\\?php))\\s*(namespace)\\s+",
91
+ beginCaptures: {
92
+ "1": {
93
+ name: "keyword.other.namespace.php"
94
+ }
95
+ },
96
+ end: "(?<=})|(?=\\?>)",
97
+ name: "meta.namespace.php",
98
+ patterns: [
99
+ {
100
+ include: "#comments"
101
+ },
102
+ {
103
+ match: "(?i)[a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+",
104
+ name: "entity.name.type.namespace.php",
105
+ captures: {
106
+ "0": {
107
+ patterns: [
108
+ {
109
+ match: "\\\\",
110
+ name: "punctuation.separator.inheritance.php"
111
+ }
112
+ ]
113
+ }
114
+ }
115
+ },
116
+ {
117
+ begin: "{",
118
+ beginCaptures: {
119
+ "0": {
120
+ name: "punctuation.definition.namespace.begin.bracket.curly.php"
121
+ }
122
+ },
123
+ end: "}|(?=\\?>)",
124
+ endCaptures: {
125
+ "0": {
126
+ name: "punctuation.definition.namespace.end.bracket.curly.php"
127
+ }
128
+ },
129
+ patterns: [
130
+ {
131
+ include: "$self"
132
+ }
133
+ ]
134
+ },
135
+ {
136
+ match: "[^\\s]+",
137
+ name: "invalid.illegal.identifier.php"
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ match: "\\s+(?=use\\b)"
143
+ },
144
+ {
145
+ begin: "(?i)\\buse\\b",
146
+ beginCaptures: {
147
+ "0": {
148
+ name: "keyword.other.use.php"
149
+ }
150
+ },
151
+ end: "(?<=})|(?=;)|(?=\\?>)",
152
+ name: "meta.use.php",
153
+ patterns: [
154
+ {
155
+ match: "\\b(const|function)\\b",
156
+ name: "storage.type.${1:/downcase}.php"
157
+ },
158
+ {
159
+ begin: "{",
160
+ beginCaptures: {
161
+ "0": {
162
+ name: "punctuation.definition.use.begin.bracket.curly.php"
163
+ }
164
+ },
165
+ end: "}",
166
+ endCaptures: {
167
+ "0": {
168
+ name: "punctuation.definition.use.end.bracket.curly.php"
169
+ }
170
+ },
171
+ patterns: [
172
+ {
173
+ include: "#scope-resolution"
174
+ },
175
+ {
176
+ match: "(?xi)\n\\b(as)\n\\s+(final|abstract|public|private|protected|static)\n\\s+([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)",
177
+ captures: {
178
+ "1": {
179
+ name: "keyword.other.use-as.php"
180
+ },
181
+ "2": {
182
+ name: "storage.modifier.php"
183
+ },
184
+ "3": {
185
+ name: "entity.other.alias.php"
186
+ }
187
+ }
188
+ },
189
+ {
190
+ match: "(?xi)\n\\b(as)\n\\s+([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)",
191
+ captures: {
192
+ "1": {
193
+ name: "keyword.other.use-as.php"
194
+ },
195
+ "2": {
196
+ patterns: [
197
+ {
198
+ match: "^(?:final|abstract|public|private|protected|static)$",
199
+ name: "storage.modifier.php"
200
+ },
201
+ {
202
+ match: ".+",
203
+ name: "entity.other.alias.php"
204
+ }
205
+ ]
206
+ }
207
+ }
208
+ },
209
+ {
210
+ match: "(?i)\\b(insteadof)\\s+([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)",
211
+ captures: {
212
+ "1": {
213
+ name: "keyword.other.use-insteadof.php"
214
+ },
215
+ "2": {
216
+ name: "support.class.php"
217
+ }
218
+ }
219
+ },
220
+ {
221
+ match: ";",
222
+ name: "punctuation.terminator.expression.php"
223
+ },
224
+ {
225
+ include: "#use-inner"
226
+ }
227
+ ]
228
+ },
229
+ {
230
+ include: "#use-inner"
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ begin: "(?ix)\n(?:\n \\b(?:(abstract|final)\\s+)?(class)\\s+([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)\n |\\b(new)\\b\\s*(\\#\\[.*\\])?\\s*\\b(class)\\b # anonymous class\n)",
236
+ beginCaptures: {
237
+ "1": {
238
+ name: "storage.modifier.${1:/downcase}.php"
239
+ },
240
+ "2": {
241
+ name: "storage.type.class.php"
242
+ },
243
+ "3": {
244
+ name: "entity.name.type.class.php"
245
+ },
246
+ "4": {
247
+ name: "keyword.other.new.php"
248
+ },
249
+ "5": {
250
+ patterns: [
251
+ {
252
+ include: "#attribute"
253
+ }
254
+ ]
255
+ },
256
+ "6": {
257
+ name: "storage.type.class.php"
258
+ }
259
+ },
260
+ end: "}|(?=\\?>)",
261
+ endCaptures: {
262
+ "0": {
263
+ name: "punctuation.definition.class.end.bracket.curly.php"
264
+ }
265
+ },
266
+ name: "meta.class.php",
267
+ patterns: [
268
+ {
269
+ include: "#comments"
270
+ },
271
+ {
272
+ begin: "(?i)(extends)\\s+",
273
+ beginCaptures: {
274
+ "1": {
275
+ name: "storage.modifier.extends.php"
276
+ }
277
+ },
278
+ contentName: "meta.other.inherited-class.php",
279
+ end: "(?i)(?=[^a-z0-9_\\x{7f}-\\x{7fffffff}\\\\])",
280
+ patterns: [
281
+ {
282
+ begin: "(?i)(?=\\\\?[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*\\\\)",
283
+ end: "(?i)([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)?(?=[^a-z0-9_\\x{7f}-\\x{7fffffff}\\\\])",
284
+ endCaptures: {
285
+ "1": {
286
+ name: "entity.other.inherited-class.php"
287
+ }
288
+ },
289
+ patterns: [
290
+ {
291
+ include: "#namespace"
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ include: "#class-builtin"
297
+ },
298
+ {
299
+ include: "#namespace"
300
+ },
301
+ {
302
+ match: "(?i)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*",
303
+ name: "entity.other.inherited-class.php"
304
+ }
305
+ ]
306
+ },
307
+ {
308
+ begin: "(?i)(implements)\\s+",
309
+ beginCaptures: {
310
+ "1": {
311
+ name: "storage.modifier.implements.php"
312
+ }
313
+ },
314
+ end: "(?i)(?=[;{])",
315
+ patterns: [
316
+ {
317
+ include: "#comments"
318
+ },
319
+ {
320
+ begin: "(?i)(?=[a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+)",
321
+ contentName: "meta.other.inherited-class.php",
322
+ end: "(?i)(?:\\s*(?:,|(?=[^a-z0-9_\\x{7f}-\\x{7fffffff}\\\\\\s]))\\s*)",
323
+ patterns: [
324
+ {
325
+ begin: "(?i)(?=\\\\?[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*\\\\)",
326
+ end: "(?i)([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)?(?=[^a-z0-9_\\x{7f}-\\x{7fffffff}\\\\])",
327
+ endCaptures: {
328
+ "1": {
329
+ name: "entity.other.inherited-class.php"
330
+ }
331
+ },
332
+ patterns: [
333
+ {
334
+ include: "#namespace"
335
+ }
336
+ ]
337
+ },
338
+ {
339
+ include: "#class-builtin"
340
+ },
341
+ {
342
+ include: "#namespace"
343
+ },
344
+ {
345
+ match: "(?i)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*",
346
+ name: "entity.other.inherited-class.php"
347
+ }
348
+ ]
349
+ }
350
+ ]
351
+ },
352
+ {
353
+ begin: "{",
354
+ beginCaptures: {
355
+ "0": {
356
+ name: "punctuation.definition.class.begin.bracket.curly.php"
357
+ }
358
+ },
359
+ end: "(?=}|\\?>)",
360
+ contentName: "meta.class.body.php",
361
+ patterns: [
362
+ {
363
+ include: "$self"
364
+ }
365
+ ]
366
+ }
367
+ ]
368
+ },
369
+ {
370
+ include: "#match_statement"
371
+ },
372
+ {
373
+ include: "#switch_statement"
374
+ },
375
+ {
376
+ match: "\\s*\\b(yield\\s+from)\\b",
377
+ captures: {
378
+ "1": {
379
+ name: "keyword.control.yield-from.php"
380
+ }
381
+ }
382
+ },
383
+ {
384
+ match: "(?x)\n\\s* # FIXME: Removing this causes specs to fail. Investigate.\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",
385
+ captures: {
386
+ "1": {
387
+ name: "keyword.control.${1:/downcase}.php"
388
+ }
389
+ }
390
+ },
391
+ {
392
+ begin: "(?i)\\b((?:require|include)(?:_once)?)(\\s+|(?=\\())",
393
+ beginCaptures: {
394
+ "1": {
395
+ name: "keyword.control.import.include.php"
396
+ }
397
+ },
398
+ end: "(?=\\s|;|$|\\?>)",
399
+ name: "meta.include.php",
400
+ patterns: [
401
+ {
402
+ include: "$self"
403
+ }
404
+ ]
405
+ },
406
+ {
407
+ begin: "\\b(catch)\\s*(\\()",
408
+ beginCaptures: {
409
+ "1": {
410
+ name: "keyword.control.exception.catch.php"
411
+ },
412
+ "2": {
413
+ name: "punctuation.definition.parameters.begin.bracket.round.php"
414
+ }
415
+ },
416
+ end: "\\)",
417
+ endCaptures: {
418
+ "0": {
419
+ name: "punctuation.definition.parameters.end.bracket.round.php"
420
+ }
421
+ },
422
+ name: "meta.catch.php",
423
+ patterns: [
424
+ {
425
+ match: "(?xi)\n([a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ (?: \\s*\\|\\s* [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+)*) # union or single exception class\n\\s*\n((\\$+)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)? # Variable",
426
+ captures: {
427
+ "1": {
428
+ patterns: [
429
+ {
430
+ match: "\\|",
431
+ name: "punctuation.separator.delimiter.php"
432
+ },
433
+ {
434
+ begin: "(?i)(?=[\\\\a-z_\\x{7f}-\\x{7fffffff}])",
435
+ end: "(?xi)\n( [a-z_\\x{7f}-\\x{7fffffff}] [a-z0-9_\\x{7f}-\\x{7fffffff}]* )\n(?![a-z0-9_\\x{7f}-\\x{7fffffff}\\\\])",
436
+ endCaptures: {
437
+ "1": {
438
+ name: "support.class.exception.php"
439
+ }
440
+ },
441
+ patterns: [
442
+ {
443
+ include: "#namespace"
444
+ }
445
+ ]
446
+ }
447
+ ]
448
+ },
449
+ "2": {
450
+ name: "variable.other.php"
451
+ },
452
+ "3": {
453
+ name: "punctuation.definition.variable.php"
454
+ }
455
+ }
456
+ }
457
+ ]
458
+ },
459
+ {
460
+ match: "\\b(catch|try|throw|exception|finally)\\b",
461
+ name: "keyword.control.exception.php"
462
+ },
463
+ {
464
+ begin: "(?i)\\b(function)\\s*(?=&?\\s*\\()",
465
+ beginCaptures: {
466
+ "1": {
467
+ name: "storage.type.function.php"
468
+ }
469
+ },
470
+ end: "(?=\\s*{)",
471
+ name: "meta.function.closure.php",
472
+ patterns: [
473
+ {
474
+ include: "#comments"
475
+ },
476
+ {
477
+ begin: "(&)?\\s*(\\()",
478
+ beginCaptures: {
479
+ "1": {
480
+ name: "storage.modifier.reference.php"
481
+ },
482
+ "2": {
483
+ name: "punctuation.definition.parameters.begin.bracket.round.php"
484
+ }
485
+ },
486
+ contentName: "meta.function.parameters.php",
487
+ end: "\\)",
488
+ endCaptures: {
489
+ "0": {
490
+ name: "punctuation.definition.parameters.end.bracket.round.php"
491
+ }
492
+ },
493
+ patterns: [
494
+ {
495
+ include: "#function-parameters"
496
+ }
497
+ ]
498
+ },
499
+ {
500
+ begin: "(?i)(use)\\s*(\\()",
501
+ beginCaptures: {
502
+ "1": {
503
+ name: "keyword.other.function.use.php"
504
+ },
505
+ "2": {
506
+ name: "punctuation.definition.parameters.begin.bracket.round.php"
507
+ }
508
+ },
509
+ end: "\\)",
510
+ endCaptures: {
511
+ "0": {
512
+ name: "punctuation.definition.parameters.end.bracket.round.php"
513
+ }
514
+ },
515
+ name: "meta.function.closure.use.php",
516
+ patterns: [
517
+ {
518
+ match: ",",
519
+ name: "punctuation.separator.delimiter.php"
520
+ },
521
+ {
522
+ captures: {
523
+ "1": {
524
+ name: "variable.other.php"
525
+ },
526
+ "2": {
527
+ name: "storage.modifier.reference.php"
528
+ },
529
+ "3": {
530
+ name: "punctuation.definition.variable.php"
531
+ }
532
+ },
533
+ match: "(?i)((?:(&)\\s*)?(\\$+)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)\\s*(?=,|\\))"
534
+ }
535
+ ]
536
+ },
537
+ {
538
+ match: "(?xi)\n(:)\\s*\n(\n (?:\\?\\s*)? [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ | # nullable type\n [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ (?: \\s*[|&]\\s* [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+)+ # union type\n)\n(?=\\s*(?:{|/[/*]|\\#|$))",
539
+ captures: {
540
+ "1": {
541
+ name: "keyword.operator.return-value.php"
542
+ },
543
+ "2": {
544
+ patterns: [
545
+ {
546
+ include: "#php-types"
547
+ }
548
+ ]
549
+ }
550
+ }
551
+ }
552
+ ]
553
+ },
554
+ {
555
+ begin: "(?i)\\b(fn)\\s*(?=&?\\s*\\()",
556
+ beginCaptures: {
557
+ "1": {
558
+ name: "storage.type.function.php"
559
+ }
560
+ },
561
+ end: "=>",
562
+ endCaptures: {
563
+ "0": {
564
+ name: "punctuation.definition.arrow.php"
565
+ }
566
+ },
567
+ name: "meta.function.closure.php",
568
+ patterns: [
569
+ {
570
+ begin: "(?:(&)\\s*)?(\\()",
571
+ beginCaptures: {
572
+ "1": {
573
+ name: "storage.modifier.reference.php"
574
+ },
575
+ "2": {
576
+ name: "punctuation.definition.parameters.begin.bracket.round.php"
577
+ }
578
+ },
579
+ contentName: "meta.function.parameters.php",
580
+ end: "\\)",
581
+ endCaptures: {
582
+ "0": {
583
+ name: "punctuation.definition.parameters.end.bracket.round.php"
584
+ }
585
+ },
586
+ patterns: [
587
+ {
588
+ include: "#function-parameters"
589
+ }
590
+ ]
591
+ },
592
+ {
593
+ match: "(?xi)\n(:)\\s*\n(\n (?:\\?\\s*)? [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ | # nullable type\n [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ (?: \\s*[|&]\\s* [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+)+ # union type\n)\n(?=\\s*(?:=>|/[/*]|\\#|$))",
594
+ captures: {
595
+ "1": {
596
+ name: "keyword.operator.return-value.php"
597
+ },
598
+ "2": {
599
+ patterns: [
600
+ {
601
+ include: "#php-types"
602
+ }
603
+ ]
604
+ }
605
+ }
606
+ }
607
+ ]
608
+ },
609
+ {
610
+ begin: "(?x)\n((?:(?:final|abstract|public|private|protected)\\s+)*)\n(function)\\s+(__construct)\n\\s*(\\()",
611
+ beginCaptures: {
612
+ "1": {
613
+ patterns: [
614
+ {
615
+ match: "final|abstract|public|private|protected",
616
+ name: "storage.modifier.php"
617
+ }
618
+ ]
619
+ },
620
+ "2": {
621
+ name: "storage.type.function.php"
622
+ },
623
+ "3": {
624
+ name: "support.function.constructor.php"
625
+ },
626
+ "4": {
627
+ name: "punctuation.definition.parameters.begin.bracket.round.php"
628
+ }
629
+ },
630
+ contentName: "meta.function.parameters.php",
631
+ end: "(?xi)\n(\\)) \\s* ( : \\s*\n (?:\\?\\s*)? (?!\\s) [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\\\s\\|&]+ (?<!\\s)\n)?\n(?=\\s*(?:{|/[/*]|\\#|$|;))",
632
+ endCaptures: {
633
+ "1": {
634
+ name: "punctuation.definition.parameters.end.bracket.round.php"
635
+ },
636
+ "2": {
637
+ name: "invalid.illegal.return-type.php"
638
+ }
639
+ },
640
+ name: "meta.function.php",
641
+ patterns: [
642
+ {
643
+ include: "#comments"
644
+ },
645
+ {
646
+ match: ",",
647
+ name: "punctuation.separator.delimiter.php"
648
+ },
649
+ {
650
+ begin: "(?xi)\n((?:(?:public|private|protected|readonly)(?:\\s+|(?=\\?)))++)\n(?: (\n (?:\\?\\s*)? [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ | # nullable type\n [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ (?: \\s*[|&]\\s* [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+)+ # union type\n) \\s+ )?\n((?:(&)\\s*)?(\\$)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*) # Variable name with possible reference",
651
+ beginCaptures: {
652
+ "1": {
653
+ patterns: [
654
+ {
655
+ match: "public|private|protected|readonly",
656
+ name: "storage.modifier.php"
657
+ }
658
+ ]
659
+ },
660
+ "2": {
661
+ patterns: [
662
+ {
663
+ include: "#php-types"
664
+ }
665
+ ]
666
+ },
667
+ "3": {
668
+ name: "variable.other.php"
669
+ },
670
+ "4": {
671
+ name: "storage.modifier.reference.php"
672
+ },
673
+ "5": {
674
+ name: "punctuation.definition.variable.php"
675
+ }
676
+ },
677
+ end: "(?=\\s*(?:,|\\)|/[/*]|\\#))",
678
+ name: "meta.function.parameter.promoted-property.php",
679
+ patterns: [
680
+ {
681
+ begin: "=",
682
+ beginCaptures: {
683
+ "0": {
684
+ name: "keyword.operator.assignment.php"
685
+ }
686
+ },
687
+ end: "(?=\\s*(?:,|\\)|/[/*]|\\#))",
688
+ patterns: [
689
+ {
690
+ include: "#parameter-default-types"
691
+ }
692
+ ]
693
+ }
694
+ ]
695
+ },
696
+ {
697
+ include: "#function-parameters"
698
+ }
699
+ ]
700
+ },
701
+ {
702
+ 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|serialize|unserialize))\n |(?:(&)?\\s*([a-zA-Z_\\x{7f}-\\x{7fffffff}][a-zA-Z0-9_\\x{7f}-\\x{7fffffff}]*))\n)\n\\s*(\\()",
703
+ beginCaptures: {
704
+ "1": {
705
+ patterns: [
706
+ {
707
+ match: "final|abstract|public|private|protected|static",
708
+ name: "storage.modifier.php"
709
+ }
710
+ ]
711
+ },
712
+ "2": {
713
+ name: "storage.type.function.php"
714
+ },
715
+ "3": {
716
+ name: "support.function.magic.php"
717
+ },
718
+ "4": {
719
+ name: "storage.modifier.reference.php"
720
+ },
721
+ "5": {
722
+ name: "entity.name.function.php"
723
+ },
724
+ "6": {
725
+ name: "punctuation.definition.parameters.begin.bracket.round.php"
726
+ }
727
+ },
728
+ contentName: "meta.function.parameters.php",
729
+ end: "(?xi)\n(\\)) (?: \\s* (:) \\s* (\n (?:\\?\\s*)? [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ | # nullable type\n [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ (?: \\s*[|&]\\s* [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+)+ # union type\n) )?\n(?=\\s*(?:{|/[/*]|\\#|$|;))",
730
+ endCaptures: {
731
+ "1": {
732
+ name: "punctuation.definition.parameters.end.bracket.round.php"
733
+ },
734
+ "2": {
735
+ name: "keyword.operator.return-value.php"
736
+ },
737
+ "3": {
738
+ patterns: [
739
+ {
740
+ match: "\\b(static)\\b",
741
+ name: "storage.type.php"
742
+ },
743
+ {
744
+ match: "\\b(noreturn)\\b",
745
+ name: "keyword.other.type.noreturn.php"
746
+ },
747
+ {
748
+ include: "#php-types"
749
+ }
750
+ ]
751
+ }
752
+ },
753
+ name: "meta.function.php",
754
+ patterns: [
755
+ {
756
+ include: "#function-parameters"
757
+ }
758
+ ]
759
+ },
760
+ {
761
+ match: "(?xi)\n((?:(?:public|private|protected|static|readonly)(?:\\s+|(?=\\?)))++) # At least one modifier\n(\n (?:\\?\\s*)? [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ | # nullable type\n [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ (?: \\s*[|&]\\s* [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+)+ # union type\n)?\n\\s+ ((\\$)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*) # Variable name",
762
+ captures: {
763
+ "1": {
764
+ patterns: [
765
+ {
766
+ match: "public|private|protected|static|readonly",
767
+ name: "storage.modifier.php"
768
+ }
769
+ ]
770
+ },
771
+ "2": {
772
+ patterns: [
773
+ {
774
+ include: "#php-types"
775
+ }
776
+ ]
777
+ },
778
+ "3": {
779
+ name: "variable.other.php"
780
+ },
781
+ "4": {
782
+ name: "punctuation.definition.variable.php"
783
+ }
784
+ }
785
+ },
786
+ {
787
+ include: "#invoke-call"
788
+ },
789
+ {
790
+ include: "#scope-resolution"
791
+ },
792
+ {
793
+ include: "#variables"
794
+ },
795
+ {
796
+ include: "#strings"
797
+ },
798
+ {
799
+ captures: {
800
+ "1": {
801
+ name: "support.function.construct.php"
802
+ },
803
+ "2": {
804
+ name: "punctuation.definition.array.begin.bracket.round.php"
805
+ },
806
+ "3": {
807
+ name: "punctuation.definition.array.end.bracket.round.php"
808
+ }
809
+ },
810
+ match: "(array)(\\()(\\))",
811
+ name: "meta.array.empty.php"
812
+ },
813
+ {
814
+ begin: "(array)\\s*(\\()",
815
+ beginCaptures: {
816
+ "1": {
817
+ name: "support.function.construct.php"
818
+ },
819
+ "2": {
820
+ name: "punctuation.definition.array.begin.bracket.round.php"
821
+ }
822
+ },
823
+ end: "\\)|(?=\\?>)",
824
+ endCaptures: {
825
+ "0": {
826
+ name: "punctuation.definition.array.end.bracket.round.php"
827
+ }
828
+ },
829
+ name: "meta.array.php",
830
+ patterns: [
831
+ {
832
+ include: "$self"
833
+ }
834
+ ]
835
+ },
836
+ {
837
+ match: "(?i)(\\()\\s*(array|real|double|float|int(?:eger)?|bool(?:ean)?|string|object|binary|unset)\\s*(\\))",
838
+ captures: {
839
+ "1": {
840
+ name: "punctuation.definition.storage-type.begin.bracket.round.php"
841
+ },
842
+ "2": {
843
+ name: "storage.type.php"
844
+ },
845
+ "3": {
846
+ name: "punctuation.definition.storage-type.end.bracket.round.php"
847
+ }
848
+ }
849
+ },
850
+ {
851
+ match: "(?i)\\b(array|real|double|float|int(eger)?|bool(ean)?|string|class|var|function|interface|trait|parent|self|object|mixed)\\b",
852
+ name: "storage.type.php"
853
+ },
854
+ {
855
+ match: "(?i)\\b(global|abstract|const|extends|implements|final|private|protected|public|static)\\b",
856
+ name: "storage.modifier.php"
857
+ },
858
+ {
859
+ include: "#object"
860
+ },
861
+ {
862
+ match: ";",
863
+ name: "punctuation.terminator.expression.php"
864
+ },
865
+ {
866
+ match: ":",
867
+ name: "punctuation.terminator.statement.php"
868
+ },
869
+ {
870
+ include: "#heredoc"
871
+ },
872
+ {
873
+ include: "#numbers"
874
+ },
875
+ {
876
+ match: "(?i)\\bclone\\b",
877
+ name: "keyword.other.clone.php"
878
+ },
879
+ {
880
+ match: "\\.\\.\\.",
881
+ name: "keyword.operator.spread.php"
882
+ },
883
+ {
884
+ match: "\\.=?",
885
+ name: "keyword.operator.string.php"
886
+ },
887
+ {
888
+ match: "=>",
889
+ name: "keyword.operator.key.php"
890
+ },
891
+ {
892
+ captures: {
893
+ "1": {
894
+ name: "keyword.operator.assignment.php"
895
+ },
896
+ "2": {
897
+ name: "storage.modifier.reference.php"
898
+ },
899
+ "3": {
900
+ name: "storage.modifier.reference.php"
901
+ }
902
+ },
903
+ match: "(?i)(\\=)(&)|(&)(?=[$a-z_])"
904
+ },
905
+ {
906
+ match: "@",
907
+ name: "keyword.operator.error-control.php"
908
+ },
909
+ {
910
+ match: "===|==|!==|!=|<>",
911
+ name: "keyword.operator.comparison.php"
912
+ },
913
+ {
914
+ match: "=|\\+=|\\-=|\\*\\*?=|/=|%=|&=|\\|=|\\^=|<<=|>>=|\\?\\?=",
915
+ name: "keyword.operator.assignment.php"
916
+ },
917
+ {
918
+ match: "<=>|<=|>=|<|>",
919
+ name: "keyword.operator.comparison.php"
920
+ },
921
+ {
922
+ match: "\\-\\-|\\+\\+",
923
+ name: "keyword.operator.increment-decrement.php"
924
+ },
925
+ {
926
+ match: "\\-|\\+|\\*\\*?|/|%",
927
+ name: "keyword.operator.arithmetic.php"
928
+ },
929
+ {
930
+ match: "(?i)(!|&&|\\|\\|)|\\b(and|or|xor|as)\\b",
931
+ name: "keyword.operator.logical.php"
932
+ },
933
+ {
934
+ include: "#function-call"
935
+ },
936
+ {
937
+ match: "<<|>>|~|\\^|&|\\|",
938
+ name: "keyword.operator.bitwise.php"
939
+ },
940
+ {
941
+ begin: "(?i)\\b(instanceof)\\s+(?=[\\\\$a-z_])",
942
+ beginCaptures: {
943
+ "1": {
944
+ name: "keyword.operator.type.php"
945
+ }
946
+ },
947
+ end: "(?i)(?=[^\\\\$a-z0-9_\\x{7f}-\\x{7fffffff}])",
948
+ patterns: [
949
+ {
950
+ include: "#class-name"
951
+ },
952
+ {
953
+ include: "#variable-name"
954
+ }
955
+ ]
956
+ },
957
+ {
958
+ include: "#instantiation"
959
+ },
960
+ {
961
+ captures: {
962
+ "1": {
963
+ name: "keyword.control.goto.php"
964
+ },
965
+ "2": {
966
+ name: "support.other.php"
967
+ }
968
+ },
969
+ match: "(?i)(goto)\\s+([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)"
970
+ },
971
+ {
972
+ captures: {
973
+ "1": {
974
+ name: "entity.name.goto-label.php"
975
+ }
976
+ },
977
+ match: "(?i)^\\s*([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)\\s*:(?!:)"
978
+ },
979
+ {
980
+ include: "#string-backtick"
981
+ },
982
+ {
983
+ include: "#ternary_shorthand"
984
+ },
985
+ {
986
+ include: "#null_coalescing"
987
+ },
988
+ {
989
+ include: "#ternary_expression"
990
+ },
991
+ {
992
+ begin: "{",
993
+ beginCaptures: {
994
+ "0": {
995
+ name: "punctuation.definition.begin.bracket.curly.php"
996
+ }
997
+ },
998
+ end: "}|(?=\\?>)",
999
+ endCaptures: {
1000
+ "0": {
1001
+ name: "punctuation.definition.end.bracket.curly.php"
1002
+ }
1003
+ },
1004
+ patterns: [
1005
+ {
1006
+ include: "$self"
1007
+ }
1008
+ ]
1009
+ },
1010
+ {
1011
+ begin: "\\[",
1012
+ beginCaptures: {
1013
+ "0": {
1014
+ name: "punctuation.section.array.begin.php"
1015
+ }
1016
+ },
1017
+ end: "\\]|(?=\\?>)",
1018
+ endCaptures: {
1019
+ "0": {
1020
+ name: "punctuation.section.array.end.php"
1021
+ }
1022
+ },
1023
+ patterns: [
1024
+ {
1025
+ include: "$self"
1026
+ }
1027
+ ]
1028
+ },
1029
+ {
1030
+ begin: "\\(",
1031
+ beginCaptures: {
1032
+ "0": {
1033
+ name: "punctuation.definition.begin.bracket.round.php"
1034
+ }
1035
+ },
1036
+ end: "\\)|(?=\\?>)",
1037
+ endCaptures: {
1038
+ "0": {
1039
+ name: "punctuation.definition.end.bracket.round.php"
1040
+ }
1041
+ },
1042
+ patterns: [
1043
+ {
1044
+ include: "$self"
1045
+ }
1046
+ ]
1047
+ },
1048
+ {
1049
+ include: "#constants"
1050
+ },
1051
+ {
1052
+ match: ",",
1053
+ name: "punctuation.separator.delimiter.php"
1054
+ }
1055
+ ];
1056
+ var repository = {
1057
+ "attribute-name": {
1058
+ patterns: [
1059
+ {
1060
+ begin: "(?i)(?=\\\\?[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*\\\\)",
1061
+ end: "(?xi)\n( [a-z_\\x{7f}-\\x{7fffffff}] [a-z0-9_\\x{7f}-\\x{7fffffff}]* )?\n(?![a-z0-9_\\x{7f}-\\x{7fffffff}\\\\])",
1062
+ endCaptures: {
1063
+ "1": {
1064
+ name: "support.attribute.php"
1065
+ }
1066
+ },
1067
+ patterns: [
1068
+ {
1069
+ include: "#namespace"
1070
+ }
1071
+ ]
1072
+ },
1073
+ {
1074
+ match: "(?xi)\n(\\\\)?\\b(Attribute)\\b",
1075
+ name: "support.attribute.builtin.php",
1076
+ captures: {
1077
+ "1": {
1078
+ name: "punctuation.separator.inheritance.php"
1079
+ }
1080
+ }
1081
+ },
1082
+ {
1083
+ begin: "(?i)(?=[\\\\a-z_\\x{7f}-\\x{7fffffff}])",
1084
+ end: "(?xi)\n( [a-z_\\x{7f}-\\x{7fffffff}] [a-z0-9_\\x{7f}-\\x{7fffffff}]* )?\n(?![a-z0-9_\\x{7f}-\\x{7fffffff}\\\\])",
1085
+ endCaptures: {
1086
+ "1": {
1087
+ name: "support.attribute.php"
1088
+ }
1089
+ },
1090
+ patterns: [
1091
+ {
1092
+ include: "#namespace"
1093
+ }
1094
+ ]
1095
+ }
1096
+ ]
1097
+ },
1098
+ attribute: {
1099
+ begin: "\\#\\[",
1100
+ end: "\\]",
1101
+ name: "meta.attribute.php",
1102
+ patterns: [
1103
+ {
1104
+ match: ",",
1105
+ name: "punctuation.separator.delimiter.php"
1106
+ },
1107
+ {
1108
+ begin: "([a-zA-Z0-9_\\x{7f}-\\x{7fffffff}\\\\]+)\\s*(\\()",
1109
+ beginCaptures: {
1110
+ "1": {
1111
+ patterns: [
1112
+ {
1113
+ include: "#attribute-name"
1114
+ }
1115
+ ]
1116
+ },
1117
+ "2": {
1118
+ name: "punctuation.definition.arguments.begin.bracket.round.php"
1119
+ }
1120
+ },
1121
+ end: "\\)",
1122
+ endCaptures: {
1123
+ "0": {
1124
+ name: "punctuation.definition.arguments.end.bracket.round.php"
1125
+ }
1126
+ },
1127
+ patterns: [
1128
+ {
1129
+ include: "#named-arguments"
1130
+ },
1131
+ {
1132
+ include: "$self"
1133
+ }
1134
+ ]
1135
+ },
1136
+ {
1137
+ include: "#attribute-name"
1138
+ }
1139
+ ]
1140
+ },
1141
+ "class-builtin": {
1142
+ patterns: [
1143
+ {
1144
+ match: "(?xi)\n(\\\\)?\\b\n(Attribute|(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",
1145
+ name: "support.class.builtin.php",
1146
+ captures: {
1147
+ "1": {
1148
+ name: "punctuation.separator.inheritance.php"
1149
+ }
1150
+ }
1151
+ }
1152
+ ]
1153
+ },
1154
+ "class-name": {
1155
+ patterns: [
1156
+ {
1157
+ begin: "(?i)(?=\\\\?[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*\\\\)",
1158
+ end: "(?xi)\n( [a-z_\\x{7f}-\\x{7fffffff}] [a-z0-9_\\x{7f}-\\x{7fffffff}]* )?\n(?![a-z0-9_\\x{7f}-\\x{7fffffff}\\\\])",
1159
+ endCaptures: {
1160
+ "1": {
1161
+ name: "support.class.php"
1162
+ }
1163
+ },
1164
+ patterns: [
1165
+ {
1166
+ include: "#namespace"
1167
+ }
1168
+ ]
1169
+ },
1170
+ {
1171
+ include: "#class-builtin"
1172
+ },
1173
+ {
1174
+ begin: "(?i)(?=[\\\\a-z_\\x{7f}-\\x{7fffffff}])",
1175
+ end: "(?xi)\n( [a-z_\\x{7f}-\\x{7fffffff}] [a-z0-9_\\x{7f}-\\x{7fffffff}]* )?\n(?![a-z0-9_\\x{7f}-\\x{7fffffff}\\\\])",
1176
+ endCaptures: {
1177
+ "1": {
1178
+ name: "support.class.php"
1179
+ }
1180
+ },
1181
+ patterns: [
1182
+ {
1183
+ include: "#namespace"
1184
+ }
1185
+ ]
1186
+ }
1187
+ ]
1188
+ },
1189
+ comments: {
1190
+ patterns: [
1191
+ {
1192
+ begin: "/\\*\\*(?=\\s)",
1193
+ beginCaptures: {
1194
+ "0": {
1195
+ name: "punctuation.definition.comment.php"
1196
+ }
1197
+ },
1198
+ end: "\\*/",
1199
+ endCaptures: {
1200
+ "0": {
1201
+ name: "punctuation.definition.comment.php"
1202
+ }
1203
+ },
1204
+ name: "comment.block.documentation.phpdoc.php",
1205
+ patterns: [
1206
+ {
1207
+ include: "#php_doc"
1208
+ }
1209
+ ]
1210
+ },
1211
+ {
1212
+ begin: "/\\*",
1213
+ captures: {
1214
+ "0": {
1215
+ name: "punctuation.definition.comment.php"
1216
+ }
1217
+ },
1218
+ end: "\\*/",
1219
+ name: "comment.block.php"
1220
+ },
1221
+ {
1222
+ begin: "(^\\s+)?(?=//)",
1223
+ beginCaptures: {
1224
+ "1": {
1225
+ name: "punctuation.whitespace.comment.leading.php"
1226
+ }
1227
+ },
1228
+ end: "(?!\\G)",
1229
+ patterns: [
1230
+ {
1231
+ begin: "//",
1232
+ beginCaptures: {
1233
+ "0": {
1234
+ name: "punctuation.definition.comment.php"
1235
+ }
1236
+ },
1237
+ end: "\\n|(?=\\?>)",
1238
+ name: "comment.line.double-slash.php"
1239
+ }
1240
+ ]
1241
+ },
1242
+ {
1243
+ begin: "(^\\s+)?(?=#)(?!#\\[)",
1244
+ beginCaptures: {
1245
+ "1": {
1246
+ name: "punctuation.whitespace.comment.leading.php"
1247
+ }
1248
+ },
1249
+ end: "(?!\\G)",
1250
+ patterns: [
1251
+ {
1252
+ begin: "#",
1253
+ beginCaptures: {
1254
+ "0": {
1255
+ name: "punctuation.definition.comment.php"
1256
+ }
1257
+ },
1258
+ end: "\\n|(?=\\?>)",
1259
+ name: "comment.line.number-sign.php"
1260
+ }
1261
+ ]
1262
+ }
1263
+ ]
1264
+ },
1265
+ constants: {
1266
+ patterns: [
1267
+ {
1268
+ match: "(?i)\\b(TRUE|FALSE|NULL|__(FILE|DIR|FUNCTION|CLASS|METHOD|LINE|NAMESPACE)__|ON|OFF|YES|NO|NL|BR|TAB)\\b",
1269
+ name: "constant.language.php"
1270
+ },
1271
+ {
1272
+ 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",
1273
+ name: "support.constant.core.php",
1274
+ captures: {
1275
+ "1": {
1276
+ name: "punctuation.separator.inheritance.php"
1277
+ }
1278
+ }
1279
+ },
1280
+ {
1281
+ 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",
1282
+ name: "support.constant.std.php",
1283
+ captures: {
1284
+ "1": {
1285
+ name: "punctuation.separator.inheritance.php"
1286
+ }
1287
+ }
1288
+ },
1289
+ {
1290
+ 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",
1291
+ name: "support.constant.ext.php",
1292
+ captures: {
1293
+ "1": {
1294
+ name: "punctuation.separator.inheritance.php"
1295
+ }
1296
+ }
1297
+ },
1298
+ {
1299
+ 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",
1300
+ name: "support.constant.parser-token.php",
1301
+ captures: {
1302
+ "1": {
1303
+ name: "punctuation.separator.inheritance.php"
1304
+ }
1305
+ }
1306
+ },
1307
+ {
1308
+ match: "(?i)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*",
1309
+ name: "constant.other.php"
1310
+ }
1311
+ ]
1312
+ },
1313
+ "function-parameters": {
1314
+ patterns: [
1315
+ {
1316
+ include: "#attribute"
1317
+ },
1318
+ {
1319
+ include: "#comments"
1320
+ },
1321
+ {
1322
+ match: ",",
1323
+ name: "punctuation.separator.delimiter.php"
1324
+ },
1325
+ {
1326
+ match: "(?xi)\n(?: (\n (?:\\?\\s*)? [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ | # nullable type\n [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ (?: \\s*[|&]\\s* [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+)+ # union type\n) \\s+ )?\n((?:(&)\\s*)?(\\.\\.\\.)(\\$)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*) # Variable name with possible reference\n(?=\\s*(?:,|\\)|/[/*]|\\#|$)) # A closing parentheses (end of argument list) or a comma or a comment",
1327
+ captures: {
1328
+ "1": {
1329
+ patterns: [
1330
+ {
1331
+ include: "#php-types"
1332
+ }
1333
+ ]
1334
+ },
1335
+ "2": {
1336
+ name: "variable.other.php"
1337
+ },
1338
+ "3": {
1339
+ name: "storage.modifier.reference.php"
1340
+ },
1341
+ "4": {
1342
+ name: "keyword.operator.variadic.php"
1343
+ },
1344
+ "5": {
1345
+ name: "punctuation.definition.variable.php"
1346
+ }
1347
+ },
1348
+ name: "meta.function.parameter.variadic.php"
1349
+ },
1350
+ {
1351
+ begin: "(?xi)\n(\n (?:\\?\\s*)? [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ | # nullable type\n [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+ (?: \\s*[|&]\\s* [a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+)+ # union type\n)\n\\s+ ((?:(&)\\s*)?(\\$)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*) # Variable name with possible reference",
1352
+ beginCaptures: {
1353
+ "1": {
1354
+ patterns: [
1355
+ {
1356
+ include: "#php-types"
1357
+ }
1358
+ ]
1359
+ },
1360
+ "2": {
1361
+ name: "variable.other.php"
1362
+ },
1363
+ "3": {
1364
+ name: "storage.modifier.reference.php"
1365
+ },
1366
+ "4": {
1367
+ name: "punctuation.definition.variable.php"
1368
+ }
1369
+ },
1370
+ end: "(?=\\s*(?:,|\\)|/[/*]|\\#))",
1371
+ name: "meta.function.parameter.typehinted.php",
1372
+ patterns: [
1373
+ {
1374
+ begin: "=",
1375
+ beginCaptures: {
1376
+ "0": {
1377
+ name: "keyword.operator.assignment.php"
1378
+ }
1379
+ },
1380
+ end: "(?=\\s*(?:,|\\)|/[/*]|\\#))",
1381
+ patterns: [
1382
+ {
1383
+ include: "#parameter-default-types"
1384
+ }
1385
+ ]
1386
+ }
1387
+ ]
1388
+ },
1389
+ {
1390
+ match: "(?xi)\n((?:(&)\\s*)?(\\$)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*) # Variable name with possible reference\n(?=\\s*(?:,|\\)|/[/*]|\\#|$)) # A closing parentheses (end of argument list) or a comma or a comment",
1391
+ captures: {
1392
+ "1": {
1393
+ name: "variable.other.php"
1394
+ },
1395
+ "2": {
1396
+ name: "storage.modifier.reference.php"
1397
+ },
1398
+ "3": {
1399
+ name: "punctuation.definition.variable.php"
1400
+ }
1401
+ },
1402
+ name: "meta.function.parameter.no-default.php"
1403
+ },
1404
+ {
1405
+ begin: "(?xi)\n((?:(&)\\s*)?(\\$)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*) # Variable name with possible reference\n\\s*(=)\\s*",
1406
+ beginCaptures: {
1407
+ "1": {
1408
+ name: "variable.other.php"
1409
+ },
1410
+ "2": {
1411
+ name: "storage.modifier.reference.php"
1412
+ },
1413
+ "3": {
1414
+ name: "punctuation.definition.variable.php"
1415
+ },
1416
+ "4": {
1417
+ name: "keyword.operator.assignment.php"
1418
+ }
1419
+ },
1420
+ end: "(?=\\s*(?:,|\\)|/[/*]|\\#))",
1421
+ name: "meta.function.parameter.default.php",
1422
+ patterns: [
1423
+ {
1424
+ include: "#parameter-default-types"
1425
+ }
1426
+ ]
1427
+ }
1428
+ ]
1429
+ },
1430
+ "named-arguments": {
1431
+ match: "(?i)(?<=^|\\(|,)\\s*([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)\\s*(:)(?!:)",
1432
+ captures: {
1433
+ "1": {
1434
+ name: "entity.name.variable.parameter.php"
1435
+ },
1436
+ "2": {
1437
+ name: "punctuation.separator.colon.php"
1438
+ }
1439
+ }
1440
+ },
1441
+ "function-call": {
1442
+ patterns: [
1443
+ {
1444
+ begin: "(?x)\n(\n \\\\?(?<![a-zA-Z0-9_\\x{7f}-\\x{7fffffff}]) # Optional root namespace\n [a-zA-Z_\\x{7f}-\\x{7fffffff}][a-zA-Z0-9_\\x{7f}-\\x{7fffffff}]* # First namespace\n (?:\\\\[a-zA-Z_\\x{7f}-\\x{7fffffff}][a-zA-Z0-9_\\x{7f}-\\x{7fffffff}]*)+ # Additional namespaces\n)\\s*(\\()",
1445
+ beginCaptures: {
1446
+ "1": {
1447
+ patterns: [
1448
+ {
1449
+ include: "#namespace"
1450
+ },
1451
+ {
1452
+ match: "(?i)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*",
1453
+ name: "entity.name.function.php"
1454
+ }
1455
+ ]
1456
+ },
1457
+ "2": {
1458
+ name: "punctuation.definition.arguments.begin.bracket.round.php"
1459
+ }
1460
+ },
1461
+ end: "\\)|(?=\\?>)",
1462
+ endCaptures: {
1463
+ "0": {
1464
+ name: "punctuation.definition.arguments.end.bracket.round.php"
1465
+ }
1466
+ },
1467
+ name: "meta.function-call.php",
1468
+ patterns: [
1469
+ {
1470
+ include: "#named-arguments"
1471
+ },
1472
+ {
1473
+ include: "$self"
1474
+ }
1475
+ ]
1476
+ },
1477
+ {
1478
+ begin: "(\\\\)?(?<![a-zA-Z0-9_\\x{7f}-\\x{7fffffff}])([a-zA-Z_\\x{7f}-\\x{7fffffff}][a-zA-Z0-9_\\x{7f}-\\x{7fffffff}]*)\\s*(\\()",
1479
+ beginCaptures: {
1480
+ "1": {
1481
+ patterns: [
1482
+ {
1483
+ include: "#namespace"
1484
+ }
1485
+ ]
1486
+ },
1487
+ "2": {
1488
+ patterns: [
1489
+ {
1490
+ include: "#support"
1491
+ },
1492
+ {
1493
+ match: "(?i)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*",
1494
+ name: "entity.name.function.php"
1495
+ }
1496
+ ]
1497
+ },
1498
+ "3": {
1499
+ name: "punctuation.definition.arguments.begin.bracket.round.php"
1500
+ }
1501
+ },
1502
+ end: "\\)|(?=\\?>)",
1503
+ endCaptures: {
1504
+ "0": {
1505
+ name: "punctuation.definition.arguments.end.bracket.round.php"
1506
+ }
1507
+ },
1508
+ name: "meta.function-call.php",
1509
+ patterns: [
1510
+ {
1511
+ include: "#named-arguments"
1512
+ },
1513
+ {
1514
+ include: "$self"
1515
+ }
1516
+ ]
1517
+ },
1518
+ {
1519
+ match: "(?i)\\b(print|echo)\\b",
1520
+ name: "support.function.construct.output.php"
1521
+ }
1522
+ ]
1523
+ },
1524
+ heredoc: {
1525
+ patterns: [
1526
+ {
1527
+ begin: "(?i)(?=<<<\\s*(\"?)([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)(\\1)\\s*$)",
1528
+ end: "(?!\\G)",
1529
+ name: "string.unquoted.heredoc.php",
1530
+ patterns: [
1531
+ {
1532
+ include: "#heredoc_interior"
1533
+ }
1534
+ ]
1535
+ },
1536
+ {
1537
+ begin: "(?=<<<\\s*'([a-zA-Z_]+[a-zA-Z0-9_]*)'\\s*$)",
1538
+ end: "(?!\\G)",
1539
+ name: "string.unquoted.nowdoc.php",
1540
+ patterns: [
1541
+ {
1542
+ include: "#nowdoc_interior"
1543
+ }
1544
+ ]
1545
+ }
1546
+ ]
1547
+ },
1548
+ heredoc_interior: {
1549
+ patterns: [
1550
+ {
1551
+ begin: "(<<<)\\s*(\"?)(HTML)(\\2)(\\s*)$",
1552
+ beginCaptures: {
1553
+ "0": {
1554
+ name: "punctuation.section.embedded.begin.php"
1555
+ },
1556
+ "1": {
1557
+ name: "punctuation.definition.string.php"
1558
+ },
1559
+ "3": {
1560
+ name: "keyword.operator.heredoc.php"
1561
+ },
1562
+ "5": {
1563
+ name: "invalid.illegal.trailing-whitespace.php"
1564
+ }
1565
+ },
1566
+ contentName: "text.html",
1567
+ end: "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
1568
+ endCaptures: {
1569
+ "0": {
1570
+ name: "punctuation.section.embedded.end.php"
1571
+ },
1572
+ "1": {
1573
+ name: "keyword.operator.heredoc.php"
1574
+ }
1575
+ },
1576
+ name: "meta.embedded.html",
1577
+ patterns: [
1578
+ {
1579
+ include: "#interpolation"
1580
+ },
1581
+ {
1582
+ include: "text.html.basic"
1583
+ }
1584
+ ]
1585
+ },
1586
+ {
1587
+ begin: "(<<<)\\s*(\"?)(XML)(\\2)(\\s*)$",
1588
+ beginCaptures: {
1589
+ "0": {
1590
+ name: "punctuation.section.embedded.begin.php"
1591
+ },
1592
+ "1": {
1593
+ name: "punctuation.definition.string.php"
1594
+ },
1595
+ "3": {
1596
+ name: "keyword.operator.heredoc.php"
1597
+ },
1598
+ "5": {
1599
+ name: "invalid.illegal.trailing-whitespace.php"
1600
+ }
1601
+ },
1602
+ contentName: "text.xml",
1603
+ end: "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
1604
+ endCaptures: {
1605
+ "0": {
1606
+ name: "punctuation.section.embedded.end.php"
1607
+ },
1608
+ "1": {
1609
+ name: "keyword.operator.heredoc.php"
1610
+ }
1611
+ },
1612
+ name: "meta.embedded.xml",
1613
+ patterns: [
1614
+ {
1615
+ include: "#interpolation"
1616
+ },
1617
+ {
1618
+ include: "text.xml"
1619
+ }
1620
+ ]
1621
+ },
1622
+ {
1623
+ begin: "(<<<)\\s*(\"?)(SQL)(\\2)(\\s*)$",
1624
+ beginCaptures: {
1625
+ "0": {
1626
+ name: "punctuation.section.embedded.begin.php"
1627
+ },
1628
+ "1": {
1629
+ name: "punctuation.definition.string.php"
1630
+ },
1631
+ "3": {
1632
+ name: "keyword.operator.heredoc.php"
1633
+ },
1634
+ "5": {
1635
+ name: "invalid.illegal.trailing-whitespace.php"
1636
+ }
1637
+ },
1638
+ contentName: "source.sql",
1639
+ end: "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
1640
+ endCaptures: {
1641
+ "0": {
1642
+ name: "punctuation.section.embedded.end.php"
1643
+ },
1644
+ "1": {
1645
+ name: "keyword.operator.heredoc.php"
1646
+ }
1647
+ },
1648
+ name: "meta.embedded.sql",
1649
+ patterns: [
1650
+ {
1651
+ include: "#interpolation"
1652
+ },
1653
+ {
1654
+ include: "source.sql"
1655
+ }
1656
+ ]
1657
+ },
1658
+ {
1659
+ begin: "(<<<)\\s*(\"?)(JAVASCRIPT|JS)(\\2)(\\s*)$",
1660
+ beginCaptures: {
1661
+ "0": {
1662
+ name: "punctuation.section.embedded.begin.php"
1663
+ },
1664
+ "1": {
1665
+ name: "punctuation.definition.string.php"
1666
+ },
1667
+ "3": {
1668
+ name: "keyword.operator.heredoc.php"
1669
+ },
1670
+ "5": {
1671
+ name: "invalid.illegal.trailing-whitespace.php"
1672
+ }
1673
+ },
1674
+ contentName: "source.js",
1675
+ end: "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
1676
+ endCaptures: {
1677
+ "0": {
1678
+ name: "punctuation.section.embedded.end.php"
1679
+ },
1680
+ "1": {
1681
+ name: "keyword.operator.heredoc.php"
1682
+ }
1683
+ },
1684
+ name: "meta.embedded.js",
1685
+ patterns: [
1686
+ {
1687
+ include: "#interpolation"
1688
+ },
1689
+ {
1690
+ include: "source.js"
1691
+ }
1692
+ ]
1693
+ },
1694
+ {
1695
+ begin: "(<<<)\\s*(\"?)(JSON)(\\2)(\\s*)$",
1696
+ beginCaptures: {
1697
+ "0": {
1698
+ name: "punctuation.section.embedded.begin.php"
1699
+ },
1700
+ "1": {
1701
+ name: "punctuation.definition.string.php"
1702
+ },
1703
+ "3": {
1704
+ name: "keyword.operator.heredoc.php"
1705
+ },
1706
+ "5": {
1707
+ name: "invalid.illegal.trailing-whitespace.php"
1708
+ }
1709
+ },
1710
+ contentName: "source.json",
1711
+ end: "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
1712
+ endCaptures: {
1713
+ "0": {
1714
+ name: "punctuation.section.embedded.end.php"
1715
+ },
1716
+ "1": {
1717
+ name: "keyword.operator.heredoc.php"
1718
+ }
1719
+ },
1720
+ name: "meta.embedded.json",
1721
+ patterns: [
1722
+ {
1723
+ include: "#interpolation"
1724
+ },
1725
+ {
1726
+ include: "source.json"
1727
+ }
1728
+ ]
1729
+ },
1730
+ {
1731
+ begin: "(<<<)\\s*(\"?)(CSS)(\\2)(\\s*)$",
1732
+ beginCaptures: {
1733
+ "0": {
1734
+ name: "punctuation.section.embedded.begin.php"
1735
+ },
1736
+ "1": {
1737
+ name: "punctuation.definition.string.php"
1738
+ },
1739
+ "3": {
1740
+ name: "keyword.operator.heredoc.php"
1741
+ },
1742
+ "5": {
1743
+ name: "invalid.illegal.trailing-whitespace.php"
1744
+ }
1745
+ },
1746
+ contentName: "source.css",
1747
+ end: "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
1748
+ endCaptures: {
1749
+ "0": {
1750
+ name: "punctuation.section.embedded.end.php"
1751
+ },
1752
+ "1": {
1753
+ name: "keyword.operator.heredoc.php"
1754
+ }
1755
+ },
1756
+ name: "meta.embedded.css",
1757
+ patterns: [
1758
+ {
1759
+ include: "#interpolation"
1760
+ },
1761
+ {
1762
+ include: "source.css"
1763
+ }
1764
+ ]
1765
+ },
1766
+ {
1767
+ begin: "(<<<)\\s*(\"?)(REGEXP?)(\\2)(\\s*)$",
1768
+ beginCaptures: {
1769
+ "0": {
1770
+ name: "punctuation.section.embedded.begin.php"
1771
+ },
1772
+ "1": {
1773
+ name: "punctuation.definition.string.php"
1774
+ },
1775
+ "3": {
1776
+ name: "keyword.operator.heredoc.php"
1777
+ },
1778
+ "5": {
1779
+ name: "invalid.illegal.trailing-whitespace.php"
1780
+ }
1781
+ },
1782
+ contentName: "string.regexp.heredoc.php",
1783
+ end: "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
1784
+ endCaptures: {
1785
+ "0": {
1786
+ name: "punctuation.section.embedded.end.php"
1787
+ },
1788
+ "1": {
1789
+ name: "keyword.operator.heredoc.php"
1790
+ }
1791
+ },
1792
+ patterns: [
1793
+ {
1794
+ include: "#interpolation"
1795
+ },
1796
+ {
1797
+ match: "(\\\\){1,2}[.$^\\[\\]{}]",
1798
+ name: "constant.character.escape.regex.php"
1799
+ },
1800
+ {
1801
+ captures: {
1802
+ "1": {
1803
+ name: "punctuation.definition.arbitrary-repitition.php"
1804
+ },
1805
+ "3": {
1806
+ name: "punctuation.definition.arbitrary-repitition.php"
1807
+ }
1808
+ },
1809
+ match: "({)\\d+(,\\d+)?(})",
1810
+ name: "string.regexp.arbitrary-repitition.php"
1811
+ },
1812
+ {
1813
+ begin: "\\[(?:\\^?\\])?",
1814
+ captures: {
1815
+ "0": {
1816
+ name: "punctuation.definition.character-class.php"
1817
+ }
1818
+ },
1819
+ end: "\\]",
1820
+ name: "string.regexp.character-class.php",
1821
+ patterns: [
1822
+ {
1823
+ match: "\\\\[\\\\'\\[\\]]",
1824
+ name: "constant.character.escape.php"
1825
+ }
1826
+ ]
1827
+ },
1828
+ {
1829
+ match: "[$^+*]",
1830
+ name: "keyword.operator.regexp.php"
1831
+ },
1832
+ {
1833
+ begin: "(?i)(?<=^|\\s)(#)\\s(?=[[a-z0-9_\\x{7f}-\\x{7fffffff},. \\t?!-][^\\x{00}-\\x{7f}]]*$)",
1834
+ beginCaptures: {
1835
+ "1": {
1836
+ name: "punctuation.definition.comment.php"
1837
+ }
1838
+ },
1839
+ end: "$",
1840
+ endCaptures: {
1841
+ "0": {
1842
+ name: "punctuation.definition.comment.php"
1843
+ }
1844
+ },
1845
+ name: "comment.line.number-sign.php"
1846
+ }
1847
+ ]
1848
+ },
1849
+ {
1850
+ begin: "(?i)(<<<)\\s*(\"?)([a-z_\\x{7f}-\\x{7fffffff}]+[a-z0-9_\\x{7f}-\\x{7fffffff}]*)(\\2)(\\s*)",
1851
+ beginCaptures: {
1852
+ "1": {
1853
+ name: "punctuation.definition.string.php"
1854
+ },
1855
+ "3": {
1856
+ name: "keyword.operator.heredoc.php"
1857
+ },
1858
+ "5": {
1859
+ name: "invalid.illegal.trailing-whitespace.php"
1860
+ }
1861
+ },
1862
+ end: "^\\s*(\\3)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
1863
+ endCaptures: {
1864
+ "1": {
1865
+ name: "keyword.operator.heredoc.php"
1866
+ }
1867
+ },
1868
+ patterns: [
1869
+ {
1870
+ include: "#interpolation"
1871
+ }
1872
+ ]
1873
+ }
1874
+ ]
1875
+ },
1876
+ nowdoc_interior: {
1877
+ patterns: [
1878
+ {
1879
+ begin: "(<<<)\\s*'(HTML)'(\\s*)$",
1880
+ beginCaptures: {
1881
+ "0": {
1882
+ name: "punctuation.section.embedded.begin.php"
1883
+ },
1884
+ "1": {
1885
+ name: "punctuation.definition.string.php"
1886
+ },
1887
+ "2": {
1888
+ name: "keyword.operator.nowdoc.php"
1889
+ },
1890
+ "3": {
1891
+ name: "invalid.illegal.trailing-whitespace.php"
1892
+ }
1893
+ },
1894
+ contentName: "text.html",
1895
+ end: "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
1896
+ endCaptures: {
1897
+ "0": {
1898
+ name: "punctuation.section.embedded.end.php"
1899
+ },
1900
+ "1": {
1901
+ name: "keyword.operator.nowdoc.php"
1902
+ }
1903
+ },
1904
+ name: "meta.embedded.html",
1905
+ patterns: [
1906
+ {
1907
+ include: "text.html.basic"
1908
+ }
1909
+ ]
1910
+ },
1911
+ {
1912
+ begin: "(<<<)\\s*'(XML)'(\\s*)$",
1913
+ beginCaptures: {
1914
+ "0": {
1915
+ name: "punctuation.section.embedded.begin.php"
1916
+ },
1917
+ "1": {
1918
+ name: "punctuation.definition.string.php"
1919
+ },
1920
+ "2": {
1921
+ name: "keyword.operator.nowdoc.php"
1922
+ },
1923
+ "3": {
1924
+ name: "invalid.illegal.trailing-whitespace.php"
1925
+ }
1926
+ },
1927
+ contentName: "text.xml",
1928
+ end: "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
1929
+ endCaptures: {
1930
+ "0": {
1931
+ name: "punctuation.section.embedded.end.php"
1932
+ },
1933
+ "1": {
1934
+ name: "keyword.operator.nowdoc.php"
1935
+ }
1936
+ },
1937
+ name: "meta.embedded.xml",
1938
+ patterns: [
1939
+ {
1940
+ include: "text.xml"
1941
+ }
1942
+ ]
1943
+ },
1944
+ {
1945
+ begin: "(<<<)\\s*'(SQL)'(\\s*)$",
1946
+ beginCaptures: {
1947
+ "0": {
1948
+ name: "punctuation.section.embedded.begin.php"
1949
+ },
1950
+ "1": {
1951
+ name: "punctuation.definition.string.php"
1952
+ },
1953
+ "2": {
1954
+ name: "keyword.operator.nowdoc.php"
1955
+ },
1956
+ "3": {
1957
+ name: "invalid.illegal.trailing-whitespace.php"
1958
+ }
1959
+ },
1960
+ contentName: "source.sql",
1961
+ end: "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
1962
+ endCaptures: {
1963
+ "0": {
1964
+ name: "punctuation.section.embedded.end.php"
1965
+ },
1966
+ "1": {
1967
+ name: "keyword.operator.nowdoc.php"
1968
+ }
1969
+ },
1970
+ name: "meta.embedded.sql",
1971
+ patterns: [
1972
+ {
1973
+ include: "source.sql"
1974
+ }
1975
+ ]
1976
+ },
1977
+ {
1978
+ begin: "(<<<)\\s*'(JAVASCRIPT|JS)'(\\s*)$",
1979
+ beginCaptures: {
1980
+ "0": {
1981
+ name: "punctuation.section.embedded.begin.php"
1982
+ },
1983
+ "1": {
1984
+ name: "punctuation.definition.string.php"
1985
+ },
1986
+ "2": {
1987
+ name: "keyword.operator.nowdoc.php"
1988
+ },
1989
+ "3": {
1990
+ name: "invalid.illegal.trailing-whitespace.php"
1991
+ }
1992
+ },
1993
+ contentName: "source.js",
1994
+ end: "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
1995
+ endCaptures: {
1996
+ "0": {
1997
+ name: "punctuation.section.embedded.end.php"
1998
+ },
1999
+ "1": {
2000
+ name: "keyword.operator.nowdoc.php"
2001
+ }
2002
+ },
2003
+ name: "meta.embedded.js",
2004
+ patterns: [
2005
+ {
2006
+ include: "source.js"
2007
+ }
2008
+ ]
2009
+ },
2010
+ {
2011
+ begin: "(<<<)\\s*'(JSON)'(\\s*)$",
2012
+ beginCaptures: {
2013
+ "0": {
2014
+ name: "punctuation.section.embedded.begin.php"
2015
+ },
2016
+ "1": {
2017
+ name: "punctuation.definition.string.php"
2018
+ },
2019
+ "2": {
2020
+ name: "keyword.operator.nowdoc.php"
2021
+ },
2022
+ "3": {
2023
+ name: "invalid.illegal.trailing-whitespace.php"
2024
+ }
2025
+ },
2026
+ contentName: "source.json",
2027
+ end: "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
2028
+ endCaptures: {
2029
+ "0": {
2030
+ name: "punctuation.section.embedded.end.php"
2031
+ },
2032
+ "1": {
2033
+ name: "keyword.operator.nowdoc.php"
2034
+ }
2035
+ },
2036
+ name: "meta.embedded.json",
2037
+ patterns: [
2038
+ {
2039
+ include: "source.json"
2040
+ }
2041
+ ]
2042
+ },
2043
+ {
2044
+ begin: "(<<<)\\s*'(CSS)'(\\s*)$",
2045
+ beginCaptures: {
2046
+ "0": {
2047
+ name: "punctuation.section.embedded.begin.php"
2048
+ },
2049
+ "1": {
2050
+ name: "punctuation.definition.string.php"
2051
+ },
2052
+ "2": {
2053
+ name: "keyword.operator.nowdoc.php"
2054
+ },
2055
+ "3": {
2056
+ name: "invalid.illegal.trailing-whitespace.php"
2057
+ }
2058
+ },
2059
+ contentName: "source.css",
2060
+ end: "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
2061
+ endCaptures: {
2062
+ "0": {
2063
+ name: "punctuation.section.embedded.end.php"
2064
+ },
2065
+ "1": {
2066
+ name: "keyword.operator.nowdoc.php"
2067
+ }
2068
+ },
2069
+ name: "meta.embedded.css",
2070
+ patterns: [
2071
+ {
2072
+ include: "source.css"
2073
+ }
2074
+ ]
2075
+ },
2076
+ {
2077
+ begin: "(<<<)\\s*'(REGEXP?)'(\\s*)$",
2078
+ beginCaptures: {
2079
+ "0": {
2080
+ name: "punctuation.section.embedded.begin.php"
2081
+ },
2082
+ "1": {
2083
+ name: "punctuation.definition.string.php"
2084
+ },
2085
+ "2": {
2086
+ name: "keyword.operator.nowdoc.php"
2087
+ },
2088
+ "3": {
2089
+ name: "invalid.illegal.trailing-whitespace.php"
2090
+ }
2091
+ },
2092
+ contentName: "string.regexp.nowdoc.php",
2093
+ end: "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
2094
+ endCaptures: {
2095
+ "0": {
2096
+ name: "punctuation.section.embedded.end.php"
2097
+ },
2098
+ "1": {
2099
+ name: "keyword.operator.nowdoc.php"
2100
+ }
2101
+ },
2102
+ patterns: [
2103
+ {
2104
+ match: "(\\\\){1,2}[.$^\\[\\]{}]",
2105
+ name: "constant.character.escape.regex.php"
2106
+ },
2107
+ {
2108
+ captures: {
2109
+ "1": {
2110
+ name: "punctuation.definition.arbitrary-repitition.php"
2111
+ },
2112
+ "3": {
2113
+ name: "punctuation.definition.arbitrary-repitition.php"
2114
+ }
2115
+ },
2116
+ match: "({)\\d+(,\\d+)?(})",
2117
+ name: "string.regexp.arbitrary-repitition.php"
2118
+ },
2119
+ {
2120
+ begin: "\\[(?:\\^?\\])?",
2121
+ captures: {
2122
+ "0": {
2123
+ name: "punctuation.definition.character-class.php"
2124
+ }
2125
+ },
2126
+ end: "\\]",
2127
+ name: "string.regexp.character-class.php",
2128
+ patterns: [
2129
+ {
2130
+ match: "\\\\[\\\\'\\[\\]]",
2131
+ name: "constant.character.escape.php"
2132
+ }
2133
+ ]
2134
+ },
2135
+ {
2136
+ match: "[$^+*]",
2137
+ name: "keyword.operator.regexp.php"
2138
+ },
2139
+ {
2140
+ begin: "(?i)(?<=^|\\s)(#)\\s(?=[[a-z0-9_\\x{7f}-\\x{7fffffff},. \\t?!-][^\\x{00}-\\x{7f}]]*$)",
2141
+ beginCaptures: {
2142
+ "1": {
2143
+ name: "punctuation.definition.comment.php"
2144
+ }
2145
+ },
2146
+ end: "$",
2147
+ endCaptures: {
2148
+ "0": {
2149
+ name: "punctuation.definition.comment.php"
2150
+ }
2151
+ },
2152
+ name: "comment.line.number-sign.php"
2153
+ }
2154
+ ]
2155
+ },
2156
+ {
2157
+ begin: "(?i)(<<<)\\s*'([a-z_\\x{7f}-\\x{7fffffff}]+[a-z0-9_\\x{7f}-\\x{7fffffff}]*)'(\\s*)",
2158
+ beginCaptures: {
2159
+ "1": {
2160
+ name: "punctuation.definition.string.php"
2161
+ },
2162
+ "2": {
2163
+ name: "keyword.operator.nowdoc.php"
2164
+ },
2165
+ "3": {
2166
+ name: "invalid.illegal.trailing-whitespace.php"
2167
+ }
2168
+ },
2169
+ end: "^\\s*(\\2)(?![A-Za-z0-9_\\x{7f}-\\x{7fffffff}])",
2170
+ endCaptures: {
2171
+ "1": {
2172
+ name: "keyword.operator.nowdoc.php"
2173
+ }
2174
+ }
2175
+ }
2176
+ ]
2177
+ },
2178
+ instantiation: {
2179
+ begin: "(?i)(new)\\s+(?!class\\b)",
2180
+ beginCaptures: {
2181
+ "1": {
2182
+ name: "keyword.other.new.php"
2183
+ }
2184
+ },
2185
+ end: "(?i)(?=[^a-z0-9_\\x{7f}-\\x{7fffffff}\\\\])",
2186
+ patterns: [
2187
+ {
2188
+ match: "(?i)(parent|static|self)(?![a-z0-9_\\x{7f}-\\x{7fffffff}])",
2189
+ name: "storage.type.php"
2190
+ },
2191
+ {
2192
+ include: "#class-name"
2193
+ },
2194
+ {
2195
+ include: "#variable-name"
2196
+ }
2197
+ ]
2198
+ },
2199
+ interpolation: {
2200
+ patterns: [
2201
+ {
2202
+ match: "\\\\[0-7]{1,3}",
2203
+ name: "constant.character.escape.octal.php"
2204
+ },
2205
+ {
2206
+ match: "\\\\x[0-9A-Fa-f]{1,2}",
2207
+ name: "constant.character.escape.hex.php"
2208
+ },
2209
+ {
2210
+ match: "\\\\u{[0-9A-Fa-f]+}",
2211
+ name: "constant.character.escape.unicode.php"
2212
+ },
2213
+ {
2214
+ match: "\\\\[nrtvef$\\\\]",
2215
+ name: "constant.character.escape.php"
2216
+ },
2217
+ {
2218
+ begin: "{(?=\\$.*?})",
2219
+ beginCaptures: {
2220
+ "0": {
2221
+ name: "punctuation.definition.variable.php"
2222
+ }
2223
+ },
2224
+ end: "}",
2225
+ endCaptures: {
2226
+ "0": {
2227
+ name: "punctuation.definition.variable.php"
2228
+ }
2229
+ },
2230
+ patterns: [
2231
+ {
2232
+ include: "$self"
2233
+ }
2234
+ ]
2235
+ },
2236
+ {
2237
+ include: "#variable-name"
2238
+ }
2239
+ ]
2240
+ },
2241
+ interpolation_double_quoted: {
2242
+ patterns: [
2243
+ {
2244
+ match: "\\\\\"",
2245
+ name: "constant.character.escape.php"
2246
+ },
2247
+ {
2248
+ include: "#interpolation"
2249
+ }
2250
+ ]
2251
+ },
2252
+ "invoke-call": {
2253
+ captures: {
2254
+ "1": {
2255
+ name: "variable.other.php"
2256
+ },
2257
+ "2": {
2258
+ name: "punctuation.definition.variable.php"
2259
+ }
2260
+ },
2261
+ match: "(?i)((\\$+)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)(?=\\s*\\()",
2262
+ name: "meta.function-call.invoke.php"
2263
+ },
2264
+ namespace: {
2265
+ begin: "(?i)(?:(namespace)|[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)?(\\\\)",
2266
+ beginCaptures: {
2267
+ "1": {
2268
+ name: "variable.language.namespace.php"
2269
+ },
2270
+ "2": {
2271
+ name: "punctuation.separator.inheritance.php"
2272
+ }
2273
+ },
2274
+ end: "(?i)(?![a-z0-9_\\x{7f}-\\x{7fffffff}]*\\\\)",
2275
+ name: "support.other.namespace.php",
2276
+ patterns: [
2277
+ {
2278
+ match: "\\\\",
2279
+ name: "punctuation.separator.inheritance.php"
2280
+ }
2281
+ ]
2282
+ },
2283
+ numbers: {
2284
+ patterns: [
2285
+ {
2286
+ match: "0[xX][0-9a-fA-F]+(?:_[0-9a-fA-F]+)*",
2287
+ name: "constant.numeric.hex.php"
2288
+ },
2289
+ {
2290
+ match: "0[bB][01]+(?:_[01]+)*",
2291
+ name: "constant.numeric.binary.php"
2292
+ },
2293
+ {
2294
+ match: "0[oO][0-7]+(?:_[0-7]+)*",
2295
+ name: "constant.numeric.octal.php"
2296
+ },
2297
+ {
2298
+ match: "0(?:_?[0-7]+)+",
2299
+ name: "constant.numeric.octal.php"
2300
+ },
2301
+ {
2302
+ match: "(?x)\n(?:\n (?:[0-9]+(?:_[0-9]+)*)?(\\.)[0-9]+(?:_[0-9]+)*(?:[eE][+-]?[0-9]+(?:_[0-9]+)*)?| # .3\n [0-9]+(?:_[0-9]+)*(\\.)(?:[0-9]+(?:_[0-9]+)*)?(?:[eE][+-]?[0-9]+(?:_[0-9]+)*)?| # 3.\n [0-9]+(?:_[0-9]+)*[eE][+-]?[0-9]+(?:_[0-9]+)* # 2e-3\n)",
2303
+ name: "constant.numeric.decimal.php",
2304
+ captures: {
2305
+ "1": {
2306
+ name: "punctuation.separator.decimal.period.php"
2307
+ },
2308
+ "2": {
2309
+ name: "punctuation.separator.decimal.period.php"
2310
+ }
2311
+ }
2312
+ },
2313
+ {
2314
+ match: "0|[1-9](?:_?[0-9]+)*",
2315
+ name: "constant.numeric.decimal.php"
2316
+ }
2317
+ ]
2318
+ },
2319
+ object: {
2320
+ patterns: [
2321
+ {
2322
+ begin: "(\\??->)\\s*(\\$?{)",
2323
+ beginCaptures: {
2324
+ "1": {
2325
+ name: "keyword.operator.class.php"
2326
+ },
2327
+ "2": {
2328
+ name: "punctuation.definition.variable.php"
2329
+ }
2330
+ },
2331
+ end: "}",
2332
+ endCaptures: {
2333
+ "0": {
2334
+ name: "punctuation.definition.variable.php"
2335
+ }
2336
+ },
2337
+ patterns: [
2338
+ {
2339
+ include: "$self"
2340
+ }
2341
+ ]
2342
+ },
2343
+ {
2344
+ begin: "(?i)(\\??->)\\s*([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)\\s*(\\()",
2345
+ beginCaptures: {
2346
+ "1": {
2347
+ name: "keyword.operator.class.php"
2348
+ },
2349
+ "2": {
2350
+ name: "entity.name.function.php"
2351
+ },
2352
+ "3": {
2353
+ name: "punctuation.definition.arguments.begin.bracket.round.php"
2354
+ }
2355
+ },
2356
+ end: "\\)|(?=\\?>)",
2357
+ endCaptures: {
2358
+ "0": {
2359
+ name: "punctuation.definition.arguments.end.bracket.round.php"
2360
+ }
2361
+ },
2362
+ name: "meta.method-call.php",
2363
+ patterns: [
2364
+ {
2365
+ include: "#named-arguments"
2366
+ },
2367
+ {
2368
+ include: "$self"
2369
+ }
2370
+ ]
2371
+ },
2372
+ {
2373
+ captures: {
2374
+ "1": {
2375
+ name: "keyword.operator.class.php"
2376
+ },
2377
+ "2": {
2378
+ name: "variable.other.property.php"
2379
+ },
2380
+ "3": {
2381
+ name: "punctuation.definition.variable.php"
2382
+ }
2383
+ },
2384
+ match: "(?i)(\\??->)\\s*((\\$+)?[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)?"
2385
+ }
2386
+ ]
2387
+ },
2388
+ "php-types": {
2389
+ patterns: [
2390
+ {
2391
+ match: "\\?",
2392
+ name: "keyword.operator.nullable-type.php"
2393
+ },
2394
+ {
2395
+ match: "[|&]",
2396
+ name: "punctuation.separator.delimiter.php"
2397
+ },
2398
+ {
2399
+ match: "(?i)\\b(null|int|float|bool|string|array|object|callable|iterable|false|mixed|void)\\b",
2400
+ name: "keyword.other.type.php"
2401
+ },
2402
+ {
2403
+ match: "(?i)\\b(parent|self)\\b",
2404
+ name: "storage.type.php"
2405
+ },
2406
+ {
2407
+ include: "#class-name"
2408
+ }
2409
+ ]
2410
+ },
2411
+ "parameter-default-types": {
2412
+ patterns: [
2413
+ {
2414
+ include: "#strings"
2415
+ },
2416
+ {
2417
+ include: "#numbers"
2418
+ },
2419
+ {
2420
+ include: "#string-backtick"
2421
+ },
2422
+ {
2423
+ include: "#variables"
2424
+ },
2425
+ {
2426
+ match: "=>",
2427
+ name: "keyword.operator.key.php"
2428
+ },
2429
+ {
2430
+ match: "=",
2431
+ name: "keyword.operator.assignment.php"
2432
+ },
2433
+ {
2434
+ match: "&(?=\\s*\\$)",
2435
+ name: "storage.modifier.reference.php"
2436
+ },
2437
+ {
2438
+ begin: "(array)\\s*(\\()",
2439
+ beginCaptures: {
2440
+ "1": {
2441
+ name: "support.function.construct.php"
2442
+ },
2443
+ "2": {
2444
+ name: "punctuation.definition.array.begin.bracket.round.php"
2445
+ }
2446
+ },
2447
+ end: "\\)",
2448
+ endCaptures: {
2449
+ "0": {
2450
+ name: "punctuation.definition.array.end.bracket.round.php"
2451
+ }
2452
+ },
2453
+ name: "meta.array.php",
2454
+ patterns: [
2455
+ {
2456
+ include: "#parameter-default-types"
2457
+ }
2458
+ ]
2459
+ },
2460
+ {
2461
+ begin: "\\[",
2462
+ beginCaptures: {
2463
+ "0": {
2464
+ name: "punctuation.section.array.begin.php"
2465
+ }
2466
+ },
2467
+ end: "\\]|(?=\\?>)",
2468
+ endCaptures: {
2469
+ "0": {
2470
+ name: "punctuation.section.array.end.php"
2471
+ }
2472
+ },
2473
+ patterns: [
2474
+ {
2475
+ include: "$self"
2476
+ }
2477
+ ]
2478
+ },
2479
+ {
2480
+ include: "#instantiation"
2481
+ },
2482
+ {
2483
+ begin: "(?xi)\n(?=[a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]+\n (::)\\s*([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)?\n)",
2484
+ end: "(?i)(::)\\s*([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)?",
2485
+ endCaptures: {
2486
+ "1": {
2487
+ name: "keyword.operator.class.php"
2488
+ },
2489
+ "2": {
2490
+ name: "constant.other.class.php"
2491
+ }
2492
+ },
2493
+ patterns: [
2494
+ {
2495
+ include: "#class-name"
2496
+ }
2497
+ ]
2498
+ },
2499
+ {
2500
+ include: "#constants"
2501
+ }
2502
+ ]
2503
+ },
2504
+ php_doc: {
2505
+ patterns: [
2506
+ {
2507
+ match: "^(?!\\s*\\*).*?(?:(?=\\*\\/)|$\\n?)",
2508
+ name: "invalid.illegal.missing-asterisk.phpdoc.php"
2509
+ },
2510
+ {
2511
+ captures: {
2512
+ "1": {
2513
+ name: "keyword.other.phpdoc.php"
2514
+ },
2515
+ "3": {
2516
+ name: "storage.modifier.php"
2517
+ },
2518
+ "4": {
2519
+ name: "invalid.illegal.wrong-access-type.phpdoc.php"
2520
+ }
2521
+ },
2522
+ match: "^\\s*\\*\\s*(@access)\\s+((public|private|protected)|(.+))\\s*$"
2523
+ },
2524
+ {
2525
+ captures: {
2526
+ "1": {
2527
+ name: "keyword.other.phpdoc.php"
2528
+ },
2529
+ "2": {
2530
+ name: "markup.underline.link.php"
2531
+ }
2532
+ },
2533
+ match: "(@xlink)\\s+(.+)\\s*$"
2534
+ },
2535
+ {
2536
+ begin: "(@(?:global|param|property(-(read|write))?|return|throws|var))\\s+(?=[A-Za-z_\\x{7f}-\\x{7fffffff}\\\\]|\\()",
2537
+ beginCaptures: {
2538
+ "1": {
2539
+ name: "keyword.other.phpdoc.php"
2540
+ }
2541
+ },
2542
+ end: "(?=\\s|\\*/)",
2543
+ contentName: "meta.other.type.phpdoc.php",
2544
+ patterns: [
2545
+ {
2546
+ include: "#php_doc_types_array_multiple"
2547
+ },
2548
+ {
2549
+ include: "#php_doc_types_array_single"
2550
+ },
2551
+ {
2552
+ include: "#php_doc_types"
2553
+ }
2554
+ ]
2555
+ },
2556
+ {
2557
+ 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",
2558
+ name: "keyword.other.phpdoc.php"
2559
+ },
2560
+ {
2561
+ captures: {
2562
+ "1": {
2563
+ name: "keyword.other.phpdoc.php"
2564
+ }
2565
+ },
2566
+ match: "{(@(link|inherit[Dd]oc)).+?}",
2567
+ name: "meta.tag.inline.phpdoc.php"
2568
+ }
2569
+ ]
2570
+ },
2571
+ php_doc_types: {
2572
+ match: "(?i)[a-z_\\x{7f}-\\x{7fffffff}\\\\][a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]*([|&][a-z_\\x{7f}-\\x{7fffffff}\\\\][a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]*)*",
2573
+ captures: {
2574
+ "0": {
2575
+ patterns: [
2576
+ {
2577
+ match: "(?x)\\b\n(string|integer|int|boolean|bool|float|double|object|mixed\n|array|resource|void|null|callback|false|true|self|static)\\b",
2578
+ name: "keyword.other.type.php"
2579
+ },
2580
+ {
2581
+ include: "#class-name"
2582
+ },
2583
+ {
2584
+ match: "[|&]",
2585
+ name: "punctuation.separator.delimiter.php"
2586
+ }
2587
+ ]
2588
+ }
2589
+ }
2590
+ },
2591
+ php_doc_types_array_multiple: {
2592
+ begin: "\\(",
2593
+ beginCaptures: {
2594
+ "0": {
2595
+ name: "punctuation.definition.type.begin.bracket.round.phpdoc.php"
2596
+ }
2597
+ },
2598
+ end: "(\\))(\\[\\])|(?=\\*/)",
2599
+ endCaptures: {
2600
+ "1": {
2601
+ name: "punctuation.definition.type.end.bracket.round.phpdoc.php"
2602
+ },
2603
+ "2": {
2604
+ name: "keyword.other.array.phpdoc.php"
2605
+ }
2606
+ },
2607
+ patterns: [
2608
+ {
2609
+ include: "#php_doc_types_array_multiple"
2610
+ },
2611
+ {
2612
+ include: "#php_doc_types_array_single"
2613
+ },
2614
+ {
2615
+ include: "#php_doc_types"
2616
+ },
2617
+ {
2618
+ match: "[|&]",
2619
+ name: "punctuation.separator.delimiter.php"
2620
+ }
2621
+ ]
2622
+ },
2623
+ php_doc_types_array_single: {
2624
+ match: "(?i)([a-z_\\x{7f}-\\x{7fffffff}\\\\][a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]*)(\\[\\])",
2625
+ captures: {
2626
+ "1": {
2627
+ patterns: [
2628
+ {
2629
+ include: "#php_doc_types"
2630
+ }
2631
+ ]
2632
+ },
2633
+ "2": {
2634
+ name: "keyword.other.array.phpdoc.php"
2635
+ }
2636
+ }
2637
+ },
2638
+ "regex-double-quoted": {
2639
+ begin: "\"/(?=(\\\\.|[^\"/])++/[imsxeADSUXu]*\")",
2640
+ beginCaptures: {
2641
+ "0": {
2642
+ name: "punctuation.definition.string.begin.php"
2643
+ }
2644
+ },
2645
+ end: "(/)([imsxeADSUXu]*)(\")",
2646
+ endCaptures: {
2647
+ "0": {
2648
+ name: "punctuation.definition.string.end.php"
2649
+ }
2650
+ },
2651
+ name: "string.regexp.double-quoted.php",
2652
+ patterns: [
2653
+ {
2654
+ match: "(\\\\){1,2}[.$^\\[\\]{}]",
2655
+ name: "constant.character.escape.regex.php"
2656
+ },
2657
+ {
2658
+ include: "#interpolation_double_quoted"
2659
+ },
2660
+ {
2661
+ captures: {
2662
+ "1": {
2663
+ name: "punctuation.definition.arbitrary-repetition.php"
2664
+ },
2665
+ "3": {
2666
+ name: "punctuation.definition.arbitrary-repetition.php"
2667
+ }
2668
+ },
2669
+ match: "({)\\d+(,\\d+)?(})",
2670
+ name: "string.regexp.arbitrary-repetition.php"
2671
+ },
2672
+ {
2673
+ begin: "\\[(?:\\^?\\])?",
2674
+ captures: {
2675
+ "0": {
2676
+ name: "punctuation.definition.character-class.php"
2677
+ }
2678
+ },
2679
+ end: "\\]",
2680
+ name: "string.regexp.character-class.php",
2681
+ patterns: [
2682
+ {
2683
+ include: "#interpolation_double_quoted"
2684
+ }
2685
+ ]
2686
+ },
2687
+ {
2688
+ match: "[$^+*]",
2689
+ name: "keyword.operator.regexp.php"
2690
+ }
2691
+ ]
2692
+ },
2693
+ "regex-single-quoted": {
2694
+ begin: "'/(?=(\\\\(?:\\\\(?:\\\\[\\\\']?|[^'])|.)|[^'/])++/[imsxeADSUXu]*')",
2695
+ beginCaptures: {
2696
+ "0": {
2697
+ name: "punctuation.definition.string.begin.php"
2698
+ }
2699
+ },
2700
+ end: "(/)([imsxeADSUXu]*)(')",
2701
+ endCaptures: {
2702
+ "0": {
2703
+ name: "punctuation.definition.string.end.php"
2704
+ }
2705
+ },
2706
+ name: "string.regexp.single-quoted.php",
2707
+ patterns: [
2708
+ {
2709
+ include: "#single_quote_regex_escape"
2710
+ },
2711
+ {
2712
+ captures: {
2713
+ "1": {
2714
+ name: "punctuation.definition.arbitrary-repetition.php"
2715
+ },
2716
+ "3": {
2717
+ name: "punctuation.definition.arbitrary-repetition.php"
2718
+ }
2719
+ },
2720
+ match: "({)\\d+(,\\d+)?(})",
2721
+ name: "string.regexp.arbitrary-repetition.php"
2722
+ },
2723
+ {
2724
+ begin: "\\[(?:\\^?\\])?",
2725
+ captures: {
2726
+ "0": {
2727
+ name: "punctuation.definition.character-class.php"
2728
+ }
2729
+ },
2730
+ end: "\\]",
2731
+ name: "string.regexp.character-class.php"
2732
+ },
2733
+ {
2734
+ match: "[$^+*]",
2735
+ name: "keyword.operator.regexp.php"
2736
+ }
2737
+ ]
2738
+ },
2739
+ "scope-resolution": {
2740
+ patterns: [
2741
+ {
2742
+ match: "([A-Za-z_\\x{7f}-\\x{7fffffff}\\\\][A-Za-z0-9_\\x{7f}-\\x{7fffffff}\\\\]*)(?=\\s*::)",
2743
+ captures: {
2744
+ "1": {
2745
+ patterns: [
2746
+ {
2747
+ match: "\\b(self|static|parent)\\b",
2748
+ name: "storage.type.php"
2749
+ },
2750
+ {
2751
+ include: "#class-name"
2752
+ },
2753
+ {
2754
+ include: "#variable-name"
2755
+ }
2756
+ ]
2757
+ }
2758
+ }
2759
+ },
2760
+ {
2761
+ begin: "(?i)(::)\\s*([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)\\s*(\\()",
2762
+ beginCaptures: {
2763
+ "1": {
2764
+ name: "keyword.operator.class.php"
2765
+ },
2766
+ "2": {
2767
+ name: "entity.name.function.php"
2768
+ },
2769
+ "3": {
2770
+ name: "punctuation.definition.arguments.begin.bracket.round.php"
2771
+ }
2772
+ },
2773
+ end: "\\)|(?=\\?>)",
2774
+ endCaptures: {
2775
+ "0": {
2776
+ name: "punctuation.definition.arguments.end.bracket.round.php"
2777
+ }
2778
+ },
2779
+ name: "meta.method-call.static.php",
2780
+ patterns: [
2781
+ {
2782
+ include: "#named-arguments"
2783
+ },
2784
+ {
2785
+ include: "$self"
2786
+ }
2787
+ ]
2788
+ },
2789
+ {
2790
+ match: "(?i)(::)\\s*(class)\\b",
2791
+ captures: {
2792
+ "1": {
2793
+ name: "keyword.operator.class.php"
2794
+ },
2795
+ "2": {
2796
+ name: "keyword.other.class.php"
2797
+ }
2798
+ }
2799
+ },
2800
+ {
2801
+ match: "(?xi)\n(::)\\s*\n(?:\n ((\\$+)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*) # Variable\n |\n ([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*) # Constant\n)?",
2802
+ captures: {
2803
+ "1": {
2804
+ name: "keyword.operator.class.php"
2805
+ },
2806
+ "2": {
2807
+ name: "variable.other.class.php"
2808
+ },
2809
+ "3": {
2810
+ name: "punctuation.definition.variable.php"
2811
+ },
2812
+ "4": {
2813
+ name: "constant.other.class.php"
2814
+ }
2815
+ }
2816
+ }
2817
+ ]
2818
+ },
2819
+ single_quote_regex_escape: {
2820
+ match: "\\\\(?:\\\\(?:\\\\[\\\\']?|[^'])|.)",
2821
+ name: "constant.character.escape.php"
2822
+ },
2823
+ "sql-string-double-quoted": {
2824
+ begin: "\"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND|WITH)\\b)",
2825
+ beginCaptures: {
2826
+ "0": {
2827
+ name: "punctuation.definition.string.begin.php"
2828
+ }
2829
+ },
2830
+ contentName: "source.sql.embedded.php",
2831
+ end: "\"",
2832
+ endCaptures: {
2833
+ "0": {
2834
+ name: "punctuation.definition.string.end.php"
2835
+ }
2836
+ },
2837
+ name: "string.quoted.double.sql.php",
2838
+ patterns: [
2839
+ {
2840
+ match: "(#)(\\\\\"|[^\"])*(?=\"|$)",
2841
+ name: "comment.line.number-sign.sql",
2842
+ captures: {
2843
+ "1": {
2844
+ name: "punctuation.definition.comment.sql"
2845
+ }
2846
+ }
2847
+ },
2848
+ {
2849
+ match: "(--)(\\\\\"|[^\"])*(?=\"|$)",
2850
+ name: "comment.line.double-dash.sql",
2851
+ captures: {
2852
+ "1": {
2853
+ name: "punctuation.definition.comment.sql"
2854
+ }
2855
+ }
2856
+ },
2857
+ {
2858
+ match: "\\\\[\\\\\"`']",
2859
+ name: "constant.character.escape.php"
2860
+ },
2861
+ {
2862
+ match: "'(?=((\\\\')|[^'\"])*(\"|$))",
2863
+ name: "string.quoted.single.unclosed.sql"
2864
+ },
2865
+ {
2866
+ match: "`(?=((\\\\`)|[^`\"])*(\"|$))",
2867
+ name: "string.quoted.other.backtick.unclosed.sql"
2868
+ },
2869
+ {
2870
+ begin: "'",
2871
+ end: "'",
2872
+ name: "string.quoted.single.sql",
2873
+ patterns: [
2874
+ {
2875
+ include: "#interpolation_double_quoted"
2876
+ }
2877
+ ]
2878
+ },
2879
+ {
2880
+ begin: "`",
2881
+ end: "`",
2882
+ name: "string.quoted.other.backtick.sql",
2883
+ patterns: [
2884
+ {
2885
+ include: "#interpolation_double_quoted"
2886
+ }
2887
+ ]
2888
+ },
2889
+ {
2890
+ include: "#interpolation_double_quoted"
2891
+ },
2892
+ {
2893
+ include: "source.sql"
2894
+ }
2895
+ ]
2896
+ },
2897
+ "sql-string-single-quoted": {
2898
+ begin: "'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND|WITH)\\b)",
2899
+ beginCaptures: {
2900
+ "0": {
2901
+ name: "punctuation.definition.string.begin.php"
2902
+ }
2903
+ },
2904
+ contentName: "source.sql.embedded.php",
2905
+ end: "'",
2906
+ endCaptures: {
2907
+ "0": {
2908
+ name: "punctuation.definition.string.end.php"
2909
+ }
2910
+ },
2911
+ name: "string.quoted.single.sql.php",
2912
+ patterns: [
2913
+ {
2914
+ match: "(#)(\\\\'|[^'])*(?='|$)",
2915
+ name: "comment.line.number-sign.sql",
2916
+ captures: {
2917
+ "1": {
2918
+ name: "punctuation.definition.comment.sql"
2919
+ }
2920
+ }
2921
+ },
2922
+ {
2923
+ match: "(--)(\\\\'|[^'])*(?='|$)",
2924
+ name: "comment.line.double-dash.sql",
2925
+ captures: {
2926
+ "1": {
2927
+ name: "punctuation.definition.comment.sql"
2928
+ }
2929
+ }
2930
+ },
2931
+ {
2932
+ match: "\\\\[\\\\'`\"]",
2933
+ name: "constant.character.escape.php"
2934
+ },
2935
+ {
2936
+ match: "`(?=((\\\\`)|[^`'])*('|$))",
2937
+ name: "string.quoted.other.backtick.unclosed.sql"
2938
+ },
2939
+ {
2940
+ match: "\"(?=((\\\\\")|[^\"'])*('|$))",
2941
+ name: "string.quoted.double.unclosed.sql"
2942
+ },
2943
+ {
2944
+ include: "source.sql"
2945
+ }
2946
+ ]
2947
+ },
2948
+ "string-backtick": {
2949
+ begin: "`",
2950
+ beginCaptures: {
2951
+ "0": {
2952
+ name: "punctuation.definition.string.begin.php"
2953
+ }
2954
+ },
2955
+ end: "`",
2956
+ endCaptures: {
2957
+ "0": {
2958
+ name: "punctuation.definition.string.end.php"
2959
+ }
2960
+ },
2961
+ name: "string.interpolated.php",
2962
+ patterns: [
2963
+ {
2964
+ match: "\\\\`",
2965
+ name: "constant.character.escape.php"
2966
+ },
2967
+ {
2968
+ include: "#interpolation"
2969
+ }
2970
+ ]
2971
+ },
2972
+ "string-double-quoted": {
2973
+ begin: "\"",
2974
+ beginCaptures: {
2975
+ "0": {
2976
+ name: "punctuation.definition.string.begin.php"
2977
+ }
2978
+ },
2979
+ end: "\"",
2980
+ endCaptures: {
2981
+ "0": {
2982
+ name: "punctuation.definition.string.end.php"
2983
+ }
2984
+ },
2985
+ name: "string.quoted.double.php",
2986
+ patterns: [
2987
+ {
2988
+ include: "#interpolation_double_quoted"
2989
+ }
2990
+ ]
2991
+ },
2992
+ "string-single-quoted": {
2993
+ begin: "'",
2994
+ beginCaptures: {
2995
+ "0": {
2996
+ name: "punctuation.definition.string.begin.php"
2997
+ }
2998
+ },
2999
+ end: "'",
3000
+ endCaptures: {
3001
+ "0": {
3002
+ name: "punctuation.definition.string.end.php"
3003
+ }
3004
+ },
3005
+ name: "string.quoted.single.php",
3006
+ patterns: [
3007
+ {
3008
+ match: "\\\\[\\\\']",
3009
+ name: "constant.character.escape.php"
3010
+ }
3011
+ ]
3012
+ },
3013
+ strings: {
3014
+ patterns: [
3015
+ {
3016
+ include: "#regex-double-quoted"
3017
+ },
3018
+ {
3019
+ include: "#sql-string-double-quoted"
3020
+ },
3021
+ {
3022
+ include: "#string-double-quoted"
3023
+ },
3024
+ {
3025
+ include: "#regex-single-quoted"
3026
+ },
3027
+ {
3028
+ include: "#sql-string-single-quoted"
3029
+ },
3030
+ {
3031
+ include: "#string-single-quoted"
3032
+ }
3033
+ ]
3034
+ },
3035
+ support: {
3036
+ patterns: [
3037
+ {
3038
+ 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",
3039
+ name: "support.function.apc.php"
3040
+ },
3041
+ {
3042
+ 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",
3043
+ name: "support.function.array.php"
3044
+ },
3045
+ {
3046
+ 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",
3047
+ name: "support.function.basic_functions.php"
3048
+ },
3049
+ {
3050
+ match: "(?i)\\bbc(scale|sub|sqrt|comp|div|pow(mod)?|add|mod|mul)\\b",
3051
+ name: "support.function.bcmath.php"
3052
+ },
3053
+ {
3054
+ match: "(?i)\\bblenc_encrypt\\b",
3055
+ name: "support.function.blenc.php"
3056
+ },
3057
+ {
3058
+ match: "(?i)\\bbz(compress|close|open|decompress|errstr|errno|error|flush|write|read)\\b",
3059
+ name: "support.function.bz2.php"
3060
+ },
3061
+ {
3062
+ 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",
3063
+ name: "support.function.calendar.php"
3064
+ },
3065
+ {
3066
+ 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",
3067
+ name: "support.function.classobj.php"
3068
+ },
3069
+ {
3070
+ 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",
3071
+ name: "support.function.com.php"
3072
+ },
3073
+ {
3074
+ match: "(?i)\\b(isset|unset|eval|empty|list)\\b",
3075
+ name: "support.function.construct.php"
3076
+ },
3077
+ {
3078
+ match: "(?i)\\b(print|echo)\\b",
3079
+ name: "support.function.construct.output.php"
3080
+ },
3081
+ {
3082
+ match: "(?i)\\bctype_(space|cntrl|digit|upper|punct|print|lower|alnum|alpha|graph|xdigit)\\b",
3083
+ name: "support.function.ctype.php"
3084
+ },
3085
+ {
3086
+ 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",
3087
+ name: "support.function.curl.php"
3088
+ },
3089
+ {
3090
+ 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",
3091
+ name: "support.function.datetime.php"
3092
+ },
3093
+ {
3094
+ match: "(?i)\\bdba_(sync|handlers|nextkey|close|insert|optimize|open|delete|popen|exists|key_split|firstkey|fetch|list|replace)\\b",
3095
+ name: "support.function.dba.php"
3096
+ },
3097
+ {
3098
+ match: "(?i)\\bdbx_(sort|connect|compare|close|escape_string|error|query|fetch_row)\\b",
3099
+ name: "support.function.dbx.php"
3100
+ },
3101
+ {
3102
+ match: "(?i)\\b(scandir|chdir|chroot|closedir|opendir|dir|rewinddir|readdir|getcwd)\\b",
3103
+ name: "support.function.dir.php"
3104
+ },
3105
+ {
3106
+ 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",
3107
+ name: "support.function.eio.php"
3108
+ },
3109
+ {
3110
+ 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",
3111
+ name: "support.function.enchant.php"
3112
+ },
3113
+ {
3114
+ match: "(?i)\\b(split(i)?|sql_regcase|ereg(i)?(_replace)?)\\b",
3115
+ name: "support.function.ereg.php"
3116
+ },
3117
+ {
3118
+ match: "(?i)\\b((restore|set)_(error_handler|exception_handler)|trigger_error|debug_(print_)?backtrace|user_error|error_(log|reporting|get_last))\\b",
3119
+ name: "support.function.errorfunc.php"
3120
+ },
3121
+ {
3122
+ match: "(?i)\\b(shell_exec|system|passthru|proc_(nice|close|terminate|open|get_status)|escapeshell(arg|cmd)|exec)\\b",
3123
+ name: "support.function.exec.php"
3124
+ },
3125
+ {
3126
+ match: "(?i)\\b(exif_(thumbnail|tagname|imagetype|read_data)|read_exif_data)\\b",
3127
+ name: "support.function.exif.php"
3128
+ },
3129
+ {
3130
+ 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",
3131
+ name: "support.function.fann.php"
3132
+ },
3133
+ {
3134
+ 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",
3135
+ name: "support.function.file.php"
3136
+ },
3137
+ {
3138
+ match: "(?i)\\b(finfo_(set_flags|close|open|file|buffer)|mime_content_type)\\b",
3139
+ name: "support.function.fileinfo.php"
3140
+ },
3141
+ {
3142
+ match: "(?i)\\bfilter_(has_var|input(_array)?|id|var(_array)?|list)\\b",
3143
+ name: "support.function.filter.php"
3144
+ },
3145
+ {
3146
+ match: "(?i)\\bfastcgi_finish_request\\b",
3147
+ name: "support.function.fpm.php"
3148
+ },
3149
+ {
3150
+ 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",
3151
+ name: "support.function.funchand.php"
3152
+ },
3153
+ {
3154
+ match: "(?i)\\b((n)?gettext|textdomain|d((n)?gettext|c(n)?gettext)|bind(textdomain|_textdomain_codeset))\\b",
3155
+ name: "support.function.gettext.php"
3156
+ },
3157
+ {
3158
+ 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",
3159
+ name: "support.function.gmp.php"
3160
+ },
3161
+ {
3162
+ match: "(?i)\\bhash(_(hmac(_file)?|copy|init|update(_(file|stream))?|pbkdf2|equals|file|final|algos))?\\b",
3163
+ name: "support.function.hash.php"
3164
+ },
3165
+ {
3166
+ 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",
3167
+ name: "support.function.http.php"
3168
+ },
3169
+ {
3170
+ match: "(?i)\\b(iconv(_(str(pos|len|rpos)|substr|(get|set)_encoding|mime_(decode(_headers)?|encode)))?|ob_iconv_handler)\\b",
3171
+ name: "support.function.iconv.php"
3172
+ },
3173
+ {
3174
+ 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",
3175
+ name: "support.function.iisfunc.php"
3176
+ },
3177
+ {
3178
+ 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",
3179
+ name: "support.function.image.php"
3180
+ },
3181
+ {
3182
+ 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",
3183
+ name: "support.function.info.php"
3184
+ },
3185
+ {
3186
+ 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",
3187
+ name: "support.function.interbase.php"
3188
+ },
3189
+ {
3190
+ 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",
3191
+ name: "support.function.intl.php"
3192
+ },
3193
+ {
3194
+ match: "(?i)\\bjson_(decode|encode|last_error(_msg)?)\\b",
3195
+ name: "support.function.json.php"
3196
+ },
3197
+ {
3198
+ 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",
3199
+ name: "support.function.ldap.php"
3200
+ },
3201
+ {
3202
+ match: "(?i)\\blibxml_(set_(streams_context|external_entity_loader)|clear_errors|disable_entity_loader|use_internal_errors|get_(errors|last_error))\\b",
3203
+ name: "support.function.libxml.php"
3204
+ },
3205
+ {
3206
+ match: "(?i)\\b(ezmlm_hash|mail)\\b",
3207
+ name: "support.function.mail.php"
3208
+ },
3209
+ {
3210
+ 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",
3211
+ name: "support.function.math.php"
3212
+ },
3213
+ {
3214
+ 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",
3215
+ name: "support.function.mbstring.php"
3216
+ },
3217
+ {
3218
+ 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",
3219
+ name: "support.function.mcrypt.php"
3220
+ },
3221
+ {
3222
+ match: "(?i)\\bmemcache_debug\\b",
3223
+ name: "support.function.memcache.php"
3224
+ },
3225
+ {
3226
+ match: "(?i)\\bmhash(_(count|keygen_s2k|get_(hash_name|block_size)))?\\b",
3227
+ name: "support.function.mhash.php"
3228
+ },
3229
+ {
3230
+ match: "(?i)\\b(log_(cmd_(insert|delete|update)|killcursor|write_batch|reply|getmore)|bson_(decode|encode))\\b",
3231
+ name: "support.function.mongo.php"
3232
+ },
3233
+ {
3234
+ 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",
3235
+ name: "support.function.mysql.php"
3236
+ },
3237
+ {
3238
+ 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",
3239
+ name: "support.function.mysqli.php"
3240
+ },
3241
+ {
3242
+ match: "(?i)\\bmysqlnd_memcache_(set|get_config)\\b",
3243
+ name: "support.function.mysqlnd-memcache.php"
3244
+ },
3245
+ {
3246
+ 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",
3247
+ name: "support.function.mysqlnd-ms.php"
3248
+ },
3249
+ {
3250
+ 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",
3251
+ name: "support.function.mysqlnd-qc.php"
3252
+ },
3253
+ {
3254
+ match: "(?i)\\bmysqlnd_uh_(set_(statement|connection)_proxy|convert_to_mysqlnd)\\b",
3255
+ name: "support.function.mysqlnd-uh.php"
3256
+ },
3257
+ {
3258
+ 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",
3259
+ name: "support.function.network.php"
3260
+ },
3261
+ {
3262
+ match: "(?i)\\bnsapi_(virtual|response_headers|request_headers)\\b",
3263
+ name: "support.function.nsapi.php"
3264
+ },
3265
+ {
3266
+ 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",
3267
+ name: "support.function.oci8.php"
3268
+ },
3269
+ {
3270
+ match: "(?i)\\bopcache_(compile_file|invalidate|reset|get_(status|configuration))\\b",
3271
+ name: "support.function.opcache.php"
3272
+ },
3273
+ {
3274
+ 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",
3275
+ name: "support.function.openssl.php"
3276
+ },
3277
+ {
3278
+ 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",
3279
+ name: "support.function.output.php"
3280
+ },
3281
+ {
3282
+ match: "(?i)\\bpassword_(hash|needs_rehash|verify|get_info)\\b",
3283
+ name: "support.function.password.php"
3284
+ },
3285
+ {
3286
+ 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",
3287
+ name: "support.function.pcntl.php"
3288
+ },
3289
+ {
3290
+ 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",
3291
+ name: "support.function.pgsql.php"
3292
+ },
3293
+ {
3294
+ match: "(?i)\\b(virtual|getallheaders|apache_((get|set)env|note|child_terminate|lookup_uri|response_headers|reset_timeout|request_headers|get_(version|modules)))\\b",
3295
+ name: "support.function.php_apache.php"
3296
+ },
3297
+ {
3298
+ match: "(?i)\\bdom_import_simplexml\\b",
3299
+ name: "support.function.php_dom.php"
3300
+ },
3301
+ {
3302
+ 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",
3303
+ name: "support.function.php_ftp.php"
3304
+ },
3305
+ {
3306
+ 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",
3307
+ name: "support.function.php_imap.php"
3308
+ },
3309
+ {
3310
+ 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",
3311
+ name: "support.function.php_mssql.php"
3312
+ },
3313
+ {
3314
+ 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",
3315
+ name: "support.function.php_odbc.php"
3316
+ },
3317
+ {
3318
+ match: "(?i)\\bpreg_(split|quote|filter|last_error|replace(_callback)?|grep|match(_all)?)\\b",
3319
+ name: "support.function.php_pcre.php"
3320
+ },
3321
+ {
3322
+ match: "(?i)\\b(spl_(classes|object_hash|autoload(_(call|unregister|extensions|functions|register))?)|class_(implements|uses|parents)|iterator_(count|to_array|apply))\\b",
3323
+ name: "support.function.php_spl.php"
3324
+ },
3325
+ {
3326
+ match: "(?i)\\bzip_(close|open|entry_(name|compressionmethod|compressedsize|close|open|filesize|read)|read)\\b",
3327
+ name: "support.function.php_zip.php"
3328
+ },
3329
+ {
3330
+ 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",
3331
+ name: "support.function.posix.php"
3332
+ },
3333
+ {
3334
+ match: "(?i)\\bset(thread|proc)title\\b",
3335
+ name: "support.function.proctitle.php"
3336
+ },
3337
+ {
3338
+ 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",
3339
+ name: "support.function.pspell.php"
3340
+ },
3341
+ {
3342
+ 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",
3343
+ name: "support.function.readline.php"
3344
+ },
3345
+ {
3346
+ match: "(?i)\\brecode(_(string|file))?\\b",
3347
+ name: "support.function.recode.php"
3348
+ },
3349
+ {
3350
+ match: "(?i)\\brrd(c_disconnect|_(create|tune|info|update|error|version|first|fetch|last(update)?|restore|graph|xport))\\b",
3351
+ name: "support.function.rrd.php"
3352
+ },
3353
+ {
3354
+ 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",
3355
+ name: "support.function.sem.php"
3356
+ },
3357
+ {
3358
+ 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",
3359
+ name: "support.function.session.php"
3360
+ },
3361
+ {
3362
+ match: "(?i)\\bshmop_(size|close|open|delete|write|read)\\b",
3363
+ name: "support.function.shmop.php"
3364
+ },
3365
+ {
3366
+ match: "(?i)\\bsimplexml_(import_dom|load_(string|file))\\b",
3367
+ name: "support.function.simplexml.php"
3368
+ },
3369
+ {
3370
+ 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",
3371
+ name: "support.function.snmp.php"
3372
+ },
3373
+ {
3374
+ match: "(?i)\\b(is_soap_fault|use_soap_error_handler)\\b",
3375
+ name: "support.function.soap.php"
3376
+ },
3377
+ {
3378
+ 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",
3379
+ name: "support.function.sockets.php"
3380
+ },
3381
+ {
3382
+ 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",
3383
+ name: "support.function.sqlite.php"
3384
+ },
3385
+ {
3386
+ 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",
3387
+ name: "support.function.sqlsrv.php"
3388
+ },
3389
+ {
3390
+ 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",
3391
+ name: "support.function.stats.php"
3392
+ },
3393
+ {
3394
+ 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",
3395
+ name: "support.function.streamsfuncs.php"
3396
+ },
3397
+ {
3398
+ 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",
3399
+ name: "support.function.string.php"
3400
+ },
3401
+ {
3402
+ 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",
3403
+ name: "support.function.sybase.php"
3404
+ },
3405
+ {
3406
+ match: "(?i)\\b(taint|is_tainted|untaint)\\b",
3407
+ name: "support.function.taint.php"
3408
+ },
3409
+ {
3410
+ 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",
3411
+ name: "support.function.tidy.php"
3412
+ },
3413
+ {
3414
+ match: "(?i)\\btoken_(name|get_all)\\b",
3415
+ name: "support.function.tokenizer.php"
3416
+ },
3417
+ {
3418
+ 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",
3419
+ name: "support.function.trader.php"
3420
+ },
3421
+ {
3422
+ match: "(?i)\\buopz_(copy|compose|implement|overload|delete|undefine|extend|function|flags|restore|rename|redefine|backup)\\b",
3423
+ name: "support.function.uopz.php"
3424
+ },
3425
+ {
3426
+ match: "(?i)\\b(http_build_query|(raw)?url(decode|encode)|parse_url|get_(headers|meta_tags)|base64_(decode|encode))\\b",
3427
+ name: "support.function.url.php"
3428
+ },
3429
+ {
3430
+ 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",
3431
+ name: "support.function.var.php"
3432
+ },
3433
+ {
3434
+ match: "(?i)\\bwddx_(serialize_(value|vars)|deserialize|packet_(start|end)|add_vars)\\b",
3435
+ name: "support.function.wddx.php"
3436
+ },
3437
+ {
3438
+ match: "(?i)\\bxhprof_(sample_)?(disable|enable)\\b",
3439
+ name: "support.function.xhprof.php"
3440
+ },
3441
+ {
3442
+ 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",
3443
+ name: "support.function.xml.php"
3444
+ },
3445
+ {
3446
+ 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",
3447
+ name: "support.function.xmlrpc.php"
3448
+ },
3449
+ {
3450
+ 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",
3451
+ name: "support.function.xmlwriter.php"
3452
+ },
3453
+ {
3454
+ 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",
3455
+ name: "support.function.zlib.php"
3456
+ },
3457
+ {
3458
+ match: "(?i)\\bis_int(eger)?\\b",
3459
+ name: "support.function.alias.php"
3460
+ }
3461
+ ]
3462
+ },
3463
+ switch_statement: {
3464
+ patterns: [
3465
+ {
3466
+ match: "\\s+(?=switch\\b)"
3467
+ },
3468
+ {
3469
+ begin: "\\bswitch\\b(?!\\s*\\(.*\\)\\s*:)",
3470
+ beginCaptures: {
3471
+ "0": {
3472
+ name: "keyword.control.switch.php"
3473
+ }
3474
+ },
3475
+ end: "}|(?=\\?>)",
3476
+ endCaptures: {
3477
+ "0": {
3478
+ name: "punctuation.definition.section.switch-block.end.bracket.curly.php"
3479
+ }
3480
+ },
3481
+ name: "meta.switch-statement.php",
3482
+ patterns: [
3483
+ {
3484
+ begin: "\\(",
3485
+ beginCaptures: {
3486
+ "0": {
3487
+ name: "punctuation.definition.switch-expression.begin.bracket.round.php"
3488
+ }
3489
+ },
3490
+ end: "\\)|(?=\\?>)",
3491
+ endCaptures: {
3492
+ "0": {
3493
+ name: "punctuation.definition.switch-expression.end.bracket.round.php"
3494
+ }
3495
+ },
3496
+ patterns: [
3497
+ {
3498
+ include: "$self"
3499
+ }
3500
+ ]
3501
+ },
3502
+ {
3503
+ begin: "{",
3504
+ beginCaptures: {
3505
+ "0": {
3506
+ name: "punctuation.definition.section.switch-block.begin.bracket.curly.php"
3507
+ }
3508
+ },
3509
+ end: "(?=}|\\?>)",
3510
+ patterns: [
3511
+ {
3512
+ include: "$self"
3513
+ }
3514
+ ]
3515
+ }
3516
+ ]
3517
+ }
3518
+ ]
3519
+ },
3520
+ match_statement: {
3521
+ patterns: [
3522
+ {
3523
+ match: "\\s+(?=match\\b)"
3524
+ },
3525
+ {
3526
+ begin: "\\bmatch\\b",
3527
+ beginCaptures: {
3528
+ "0": {
3529
+ name: "keyword.control.match.php"
3530
+ }
3531
+ },
3532
+ end: "}|(?=\\?>)",
3533
+ endCaptures: {
3534
+ "0": {
3535
+ name: "punctuation.definition.section.match-block.end.bracket.curly.php"
3536
+ }
3537
+ },
3538
+ name: "meta.match-statement.php",
3539
+ patterns: [
3540
+ {
3541
+ begin: "\\(",
3542
+ beginCaptures: {
3543
+ "0": {
3544
+ name: "punctuation.definition.match-expression.begin.bracket.round.php"
3545
+ }
3546
+ },
3547
+ end: "\\)|(?=\\?>)",
3548
+ endCaptures: {
3549
+ "0": {
3550
+ name: "punctuation.definition.match-expression.end.bracket.round.php"
3551
+ }
3552
+ },
3553
+ patterns: [
3554
+ {
3555
+ include: "$self"
3556
+ }
3557
+ ]
3558
+ },
3559
+ {
3560
+ begin: "{",
3561
+ beginCaptures: {
3562
+ "0": {
3563
+ name: "punctuation.definition.section.match-block.begin.bracket.curly.php"
3564
+ }
3565
+ },
3566
+ end: "(?=}|\\?>)",
3567
+ patterns: [
3568
+ {
3569
+ match: "=>",
3570
+ name: "keyword.definition.arrow.php"
3571
+ },
3572
+ {
3573
+ include: "$self"
3574
+ }
3575
+ ]
3576
+ }
3577
+ ]
3578
+ }
3579
+ ]
3580
+ },
3581
+ "use-inner": {
3582
+ patterns: [
3583
+ {
3584
+ include: "#comments"
3585
+ },
3586
+ {
3587
+ begin: "(?i)\\b(as)\\s+",
3588
+ beginCaptures: {
3589
+ "1": {
3590
+ name: "keyword.other.use-as.php"
3591
+ }
3592
+ },
3593
+ end: "(?i)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*",
3594
+ endCaptures: {
3595
+ "0": {
3596
+ name: "entity.other.alias.php"
3597
+ }
3598
+ }
3599
+ },
3600
+ {
3601
+ include: "#class-name"
3602
+ },
3603
+ {
3604
+ match: ",",
3605
+ name: "punctuation.separator.delimiter.php"
3606
+ }
3607
+ ]
3608
+ },
3609
+ var_basic: {
3610
+ patterns: [
3611
+ {
3612
+ match: "(?i)(\\$+)[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*",
3613
+ name: "variable.other.php",
3614
+ captures: {
3615
+ "1": {
3616
+ name: "punctuation.definition.variable.php"
3617
+ }
3618
+ }
3619
+ }
3620
+ ]
3621
+ },
3622
+ var_global: {
3623
+ captures: {
3624
+ "1": {
3625
+ name: "punctuation.definition.variable.php"
3626
+ }
3627
+ },
3628
+ match: "(\\$)((_(COOKIE|FILES|GET|POST|REQUEST))|arg(v|c))\\b",
3629
+ name: "variable.other.global.php"
3630
+ },
3631
+ var_global_safer: {
3632
+ captures: {
3633
+ "1": {
3634
+ name: "punctuation.definition.variable.php"
3635
+ }
3636
+ },
3637
+ match: "(\\$)((GLOBALS|_(ENV|SERVER|SESSION)))",
3638
+ name: "variable.other.global.safer.php"
3639
+ },
3640
+ var_language: {
3641
+ match: "(\\$)this\\b",
3642
+ name: "variable.language.this.php",
3643
+ captures: {
3644
+ "1": {
3645
+ name: "punctuation.definition.variable.php"
3646
+ }
3647
+ }
3648
+ },
3649
+ "variable-name": {
3650
+ patterns: [
3651
+ {
3652
+ include: "#var_global"
3653
+ },
3654
+ {
3655
+ include: "#var_global_safer"
3656
+ },
3657
+ {
3658
+ captures: {
3659
+ "1": {
3660
+ name: "variable.other.php"
3661
+ },
3662
+ "2": {
3663
+ name: "punctuation.definition.variable.php"
3664
+ },
3665
+ "4": {
3666
+ name: "keyword.operator.class.php"
3667
+ },
3668
+ "5": {
3669
+ name: "variable.other.property.php"
3670
+ },
3671
+ "6": {
3672
+ name: "punctuation.section.array.begin.php"
3673
+ },
3674
+ "7": {
3675
+ name: "constant.numeric.index.php"
3676
+ },
3677
+ "8": {
3678
+ name: "variable.other.index.php"
3679
+ },
3680
+ "9": {
3681
+ name: "punctuation.definition.variable.php"
3682
+ },
3683
+ "10": {
3684
+ name: "string.unquoted.index.php"
3685
+ },
3686
+ "11": {
3687
+ name: "punctuation.section.array.end.php"
3688
+ }
3689
+ },
3690
+ match: "(?xi)\n((\\$)(?<name>[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*))\\s*\n(?:\n (\\??->)\\s*(\\g<name>)\n |\n (\\[)(?:(\\d+)|((\\$)\\g<name>)|([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*))(\\])\n)?"
3691
+ },
3692
+ {
3693
+ captures: {
3694
+ "1": {
3695
+ name: "variable.other.php"
3696
+ },
3697
+ "2": {
3698
+ name: "punctuation.definition.variable.php"
3699
+ },
3700
+ "4": {
3701
+ name: "punctuation.definition.variable.php"
3702
+ }
3703
+ },
3704
+ match: "(?i)((\\${)(?<name>[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)(}))"
3705
+ }
3706
+ ]
3707
+ },
3708
+ variables: {
3709
+ patterns: [
3710
+ {
3711
+ include: "#var_language"
3712
+ },
3713
+ {
3714
+ include: "#var_global"
3715
+ },
3716
+ {
3717
+ include: "#var_global_safer"
3718
+ },
3719
+ {
3720
+ include: "#var_basic"
3721
+ },
3722
+ {
3723
+ begin: "\\${(?=.*?})",
3724
+ beginCaptures: {
3725
+ "0": {
3726
+ name: "punctuation.definition.variable.php"
3727
+ }
3728
+ },
3729
+ end: "}",
3730
+ endCaptures: {
3731
+ "0": {
3732
+ name: "punctuation.definition.variable.php"
3733
+ }
3734
+ },
3735
+ patterns: [
3736
+ {
3737
+ include: "$self"
3738
+ }
3739
+ ]
3740
+ }
3741
+ ]
3742
+ },
3743
+ ternary_shorthand: {
3744
+ match: "\\?:",
3745
+ name: "keyword.operator.ternary.php"
3746
+ },
3747
+ ternary_expression: {
3748
+ begin: "\\?",
3749
+ beginCaptures: {
3750
+ "0": {
3751
+ name: "keyword.operator.ternary.php"
3752
+ }
3753
+ },
3754
+ end: "(?<!:):(?!:)",
3755
+ endCaptures: {
3756
+ "0": {
3757
+ name: "keyword.operator.ternary.php"
3758
+ }
3759
+ },
3760
+ patterns: [
3761
+ {
3762
+ match: "(?i)^\\s*([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)\\s*(?=:(?!:))",
3763
+ captures: {
3764
+ "1": {
3765
+ patterns: [
3766
+ {
3767
+ include: "$self"
3768
+ }
3769
+ ]
3770
+ }
3771
+ }
3772
+ },
3773
+ {
3774
+ include: "$self"
3775
+ }
3776
+ ]
3777
+ },
3778
+ null_coalescing: {
3779
+ match: "\\?\\?",
3780
+ name: "keyword.operator.null-coalescing.php"
3781
+ }
3782
+ };
3783
+ var php_tmLanguage = {
3784
+ information_for_contributors: information_for_contributors,
3785
+ version: version,
3786
+ scopeName: scopeName,
3787
+ patterns: patterns,
3788
+ repository: repository
3789
+ };
3790
+
3791
+ export { php_tmLanguage as default, information_for_contributors, patterns, repository, scopeName, version };