github-linguist 4.8.7 → 4.8.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
  "name": "Regular Expressions (Babel)",
3
3
  "scopeName": "source.regexp.babel",
4
4
  "fileTypes": [
5
-
5
+ "re"
6
6
  ],
7
7
  "patterns": [
8
8
  {
@@ -0,0 +1,2754 @@
1
+ {
2
+ "scopeName": "text.html.php.blade",
3
+ "name": "Blade",
4
+ "fileTypes": [
5
+ "blade.php"
6
+ ],
7
+ "firstLineMatch": "^#!.*(?<!-)php[0-9]{0,1}\\b",
8
+ "foldingStartMarker": "(/\\*|\\{\\s*$|<<<HTML)",
9
+ "foldingStopMarker": "(\\*/|^\\s*\\}|^HTML;)",
10
+ "injections": {
11
+ "text.html.php.blade - (meta.embedded | meta.tag | comment.block.meta.embedded.blade), L:text.html.php.blade meta.tag, L:source.js.embedded.html": {
12
+ "patterns": [
13
+ {
14
+ "begin": "{{--",
15
+ "captures": {
16
+ "0": {
17
+ "name": "punctuation.definition.comment.blade"
18
+ }
19
+ },
20
+ "end": "--}}",
21
+ "name": "comment.block.meta.embedded.blade"
22
+ },
23
+ {
24
+ "begin": "(?<!@){{{",
25
+ "captures": {
26
+ "0": {
27
+ "name": "support.punctuation.blade"
28
+ },
29
+ "1": {
30
+ "name": "source.php"
31
+ }
32
+ },
33
+ "contentName": "source.php",
34
+ "end": "(})}}",
35
+ "name": "meta.embedded.echo.blade",
36
+ "patterns": [
37
+ {
38
+ "include": "#language"
39
+ }
40
+ ]
41
+ },
42
+ {
43
+ "begin": "(?<![@{]){{",
44
+ "captures": {
45
+ "0": {
46
+ "name": "support.punctuation.blade"
47
+ },
48
+ "1": {
49
+ "name": "source.php"
50
+ }
51
+ },
52
+ "contentName": "source.php",
53
+ "end": "(})}",
54
+ "name": "meta.embedded.echo.blade",
55
+ "patterns": [
56
+ {
57
+ "include": "#language"
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ "begin": "(?<!@){!!",
63
+ "captures": {
64
+ "0": {
65
+ "name": "support.punctuation.blade"
66
+ },
67
+ "1": {
68
+ "name": "source.php"
69
+ }
70
+ },
71
+ "contentName": "source.php",
72
+ "end": "(!)!}",
73
+ "name": "meta.embedded.echo.blade",
74
+ "patterns": [
75
+ {
76
+ "include": "#language"
77
+ }
78
+ ]
79
+ },
80
+ {
81
+ "begin": "(?<![A-z0-9_@])@(break|c(hoice|ontinue)|each|hasSection|(else)?(if|can(not)?)|in(ject|clude(If)?)|extends|for(e(ach|lse))?|lang|p(hp|ush)|section|stack|un(less|set)|while|yield)\\s*(?=\\()",
82
+ "beginCaptures": {
83
+ "0": {
84
+ "name": "keyword.blade"
85
+ }
86
+ },
87
+ "contentName": "source.php",
88
+ "end": "(?<=\\))(?!.*\\))",
89
+ "name": "meta.embedded.blade",
90
+ "patterns": [
91
+ {
92
+ "include": "#language"
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "match": "(?<![A-z0-9_@])@(append|break|continue|empty|else|end(can(not)?|for(each|else)?|i(f|nject)|p(hp|ush)|section|unless|verbatim|while)|overwrite|s(how|top)|verbatim)\\b|(?<!@)@parent",
98
+ "name": "meta.embedded.keyword.blade"
99
+ },
100
+ {
101
+ "begin": "(?<![A-z0-9_@])@\\w+\\s*(?=\\()",
102
+ "beginCaptures": {
103
+ "0": {
104
+ "name": "entity.blade"
105
+ }
106
+ },
107
+ "contentName": "source.php",
108
+ "end": "(?<=\\))(?!.*\\))",
109
+ "name": "meta.embedded.blade",
110
+ "patterns": [
111
+ {
112
+ "include": "#language"
113
+ }
114
+ ]
115
+ },
116
+ {
117
+ "begin": "(?<![A-z0-9_@])@php",
118
+ "end": "(?<![A-z0-9_@])@endphp",
119
+ "beginCaptures": {
120
+ "0": {
121
+ "name": "meta.embedded.keyword.blade"
122
+ }
123
+ },
124
+ "endCaptures": {
125
+ "0": {
126
+ "name": "meta.embedded.keyword.blade"
127
+ }
128
+ },
129
+ "contentName": "source.php",
130
+ "name": "meta.embedded.blade",
131
+ "patterns": [
132
+ {
133
+ "include": "#language"
134
+ }
135
+ ]
136
+ },
137
+ {
138
+ "match": "(?<![A-z0-9_@])@(?!(choice|each|(else)?(if|can(not)?)|extends|for(e(ach|lse))?|hasSection|in(clude(If)?|ject)|lang|p(hp|ush)|section|stack|un(less|set)|while|yield)\\b)\\w+\\b",
139
+ "name": "meta.embedded.entity.blade"
140
+ },
141
+ {
142
+ "begin": "(^\\s*)(?=<\\?(?![^?]*\\?>))",
143
+ "beginCaptures": {
144
+ "0": {
145
+ "name": "punctuation.whitespace.embedded.leading.php"
146
+ }
147
+ },
148
+ "end": "(?!\\G)(\\s*$\\n)?",
149
+ "endCaptures": {
150
+ "0": {
151
+ "name": "punctuation.whitespace.embedded.trailing.php"
152
+ }
153
+ },
154
+ "patterns": [
155
+ {
156
+ "begin": "<\\?(?i:php|=)?",
157
+ "beginCaptures": {
158
+ "0": {
159
+ "name": "punctuation.section.embedded.begin.php"
160
+ }
161
+ },
162
+ "contentName": "source.php",
163
+ "end": "(\\?)>",
164
+ "endCaptures": {
165
+ "0": {
166
+ "name": "punctuation.section.embedded.end.php"
167
+ },
168
+ "1": {
169
+ "name": "source.php"
170
+ }
171
+ },
172
+ "name": "meta.embedded.block.php",
173
+ "patterns": [
174
+ {
175
+ "include": "#language"
176
+ }
177
+ ]
178
+ }
179
+ ]
180
+ },
181
+ {
182
+ "begin": "<\\?(?i:php|=)?(?![^?]*\\?>)",
183
+ "beginCaptures": {
184
+ "0": {
185
+ "name": "punctuation.section.embedded.begin.php"
186
+ }
187
+ },
188
+ "contentName": "source.php",
189
+ "end": "(\\?)>",
190
+ "endCaptures": {
191
+ "0": {
192
+ "name": "punctuation.section.embedded.end.php"
193
+ },
194
+ "1": {
195
+ "name": "source.php"
196
+ }
197
+ },
198
+ "name": "meta.embedded.block.php",
199
+ "patterns": [
200
+ {
201
+ "include": "#language"
202
+ }
203
+ ]
204
+ },
205
+ {
206
+ "begin": "<\\?(?i:php|=)?",
207
+ "beginCaptures": {
208
+ "0": {
209
+ "name": "punctuation.section.embedded.begin.php"
210
+ }
211
+ },
212
+ "end": ">",
213
+ "endCaptures": {
214
+ "0": {
215
+ "name": "punctuation.section.embedded.end.php"
216
+ }
217
+ },
218
+ "name": "meta.embedded.line.php",
219
+ "patterns": [
220
+ {
221
+ "captures": {
222
+ "1": {
223
+ "name": "source.php"
224
+ },
225
+ "2": {
226
+ "name": "punctuation.section.embedded.end.php"
227
+ },
228
+ "3": {
229
+ "name": "source.php"
230
+ }
231
+ },
232
+ "match": "\\G(\\s*)((\\?))(?=>)",
233
+ "name": "meta.special.empty-tag.php"
234
+ },
235
+ {
236
+ "begin": "\\G",
237
+ "contentName": "source.php",
238
+ "end": "(\\?)(?=>)",
239
+ "endCaptures": {
240
+ "0": {
241
+ "name": "punctuation.section.embedded.end.php"
242
+ },
243
+ "1": {
244
+ "name": "source.php"
245
+ }
246
+ },
247
+ "patterns": [
248
+ {
249
+ "include": "#language"
250
+ }
251
+ ]
252
+ }
253
+ ]
254
+ }
255
+ ]
256
+ }
257
+ },
258
+ "patterns": [
259
+ {
260
+ "include": "text.html.basic"
261
+ }
262
+ ],
263
+ "repository": {
264
+ "class-builtin": {
265
+ "patterns": [
266
+ {
267
+ "captures": {
268
+ "1": {
269
+ "name": "punctuation.separator.inheritance.php"
270
+ }
271
+ },
272
+ "match": "(?i)(\\\\)?\\b(st(dClass|reamWrapper)|R(RD(Graph|Creator|Updater)|untimeException|e(sourceBundle|cursive(RegexIterator|Ca(chingIterator|llbackFilterIterator)|TreeIterator|Iterator(Iterator)?|DirectoryIterator|FilterIterator|ArrayIterator)|flect(ion(Method|Class|ZendExtension|Object|P(arameter|roperty)|Extension|Function(Abstract)?)?|or)|gexIterator)|angeException)|G(ender\\Gender|lobIterator|magick(Draw|Pixel)?)|X(sltProcessor|ML(Reader|Diff\\\\(Memory|Base|DOM|File)|Writer)|SLTProcessor)|M(ysqlndUh(Connection|PreparedStatement)|ongo(Re(sultException|gex)|Grid(fsFile|FS(Cursor|File)?)|BinData|C(o(de|llection|mmandCursor)|ursor(Exception)?|lient)|Timestamp|I(n(sertBatch|t(32|64))|d)|D(B(Ref)?|eleteBatch|ate)|UpdateBatch|Pool|Write(Batch|ConcernException)|Log)?|u(tex|ltipleIterator)|e(ssageFormatter|mcache(d)?))|Bad(MethodCallException|FunctionCallException)|tidy(Node)?|S(ync(ReaderWriter|Mutex|Semaphore|Event)|impleXML(Iterator|Element)|oap(Server|Header|Client|Param|Var|Fault)|NMP|CA(_(SoapProxy|LocalProxy))?|p(hinxClient|oofchecker|l(M(inHeap|axHeap)|S(tack|ubject)|Heap|T(ype|empFileObject)|Ob(server|jectStorage)|DoublyLinkedList|PriorityQueue|Enum|Queue|Fi(le(Info|Object)|xedArray)))|e(ssionHandler(Interface)?|ekableIterator|rializable)|DO_(Model_(ReflectionDataObject|Type|Property)|Sequence|D(ata(Object|Factory)|AS_(Relational|XML(_Document)?|Setting|ChangeSummary|Data(Object|Factory)))|Exception|List)|wish(Result(s)?|Search)?|VM(Model)?|QLite(Result|3(Result|Stmt)?|Database|Unbuffered)|AM(Message|Connection))|H(RTime\\\\(StopWatch|PerformanceCounter)|ttp(Re(sponse|quest(Pool)?)|Message|InflateStream|DeflateStream|QueryString)|aru(Image|Outline|D(oc|estination)|Page|Encoder|Font|Annotation))|Ya(f_(R(oute(_(Re(write|gex)|Map|S(tatic|imple|upervar)|Interface)|r)|e(sponse_Abstract|quest_(Simple|Http|Abstract)|gistry))|Session|Con(troller_Abstract|fig_(Simple|Ini|Abstract))|Dispatcher|Plugin_Abstract|Exception|View_(Simple|Interface)|Loader|A(ction_Abstract|pplication))|r_(Server(_Exception)?|C(oncurrent_Client|lient(_Exception)?)))|N(o(RewindIterator|rmalizer)|umberFormatter)|C(o(nd|untable|ll(ectable|ator))|URLFile|a(chingIterator|llbackFilterIterator))|T(hread(ed)?|okyoTyrant(Table|Iterator|Query)?|ra(nsliterator|versable))|I(n(tl(RuleBasedBreakIterator|BreakIterator|C(odePointBreakIterator|alendar)|TimeZone|Iterator|DateFormatter|PartsIterator)|validArgumentException|finiteIterator)|terator(Iterator|Aggregate)?|magick(Draw|Pixel(Iterator)?)?)|php_user_filter|Z(MQ(Socket|Context|Device|Poll)?|ipArchive)|O(CI-(Collection|Lob)|ut(erIterator|Of(RangeException|BoundsException))|verflowException)|D(irectory(Iterator)?|omainException|OM(XPath|N(ode(list)?|amedNodeMap)|C(haracterData|omment|dataSection)|Text|Implementation|Document(Fragment)?|ProcessingInstruction|E(ntityReference|lement)|Attr)|ate(Time(I(nterface|mmutable)|Zone)?|Interval|Period))|U(n(derflowException|expectedValueException)|Converter)|JsonSerializable|finfo|P(har(Data|FileInfo)?|ool|DO(Statement)?|arentIterator)|E(v(S(tat|ignal)|Ch(ild|eck)|Timer|I(o|dle)|ent(B(uffer(Event)?|ase)|SslContext|Http(Request|Connection)?|Config|DnsBase|Util|Listener)?|P(eriodic|repare)|Embed|Fork|Watcher|Loop)?|rrorException|xception|mptyIterator)|V(8Js(Exception)?|arnish(Stat|Log|Admin))|KTaglib_(MPEG_(File|AudioProperties)|Tag|ID3v2_(Tag|Frame|AttachedPictureFrame))|QuickHash(StringIntHash|Int(S(tringHash|et)|Hash))|F(il(terIterator|esystemIterator)|ANNConnection)|mysqli(_(stmt|driver|warning|result))?|W(orker|eak(Map|ref))|L(imitIterator|o(cale|gicException)|ua(Closure)?|engthException|apack)|A(ppendIterator|PCIterator|rray(Iterator|Object|Access)))\\b",
273
+ "name": "support.class.builtin.php"
274
+ }
275
+ ]
276
+ },
277
+ "class-name": {
278
+ "patterns": [
279
+ {
280
+ "begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
281
+ "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
282
+ "endCaptures": {
283
+ "1": {
284
+ "name": "support.class.php"
285
+ }
286
+ },
287
+ "patterns": [
288
+ {
289
+ "include": "#namespace"
290
+ }
291
+ ]
292
+ },
293
+ {
294
+ "include": "#class-builtin"
295
+ },
296
+ {
297
+ "begin": "(?=[\\\\a-zA-Z_])",
298
+ "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
299
+ "endCaptures": {
300
+ "1": {
301
+ "name": "support.class.php"
302
+ }
303
+ },
304
+ "patterns": [
305
+ {
306
+ "include": "#namespace"
307
+ }
308
+ ]
309
+ }
310
+ ]
311
+ },
312
+ "comments": {
313
+ "patterns": [
314
+ {
315
+ "begin": "/\\*\\*(?:#@\\+)?\\s*$",
316
+ "captures": {
317
+ "0": {
318
+ "name": "punctuation.definition.comment.php"
319
+ }
320
+ },
321
+ "comment": "This now only highlights a docblock if the first line contains only /**\n\t\t\t\t\t\t\t\t- this is to stop highlighting everything as invalid when people do comment banners with /******** ...\n\t\t\t\t\t\t\t\t- Now matches /**#@+ too - used for docblock templates: http://manual.phpdoc.org/HTMLframesConverter/default/phpDocumentor/tutorial_phpDocumentor.howto.pkg.html#basics.docblocktemplate",
322
+ "end": "\\*/",
323
+ "name": "comment.block.documentation.phpdoc.php",
324
+ "patterns": [
325
+ {
326
+ "include": "#php_doc"
327
+ }
328
+ ]
329
+ },
330
+ {
331
+ "begin": "/\\*",
332
+ "captures": {
333
+ "0": {
334
+ "name": "punctuation.definition.comment.php"
335
+ }
336
+ },
337
+ "end": "\\*/",
338
+ "name": "comment.block.php"
339
+ },
340
+ {
341
+ "begin": "(^[ \\t]+)?(?=//)",
342
+ "beginCaptures": {
343
+ "1": {
344
+ "name": "punctuation.whitespace.comment.leading.php"
345
+ }
346
+ },
347
+ "end": "(?!\\G)",
348
+ "patterns": [
349
+ {
350
+ "begin": "//",
351
+ "beginCaptures": {
352
+ "0": {
353
+ "name": "punctuation.definition.comment.php"
354
+ }
355
+ },
356
+ "end": "\\n|(?=\\?>)",
357
+ "name": "comment.line.double-slash.php"
358
+ }
359
+ ]
360
+ },
361
+ {
362
+ "begin": "(^[ \\t]+)?(?=#)",
363
+ "beginCaptures": {
364
+ "1": {
365
+ "name": "punctuation.whitespace.comment.leading.php"
366
+ }
367
+ },
368
+ "end": "(?!\\G)",
369
+ "patterns": [
370
+ {
371
+ "begin": "#",
372
+ "beginCaptures": {
373
+ "0": {
374
+ "name": "punctuation.definition.comment.php"
375
+ }
376
+ },
377
+ "end": "\\n|(?=\\?>)",
378
+ "name": "comment.line.number-sign.php"
379
+ }
380
+ ]
381
+ }
382
+ ]
383
+ },
384
+ "constants": {
385
+ "patterns": [
386
+ {
387
+ "begin": "(?xi)(?=\n\t\t\t (\n\t\t\t (\\\\[a-z_][a-z_0-9]*\\\\[a-z_][a-z_0-9\\\\]*)|\n\t\t\t ([a-z_][a-z_0-9]*\\\\[a-z_][a-z_0-9\\\\]*)\n\t\t\t )\n\t\t\t [^a-z_0-9\\\\])",
388
+ "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
389
+ "endCaptures": {
390
+ "1": {
391
+ "name": "constant.other.php"
392
+ }
393
+ },
394
+ "patterns": [
395
+ {
396
+ "include": "#namespace"
397
+ }
398
+ ]
399
+ },
400
+ {
401
+ "begin": "(?=\\\\?[a-zA-Z_\\x{7f}-\\x{ff}])",
402
+ "end": "(?=[^\\\\a-zA-Z_\\x{7f}-\\x{ff}])",
403
+ "patterns": [
404
+ {
405
+ "match": "(?i)\\b(TRUE|FALSE|NULL|__(FILE|DIR|FUNCTION|CLASS|METHOD|LINE|NAMESPACE)__|ON|OFF|YES|NO|NL|BR|TAB)\\b",
406
+ "name": "constant.language.php"
407
+ },
408
+ {
409
+ "captures": {
410
+ "1": {
411
+ "name": "punctuation.separator.inheritance.php"
412
+ }
413
+ },
414
+ "match": "(\\\\)?\\b(STD(IN|OUT|ERR)|ZEND_(THREAD_SAFE|DEBUG_BUILD)|DEFAULT_INCLUDE_PATH|P(HP_(R(OUND_HALF_(ODD|DOWN|UP|EVEN)|ELEASE_VERSION)|M(INOR_VERSION|A(XPATHLEN|JOR_VERSION))|BINDIR|S(HLIB_SUFFIX|YSCONFDIR|API)|CONFIG_FILE_(SCAN_DIR|PATH)|INT_(MAX|SIZE)|ZTS|O(S|UTPUT_HANDLER_(START|CONT|END))|D(EBUG|ATADIR)|URL_(SCHEME|HOST|USER|P(ORT|A(SS|TH))|QUERY|FRAGMENT)|PREFIX|E(XT(RA_VERSION|ENSION_DIR)|OL)|VERSION(_ID)?|WINDOWS_(NT_(SERVER|DOMAIN_CONTROLLER|WORKSTATION)|VERSION_(M(INOR|AJOR)|BUILD|S(UITEMASK|P_M(INOR|AJOR))|P(RODUCTTYPE|LATFORM)))|L(IBDIR|OCALSTATEDIR))|EAR_(INSTALL_DIR|EXTENSION_DIR))|E_(RECOVERABLE_ERROR|STRICT|NOTICE|CO(RE_(ERROR|WARNING)|MPILE_(ERROR|WARNING))|DEPRECATED|USER_(NOTICE|DEPRECATED|ERROR|WARNING)|PARSE|ERROR|WARNING|ALL))\\b",
415
+ "name": "support.constant.core.php"
416
+ },
417
+ {
418
+ "captures": {
419
+ "1": {
420
+ "name": "punctuation.separator.inheritance.php"
421
+ }
422
+ },
423
+ "match": "(\\\\)?\\b(RADIXCHAR|GROUPING|M(_(1_PI|SQRT(1_2|2|3|PI)|2_(SQRTPI|PI)|PI(_(2|4))?|E(ULER)?|L(N(10|2|PI)|OG(10E|2E)))|ON_(GROUPING|1(1|2|0)?|7|2|8|THOUSANDS_SEP|3|DECIMAL_POINT|9|4|5|6))|S(TR_PAD_(RIGHT|BOTH|LEFT)|ORT_(REGULAR|STRING|NUMERIC|DESC|LOCALE_STRING|ASC)|EEK_(SET|CUR|END))|H(TML_(SPECIALCHARS|ENTITIES)|ASH_HMAC)|YES(STR|EXPR)|N(_(S(IGN_POSN|EP_BY_SPACE)|CS_PRECEDES)|O(STR|EXPR)|EGATIVE_SIGN|AN)|C(R(YPT_(MD5|BLOWFISH|S(HA(256|512)|TD_DES|ALT_LENGTH)|EXT_DES)|NCYSTR|EDITS_(G(ROUP|ENERAL)|MODULES|SAPI|DOCS|QA|FULLPAGE|ALL))|HAR_MAX|O(NNECTION_(NORMAL|TIMEOUT|ABORTED)|DESET|UNT_(RECURSIVE|NORMAL))|URRENCY_SYMBOL|ASE_(UPPER|LOWER))|__COMPILER_HALT_OFFSET__|T(HOUS(EP|ANDS_SEP)|_FMT(_AMPM)?)|IN(T_(CURR_SYMBOL|FRAC_DIGITS)|I_(S(YSTEM|CANNER_(RAW|NORMAL))|USER|PERDIR|ALL)|F(O_(GENERAL|MODULES|C(REDITS|ONFIGURATION)|ENVIRONMENT|VARIABLES|LICENSE|ALL))?)|D(_(T_FMT|FMT)|IRECTORY_SEPARATOR|ECIMAL_POINT|A(Y_(1|7|2|3|4|5|6)|TE_(R(SS|FC(1(123|036)|2822|8(22|50)|3339))|COOKIE|ISO8601|W3C|ATOM)))|UPLOAD_ERR_(NO_(TMP_DIR|FILE)|CANT_WRITE|INI_SIZE|OK|PARTIAL|EXTENSION|FORM_SIZE)|P(M_STR|_(S(IGN_POSN|EP_BY_SPACE)|CS_PRECEDES)|OSITIVE_SIGN|ATH(_SEPARATOR|INFO_(BASENAME|DIRNAME|EXTENSION|FILENAME)))|E(RA(_(YEAR|T_FMT|D_(T_FMT|FMT)))?|XTR_(REFS|SKIP|IF_EXISTS|OVERWRITE|PREFIX_(SAME|I(NVALID|F_EXISTS)|ALL))|NT_(NOQUOTES|COMPAT|IGNORE|QUOTES))|FRAC_DIGITS|L(C_(M(ONETARY|ESSAGES)|NUMERIC|C(TYPE|OLLATE)|TIME|ALL)|O(G_(MAIL|SYSLOG|N(O(TICE|WAIT)|DELAY|EWS)|C(R(IT|ON)|ONS)|INFO|ODELAY|D(EBUG|AEMON)|U(SER|UCP)|P(ID|ERROR)|E(RR|MERG)|KERN|WARNING|L(OCAL(1|7|2|3|4|5|0|6)|PR)|A(UTH(PRIV)?|LERT))|CK_(SH|NB|UN|EX)))|A(M_STR|B(MON_(1(1|2|0)?|7|2|8|3|9|4|5|6)|DAY_(1|7|2|3|4|5|6))|SSERT_(BAIL|CALLBACK|QUIET_EVAL|WARNING|ACTIVE)|LT_DIGITS))\\b",
424
+ "name": "support.constant.std.php"
425
+ },
426
+ {
427
+ "captures": {
428
+ "1": {
429
+ "name": "punctuation.separator.inheritance.php"
430
+ }
431
+ },
432
+ "match": "(\\\\)?\\b(GLOB_(MARK|BRACE|NO(SORT|CHECK|ESCAPE)|ONLYDIR|ERR|AVAILABLE_FLAGS)|XML_(SAX_IMPL|HTML_DOCUMENT_NODE|N(OTATION_NODE|AMESPACE_DECL_NODE)|C(OMMENT_NODE|DATA_SECTION_NODE)|TEXT_NODE|OPTION_(SKIP_(TAGSTART|WHITE)|CASE_FOLDING|TARGET_ENCODING)|D(TD_NODE|OCUMENT_(NODE|TYPE_NODE|FRAG_NODE))|PI_NODE|E(RROR_(RECURSIVE_ENTITY_REF|MISPLACED_XML_PI|B(INARY_ENTITY_REF|AD_CHAR_REF)|SYNTAX|NO(NE|_(MEMORY|ELEMENTS))|TAG_MISMATCH|IN(CORRECT_ENCODING|VALID_TOKEN)|DUPLICATE_ATTRIBUTE|UN(CLOSED_(CDATA_SECTION|TOKEN)|DEFINED_ENTITY|KNOWN_ENCODING)|JUNK_AFTER_DOC_ELEMENT|PAR(TIAL_CHAR|AM_ENTITY_REF)|EXTERNAL_ENTITY_HANDLING|A(SYNC_ENTITY|TTRIBUTE_EXTERNAL_ENTITY_REF))|NTITY_(REF_NODE|NODE|DECL_NODE)|LEMENT_(NODE|DECL_NODE))|LOCAL_NAMESPACE|ATTRIBUTE_(N(MTOKEN(S)?|O(TATION|DE))|CDATA|ID(REF(S)?)?|DECL_NODE|EN(TITY|UMERATION)))|M(HASH_(RIPEMD(1(28|60)|256|320)|GOST|MD(2|4|5)|S(HA(1|2(24|56)|384|512)|NEFRU256)|HAVAL(1(28|92|60)|2(24|56))|CRC32(B)?|TIGER(1(28|60))?|WHIRLPOOL|ADLER32)|YSQL(_(BOTH|NUM|CLIENT_(SSL|COMPRESS|I(GNORE_SPACE|NTERACTIVE))|ASSOC)|I_(RE(PORT_(STRICT|INDEX|OFF|ERROR|ALL)|FRESH_(GRANT|MASTER|BACKUP_LOG|S(TATUS|LAVE)|HOSTS|T(HREADS|ABLES)|LOG)|AD_DEFAULT_(GROUP|FILE))|GROUP_FLAG|MULTIPLE_KEY_FLAG|B(INARY_FLAG|OTH|LOB_FLAG)|S(T(MT_ATTR_(CURSOR_TYPE|UPDATE_MAX_LENGTH|PREFETCH_ROWS)|ORE_RESULT)|E(RVER_QUERY_(NO_(GOOD_INDEX_USED|INDEX_USED)|WAS_SLOW)|T_(CHARSET_NAME|FLAG)))|N(O(_D(EFAULT_VALUE_FLAG|ATA)|T_NULL_FLAG)|UM(_FLAG)?)|C(URSOR_TYPE_(READ_ONLY|SCROLLABLE|NO_CURSOR|FOR_UPDATE)|LIENT_(SSL|NO_SCHEMA|COMPRESS|I(GNORE_SPACE|NTERACTIVE)|FOUND_ROWS))|T(YPE_(GEOMETRY|MEDIUM_BLOB|B(IT|LOB)|S(HORT|TRING|ET)|YEAR|N(ULL|EWD(ECIMAL|ATE))|CHAR|TI(ME(STAMP)?|NY(_BLOB)?)|INT(24|ERVAL)|D(OUBLE|ECIMAL|ATE(TIME)?)|ENUM|VAR_STRING|FLOAT|LONG(_BLOB|LONG)?)|IMESTAMP_FLAG)|INIT_COMMAND|ZEROFILL_FLAG|O(N_UPDATE_NOW_FLAG|PT_(NET_(READ_BUFFER_SIZE|CMD_BUFFER_SIZE)|CONNECT_TIMEOUT|INT_AND_FLOAT_NATIVE|LOCAL_INFILE))|D(EBUG_TRACE_ENABLED|ATA_TRUNCATED)|U(SE_RESULT|N(SIGNED_FLAG|IQUE_KEY_FLAG))|P(RI_KEY_FLAG|ART_KEY_FLAG)|ENUM_FLAG|A(S(SOC|YNC)|UTO_INCREMENT_FLAG)))|CRYPT_(R(C(2|6)|IJNDAEL_(1(28|92)|256)|AND)|GOST|XTEA|M(ODE_(STREAM|NOFB|C(BC|FB)|OFB|ECB)|ARS)|BLOWFISH(_COMPAT)?|S(ERPENT|KIPJACK|AFER(128|PLUS|64))|C(RYPT|AST_(128|256))|T(RIPLEDES|HREEWAY|WOFISH)|IDEA|3DES|DE(S|CRYPT|V_(RANDOM|URANDOM))|PANAMA|EN(CRYPT|IGNA)|WAKE|LOKI97|ARCFOUR(_IV)?))|S(TREAM_(REPORT_ERRORS|M(UST_SEEK|KDIR_RECURSIVE)|BUFFER_(NONE|FULL|LINE)|S(HUT_(RD(WR)?|WR)|OCK_(R(DM|AW)|S(TREAM|EQPACKET)|DGRAM)|ERVER_(BIND|LISTEN))|NOTIFY_(RE(SOLVE|DIRECTED)|MIME_TYPE_IS|SEVERITY_(INFO|ERR|WARN)|CO(MPLETED|NNECT)|PROGRESS|F(ILE_SIZE_IS|AILURE)|AUTH_RE(SULT|QUIRED))|C(RYPTO_METHOD_(SSLv(2(_(SERVER|CLIENT)|3_(SERVER|CLIENT))|3_(SERVER|CLIENT))|TLS_(SERVER|CLIENT))|LIENT_(CONNECT|PERSISTENT|ASYNC_CONNECT)|AST_(FOR_SELECT|AS_STREAM))|I(GNORE_URL|S_URL|PPROTO_(RAW|TCP|I(CMP|P)|UDP))|O(OB|PTION_(READ_(BUFFER|TIMEOUT)|BLOCKING|WRITE_BUFFER))|U(RL_STAT_(QUIET|LINK)|SE_PATH)|P(EEK|F_(INET(6)?|UNIX))|ENFORCE_SAFE_MODE|FILTER_(READ|WRITE|ALL))|UNFUNCS_RET_(STRING|TIMESTAMP|DOUBLE)|QLITE(_(R(OW|EADONLY)|MIS(MATCH|USE)|B(OTH|USY)|SCHEMA|N(O(MEM|T(FOUND|ADB)|LFS)|UM)|C(O(RRUPT|NSTRAINT)|ANTOPEN)|TOOBIG|I(NTER(RUPT|NAL)|OERR)|OK|DONE|P(ROTOCOL|ERM)|E(RROR|MPTY)|F(ORMAT|ULL)|LOCKED|A(BORT|SSOC|UTH))|3_(B(OTH|LOB)|NU(M|LL)|TEXT|INTEGER|OPEN_(READ(ONLY|WRITE)|CREATE)|FLOAT|ASSOC)))|CURL(M(SG_DONE|_(BAD_(HANDLE|EASY_HANDLE)|CALL_MULTI_PERFORM|INTERNAL_ERROR|O(UT_OF_MEMORY|K)))|SSH_AUTH_(HOST|NONE|DEFAULT|P(UBLICKEY|ASSWORD)|KEYBOARD)|CLOSEPOLICY_(SLOWEST|CALLBACK|OLDEST|LEAST_(RECENTLY_USED|TRAFFIC))|_(HTTP_VERSION_(1_(1|0)|NONE)|NETRC_(REQUIRED|IGNORED|OPTIONAL)|TIMECOND_(IF(MODSINCE|UNMODSINCE)|LASTMOD)|IPRESOLVE_(V(4|6)|WHATEVER)|VERSION_(SSL|IPV6|KERBEROS4|LIBZ))|INFO_(RE(DIRECT_(COUNT|TIME)|QUEST_SIZE)|S(SL_VERIFYRESULT|TARTTRANSFER_TIME|IZE_(DOWNLOAD|UPLOAD)|PEED_(DOWNLOAD|UPLOAD))|H(TTP_CODE|EADER_(SIZE|OUT))|NAMELOOKUP_TIME|C(ON(NECT_TIME|TENT_(TYPE|LENGTH_(DOWNLOAD|UPLOAD)))|ERTINFO)|TOTAL_TIME|PR(IVATE|ETRANSFER_TIME)|EFFECTIVE_URL|FILETIME)|OPT_(R(E(SUME_FROM|TURNTRANSFER|DIR_PROTOCOLS|FERER|AD(DATA|FUNCTION))|AN(GE|DOM_FILE))|MAX(REDIRS|CONNECTS)|B(INARYTRANSFER|UFFERSIZE)|S(S(H_(HOST_PUBLIC_KEY_MD5|P(RIVATE_KEYFILE|UBLIC_KEYFILE)|AUTH_TYPES)|L(CERT(TYPE|PASSWD)?|_(CIPHER_LIST|VERIFY(HOST|PEER))|ENGINE(_DEFAULT)?|VERSION|KEY(TYPE|PASSWD)?))|TDERR)|H(TTP(GET|HEADER|200ALIASES|_VERSION|PROXYTUNNEL|AUTH)|EADER(FUNCTION)?)|N(O(BODY|SIGNAL|PROGRESS)|ETRC)|C(RLF|O(NNECTTIMEOUT(_MS)?|OKIE(SESSION|JAR|FILE)?)|USTOMREQUEST|ERTINFO|LOSEPOLICY|A(INFO|PATH))|T(RANSFERTEXT|CP_NODELAY|IME(CONDITION|OUT(_MS)?|VALUE))|I(N(TERFACE|FILE(SIZE)?)|PRESOLVE)|DNS_(CACHE_TIMEOUT|USE_GLOBAL_CACHE)|U(RL|SER(PWD|AGENT)|NRESTRICTED_AUTH|PLOAD)|P(R(IVATE|O(GRESSFUNCTION|XY(TYPE|USERPWD|PORT|AUTH)?|TOCOLS))|O(RT|ST(REDIR|QUOTE|FIELDS)?)|UT)|E(GDSOCKET|NCODING)|VERBOSE|K(RB4LEVEL|EYPASSWD)|QUOTE|F(RESH_CONNECT|TP(SSLAUTH|_(S(SL|KIP_PASV_IP)|CREATE_MISSING_DIRS|USE_EP(RT|SV)|FILEMETHOD)|PORT|LISTONLY|APPEND)|ILE(TIME)?|O(RBID_REUSE|LLOWLOCATION)|AILONERROR)|WRITE(HEADER|FUNCTION)|LOW_SPEED_(TIME|LIMIT)|AUTOREFERER)|PRO(XY_(SOCKS(4|5)|HTTP)|TO_(S(CP|FTP)|HTTP(S)?|T(ELNET|FTP)|DICT|F(TP(S)?|ILE)|LDAP(S)?|ALL))|E_(RE(CV_ERROR|AD_ERROR)|GOT_NOTHING|MALFORMAT_USER|BAD_(C(ONTENT_ENCODING|ALLING_ORDER)|PASSWORD_ENTERED|FUNCTION_ARGUMENT)|S(S(H|L_(C(IPHER|ONNECT_ERROR|ERTPROBLEM|ACERT)|PEER_CERTIFICATE|ENGINE_(SETFAILED|NOTFOUND)))|HARE_IN_USE|END_ERROR)|HTTP_(RANGE_ERROR|NOT_FOUND|PO(RT_FAILED|ST_ERROR))|COULDNT_(RESOLVE_(HOST|PROXY)|CONNECT)|T(OO_MANY_REDIRECTS|ELNET_OPTION_SYNTAX)|O(BSOLETE|UT_OF_MEMORY|PERATION_TIMEOUTED|K)|U(RL_MALFORMAT(_USER)?|N(SUPPORTED_PROTOCOL|KNOWN_TELNET_OPTION))|PARTIAL_FILE|F(TP_(BAD_DOWNLOAD_RESUME|SSL_FAILED|C(OULDNT_(RETR_FILE|GET_SIZE|S(TOR_FILE|ET_(BINARY|ASCII))|USE_REST)|ANT_(RECONNECT|GET_HOST))|USER_PASSWORD_INCORRECT|PORT_FAILED|QUOTE_ERROR|W(RITE_ERROR|EIRD_(SERVER_REPLY|227_FORMAT|USER_REPLY|PAS(S_REPLY|V_REPLY)))|ACCESS_DENIED)|ILE(SIZE_EXCEEDED|_COULDNT_READ_FILE)|UNCTION_NOT_FOUND|AILED_INIT)|WRITE_ERROR|L(IBRARY_NOT_FOUND|DAP_(SEARCH_FAILED|CANNOT_BIND|INVALID_URL))|ABORTED_BY_CALLBACK)|VERSION_NOW|FTP(METHOD_(MULTICWD|SINGLECWD|NOCWD)|SSL_(NONE|CONTROL|TRY|ALL)|AUTH_(SSL|TLS|DEFAULT))|AUTH_(GSSNEGOTIATE|BASIC|NTLM|DIGEST|ANY(SAFE)?))|I(MAGETYPE_(GIF|XBM|BMP|SWF|COUNT|TIFF_(MM|II)|I(CO|FF)|UNKNOWN|J(B2|P(X|2|C|EG(2000)?))|P(SD|NG)|WBMP)|NPUT_(REQUEST|GET|SE(RVER|SSION)|COOKIE|POST|ENV)|CONV_(MIME_DECODE_(STRICT|CONTINUE_ON_ERROR)|IMPL|VERSION))|D(NS_(MX|S(RV|OA)|HINFO|N(S|APTR)|CNAME|TXT|PTR|A(NY|LL|AAA|6)?)|OM(STRING_SIZE_ERR|_(SYNTAX_ERR|HIERARCHY_REQUEST_ERR|N(O(_(MODIFICATION_ALLOWED_ERR|DATA_ALLOWED_ERR)|T_(SUPPORTED_ERR|FOUND_ERR))|AMESPACE_ERR)|IN(DEX_SIZE_ERR|USE_ATTRIBUTE_ERR|VALID_(MODIFICATION_ERR|STATE_ERR|CHARACTER_ERR|ACCESS_ERR))|PHP_ERR|VALIDATION_ERR|WRONG_DOCUMENT_ERR)))|JSON_(HEX_(TAG|QUOT|A(MP|POS))|NUMERIC_CHECK|ERROR_(S(YNTAX|TATE_MISMATCH)|NONE|CTRL_CHAR|DEPTH|UTF8)|FORCE_OBJECT)|P(REG_(RECURSION_LIMIT_ERROR|GREP_INVERT|BA(CKTRACK_LIMIT_ERROR|D_UTF8_(OFFSET_ERROR|ERROR))|S(PLIT_(NO_EMPTY|OFFSET_CAPTURE|DELIM_CAPTURE)|ET_ORDER)|NO_ERROR|INTERNAL_ERROR|OFFSET_CAPTURE|PATTERN_ORDER)|SFS_(PASS_ON|ERR_FATAL|F(EED_ME|LAG_(NORMAL|FLUSH_(CLOSE|INC))))|CRE_VERSION|OSIX_(R_OK|X_OK|S_IF(REG|BLK|SOCK|CHR|IFO)|F_OK|W_OK))|F(NM_(NOESCAPE|CASEFOLD|P(ERIOD|ATHNAME))|IL(TER_(REQUIRE_(SCALAR|ARRAY)|SANITIZE_(MAGIC_QUOTES|S(TRI(NG|PPED)|PECIAL_CHARS)|NUMBER_(INT|FLOAT)|URL|E(MAIL|NCODED)|FULL_SPECIAL_CHARS)|NULL_ON_FAILURE|CALLBACK|DEFAULT|UNSAFE_RAW|VALIDATE_(REGEXP|BOOLEAN|I(NT|P)|URL|EMAIL|FLOAT)|F(ORCE_ARRAY|LAG_(S(CHEME_REQUIRED|TRIP_(BACKTICK|HIGH|LOW))|HOST_REQUIRED|NO(NE|_(RES_RANGE|PRIV_RANGE|ENCODE_QUOTES))|IPV(4|6)|PATH_REQUIRED|E(MPTY_STRING_NULL|NCODE_(HIGH|LOW|AMP))|QUERY_REQUIRED|ALLOW_(SCIENTIFIC|HEX|THOUSAND|OCTAL|FRACTION))))|E(_(BINARY|SKIP_EMPTY_LINES|NO_DEFAULT_CONTEXT|TEXT|IGNORE_NEW_LINES|USE_INCLUDE_PATH|APPEND)|INFO_(RAW|MIME(_(TYPE|ENCODING))?|SYMLINK|NONE|CONTINUE|DEVICES|PRESERVE_ATIME)))|ORCE_(GZIP|DEFLATE))|LIBXML_(XINCLUDE|N(SCLEAN|O(XMLDECL|BLANKS|NET|CDATA|E(RROR|MPTYTAG|NT)|WARNING))|COMPACT|D(TD(VALID|LOAD|ATTR)|OTTED_VERSION)|PARSEHUGE|ERR_(NONE|ERROR|FATAL|WARNING)|VERSION|LOADED_VERSION))\\b",
433
+ "name": "support.constant.ext.php"
434
+ },
435
+ {
436
+ "captures": {
437
+ "1": {
438
+ "name": "punctuation.separator.inheritance.php"
439
+ }
440
+ },
441
+ "match": "(\\\\)?\\bT_(RE(TURN|QUIRE(_ONCE)?)|G(OTO|LOBAL)|XOR_EQUAL|M(INUS_EQUAL|OD_EQUAL|UL_EQUAL|ETHOD_C|L_COMMENT)|B(REAK|OOL(_CAST|EAN_(OR|AND))|AD_CHARACTER)|S(R(_EQUAL)?|T(RING(_(CAST|VARNAME))?|A(RT_HEREDOC|TIC))|WITCH|L(_EQUAL)?)|HALT_COMPILER|N(S_(SEPARATOR|C)|UM_STRING|EW|AMESPACE)|C(HARACTER|O(MMENT|N(ST(ANT_ENCAPSED_STRING)?|CAT_EQUAL|TINUE))|URLY_OPEN|L(O(SE_TAG|NE)|ASS(_C)?)|A(SE|TCH))|T(RY|HROW)|I(MPLEMENTS|S(SET|_(GREATER_OR_EQUAL|SMALLER_OR_EQUAL|NOT_(IDENTICAL|EQUAL)|IDENTICAL|EQUAL))|N(STANCEOF|C(LUDE(_ONCE)?)?|T(_CAST|ERFACE)|LINE_HTML)|F)|O(R_EQUAL|BJECT_(CAST|OPERATOR)|PEN_TAG(_WITH_ECHO)?|LD_FUNCTION)|D(NUMBER|I(R|V_EQUAL)|O(C_COMMENT|UBLE_(C(OLON|AST)|ARROW)|LLAR_OPEN_CURLY_BRACES)?|E(C(LARE)?|FAULT))|U(SE|NSET(_CAST)?)|P(R(I(NT|VATE)|OTECTED)|UBLIC|LUS_EQUAL|AAMAYIM_NEKUDOTAYIM)|E(X(TENDS|IT)|MPTY|N(CAPSED_AND_WHITESPACE|D(SWITCH|_HEREDOC|IF|DECLARE|FOR(EACH)?|WHILE))|CHO|VAL|LSE(IF)?)|VAR(IABLE)?|F(I(NAL|LE)|OR(EACH)?|UNC(_C|TION))|WHI(TESPACE|LE)|L(NUMBER|I(ST|NE)|OGICAL_(XOR|OR|AND))|A(RRAY(_CAST)?|BSTRACT|S|ND_EQUAL))\\b",
442
+ "name": "support.constant.parser-token.php"
443
+ },
444
+ {
445
+ "comment": "In PHP, any identifier which is not a variable is taken to be a constant.\n \t\t\t\tHowever, if there is no constant defined with the given name then a notice\n \t\t\t\tis generated and the constant is assumed to have the value of its name.",
446
+ "match": "[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*",
447
+ "name": "constant.other.php"
448
+ }
449
+ ]
450
+ }
451
+ ]
452
+ },
453
+ "function-arguments": {
454
+ "patterns": [
455
+ {
456
+ "include": "#comments"
457
+ },
458
+ {
459
+ "begin": "(?xi)\n\t\t\t\t\t\t\t\\s*(array) # Typehint\n\t\t\t\t\t\t\t\\s*(&)? \t\t\t\t\t# Reference\n\t\t\t\t\t\t\t\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*) # The variable name\n\t\t\t\t\t\t\t\\s*(=)\t# A default value\n\t\t\t\t\t\t\t\\s*(array)\\s*(\\()\n\t\t\t\t\t\t\t",
460
+ "beginCaptures": {
461
+ "1": {
462
+ "name": "storage.type.php"
463
+ },
464
+ "2": {
465
+ "name": "storage.modifier.reference.php"
466
+ },
467
+ "3": {
468
+ "name": "variable.other.php"
469
+ },
470
+ "4": {
471
+ "name": "punctuation.definition.variable.php"
472
+ },
473
+ "5": {
474
+ "name": "keyword.operator.assignment.php"
475
+ },
476
+ "6": {
477
+ "name": "support.function.construct.php"
478
+ },
479
+ "7": {
480
+ "name": "punctuation.definition.array.begin.php"
481
+ }
482
+ },
483
+ "contentName": "meta.array.php",
484
+ "end": "\\)",
485
+ "endCaptures": {
486
+ "0": {
487
+ "name": "punctuation.definition.array.end.php"
488
+ }
489
+ },
490
+ "name": "meta.function.argument.array.php",
491
+ "patterns": [
492
+ {
493
+ "include": "#comments"
494
+ },
495
+ {
496
+ "include": "#strings"
497
+ },
498
+ {
499
+ "include": "#numbers"
500
+ }
501
+ ]
502
+ },
503
+ {
504
+ "captures": {
505
+ "1": {
506
+ "name": "storage.type.php"
507
+ },
508
+ "2": {
509
+ "name": "storage.modifier.reference.php"
510
+ },
511
+ "3": {
512
+ "name": "variable.other.php"
513
+ },
514
+ "4": {
515
+ "name": "punctuation.definition.variable.php"
516
+ },
517
+ "5": {
518
+ "name": "keyword.operator.assignment.php"
519
+ },
520
+ "6": {
521
+ "name": "constant.language.php"
522
+ },
523
+ "7": {
524
+ "name": "punctuation.section.array.begin.php"
525
+ },
526
+ "8": {
527
+ "patterns": [
528
+ {
529
+ "include": "#parameter-default-types"
530
+ }
531
+ ]
532
+ },
533
+ "9": {
534
+ "name": "punctuation.section.array.end.php"
535
+ },
536
+ "10": {
537
+ "name": "invalid.illegal.non-null-typehinted.php"
538
+ }
539
+ },
540
+ "match": "(?xi)\n\t\t\t\t\t\t\t\\s*(array|callable) # Typehint\n\t\t\t\t\t\t\t\\s*(&)? \t\t\t\t\t# Reference\n\t\t\t\t\t\t\t\\s*((\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # The variable name\n\t\t\t\t\t\t\t(?:\n\t\t\t\t\t\t\t\t\\s*(?:(=)\\s*(?:(null)|(\\[)((?>[^\\[\\]]+|\\[\\g<8>\\])*)(\\])|((?:\\S*?\\(\\))|(?:\\S*?))))\t# A default value\n\t\t\t\t\t\t\t)?\n\t\t\t\t\t\t\t\\s*(?=,|\\)|/[/*]|\\#|$) # A closing parentheses (end of argument list) or a comma or a comment\n\t\t\t\t\t\t\t",
541
+ "name": "meta.function.argument.array.php"
542
+ },
543
+ {
544
+ "begin": "(?i)(?=[a-z_0-9\\\\]*[a-z_][a-z_0-9]*\\s*&?\\s*(?:\\.\\.\\.)?\\$)",
545
+ "end": "(?=,|\\)|/[/*]|\\#|$)",
546
+ "name": "meta.function.argument.typehinted.php",
547
+ "patterns": [
548
+ {
549
+ "include": "#class-name"
550
+ },
551
+ {
552
+ "captures": {
553
+ "1": {
554
+ "name": "support.class.php"
555
+ },
556
+ "2": {
557
+ "name": "storage.modifier.reference.php"
558
+ },
559
+ "3": {
560
+ "name": "variable.other.php"
561
+ },
562
+ "4": {
563
+ "name": "punctuation.definition.variable.php"
564
+ },
565
+ "5": {
566
+ "name": "keyword.operator.assignment.php"
567
+ },
568
+ "6": {
569
+ "name": "constant.language.php"
570
+ },
571
+ "7": {
572
+ "name": "invalid.illegal.non-null-typehinted.php"
573
+ }
574
+ },
575
+ "match": "(?xi)\n \t\t\t\t\t\t\t\\s*([a-z_][a-z_0-9]*)? # Typehinted class name\n \t\t\t\t\t\t\t\\s*(&)? \t\t\t\t\t# Reference\n \t\t\t\t\t\t\t\\s*(((?:\\.\\.\\.)?\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # The variable name\n \t\t\t\t\t\t\t(?:\n \t\t\t\t\t\t\t\t\\s*(?:(=)\\s*(?:(null)|((?:\\S*?\\(\\))|(?:\\S*?))))\t# A default value\n \t\t\t\t\t\t\t)?\n \t\t\t\t\t\t\t\\s*(?=,|\\)|/[/*]|\\#|$) # A closing parentheses (end of argument list) or a comma\n\t\t\t\t\t "
576
+ }
577
+ ]
578
+ },
579
+ {
580
+ "captures": {
581
+ "1": {
582
+ "name": "storage.modifier.reference.php"
583
+ },
584
+ "2": {
585
+ "name": "variable.other.php"
586
+ },
587
+ "3": {
588
+ "name": "punctuation.definition.variable.php"
589
+ }
590
+ },
591
+ "match": "(?:\\s*(&))?\\s*(((?:\\.\\.\\.)?\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\\s*(?=,|\\)|/[/*]|\\#)",
592
+ "name": "meta.function.argument.no-default.php"
593
+ },
594
+ {
595
+ "begin": "(?:\\s*(&))?\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(?:\\s*(=)\\s*)\\s*(?:(\\[)((?>[^\\[\\]]+|\\[\\g<6>\\])*)(\\]))?",
596
+ "captures": {
597
+ "1": {
598
+ "name": "storage.modifier.reference.php"
599
+ },
600
+ "2": {
601
+ "name": "variable.other.php"
602
+ },
603
+ "3": {
604
+ "name": "punctuation.definition.variable.php"
605
+ },
606
+ "4": {
607
+ "name": "keyword.operator.assignment.php"
608
+ },
609
+ "5": {
610
+ "name": "punctuation.section.array.begin.php"
611
+ },
612
+ "6": {
613
+ "patterns": [
614
+ {
615
+ "include": "#parameter-default-types"
616
+ }
617
+ ]
618
+ },
619
+ "7": {
620
+ "name": "punctuation.section.array.end.php"
621
+ }
622
+ },
623
+ "end": "(?=,|\\)|/[/*]|\\#)",
624
+ "name": "meta.function.argument.default.php",
625
+ "patterns": [
626
+ {
627
+ "include": "#parameter-default-types"
628
+ }
629
+ ]
630
+ }
631
+ ]
632
+ },
633
+ "function-call": {
634
+ "patterns": [
635
+ {
636
+ "begin": "(?i)(?=\\\\?[a-z_0-9\\\\]+\\\\[a-z_][a-z0-9_]*\\s*\\()",
637
+ "comment": "Functions in a user-defined namespace (overrides any built-ins)",
638
+ "end": "(?=\\s*\\()",
639
+ "patterns": [
640
+ {
641
+ "include": "#user-function-call"
642
+ }
643
+ ]
644
+ },
645
+ {
646
+ "match": "(?i)\\b(print|echo)\\b",
647
+ "name": "support.function.construct.output.php"
648
+ },
649
+ {
650
+ "begin": "(?i)(\\\\)?(?=\\b[a-z_][a-z_0-9]*\\s*\\()",
651
+ "beginCaptures": {
652
+ "1": {
653
+ "name": "punctuation.separator.inheritance.php"
654
+ }
655
+ },
656
+ "comment": "Root namespace function calls (built-in or user)",
657
+ "end": "(?=\\s*\\()",
658
+ "patterns": [
659
+ {
660
+ "match": "(?i)\\b(isset|unset|e(val|mpty)|list)(?=\\s*\\()",
661
+ "name": "support.function.construct.php"
662
+ },
663
+ {
664
+ "include": "#support"
665
+ },
666
+ {
667
+ "include": "#user-function-call"
668
+ }
669
+ ]
670
+ }
671
+ ]
672
+ },
673
+ "heredoc": {
674
+ "patterns": [
675
+ {
676
+ "begin": "(?=<<<\\s*(\"?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\1)\\s*$)",
677
+ "end": "(?!\\G)",
678
+ "injections": {
679
+ "*": {
680
+ "patterns": [
681
+ {
682
+ "include": "#interpolation"
683
+ }
684
+ ]
685
+ }
686
+ },
687
+ "name": "string.unquoted.heredoc.php",
688
+ "patterns": [
689
+ {
690
+ "include": "#heredoc_interior"
691
+ }
692
+ ]
693
+ },
694
+ {
695
+ "begin": "(?=<<<\\s*('?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\1)\\s*$)",
696
+ "end": "(?!\\G)",
697
+ "name": "string.unquoted.heredoc.nowdoc.php",
698
+ "patterns": [
699
+ {
700
+ "include": "#heredoc_interior"
701
+ }
702
+ ]
703
+ }
704
+ ],
705
+ "repository": {
706
+ "heredoc_interior": {
707
+ "patterns": [
708
+ {
709
+ "begin": "(<<<)\\s*(['\"]?)(HTML)(\\2)\\s*$\\n?",
710
+ "beginCaptures": {
711
+ "0": {
712
+ "name": "punctuation.section.embedded.begin.php"
713
+ },
714
+ "1": {
715
+ "name": "punctuation.definition.string.php"
716
+ },
717
+ "3": {
718
+ "name": "keyword.operator.heredoc.php"
719
+ }
720
+ },
721
+ "contentName": "text.html",
722
+ "end": "^(\\3)\\b",
723
+ "endCaptures": {
724
+ "0": {
725
+ "name": "punctuation.section.embedded.end.php"
726
+ },
727
+ "1": {
728
+ "name": "keyword.operator.heredoc.php"
729
+ }
730
+ },
731
+ "name": "meta.embedded.html",
732
+ "patterns": [
733
+ {
734
+ "include": "text.html.basic"
735
+ }
736
+ ]
737
+ },
738
+ {
739
+ "begin": "(<<<)\\s*(['\"]?)(XML)(\\2)\\s*$\\n?",
740
+ "beginCaptures": {
741
+ "0": {
742
+ "name": "punctuation.section.embedded.begin.php"
743
+ },
744
+ "1": {
745
+ "name": "punctuation.definition.string.php"
746
+ },
747
+ "3": {
748
+ "name": "keyword.operator.heredoc.php"
749
+ }
750
+ },
751
+ "contentName": "text.xml",
752
+ "end": "^(\\3)\\b",
753
+ "endCaptures": {
754
+ "0": {
755
+ "name": "punctuation.section.embedded.end.php"
756
+ },
757
+ "1": {
758
+ "name": "keyword.operator.heredoc.php"
759
+ }
760
+ },
761
+ "name": "meta.embedded.xml",
762
+ "patterns": [
763
+ {
764
+ "include": "text.xml"
765
+ }
766
+ ]
767
+ },
768
+ {
769
+ "begin": "(<<<)\\s*(['\"]?)(SQL)(\\2)\\s*$\\n?",
770
+ "beginCaptures": {
771
+ "0": {
772
+ "name": "punctuation.section.embedded.begin.php"
773
+ },
774
+ "1": {
775
+ "name": "punctuation.definition.string.php"
776
+ },
777
+ "3": {
778
+ "name": "keyword.operator.heredoc.php"
779
+ }
780
+ },
781
+ "contentName": "source.sql",
782
+ "end": "^(\\3)\\b",
783
+ "endCaptures": {
784
+ "0": {
785
+ "name": "punctuation.section.embedded.end.php"
786
+ },
787
+ "1": {
788
+ "name": "keyword.operator.heredoc.php"
789
+ }
790
+ },
791
+ "name": "meta.embedded.sql",
792
+ "patterns": [
793
+ {
794
+ "include": "source.sql"
795
+ }
796
+ ]
797
+ },
798
+ {
799
+ "begin": "(<<<)\\s*(['\"]?)(JAVASCRIPT)(\\2)\\s*$\\n?",
800
+ "beginCaptures": {
801
+ "0": {
802
+ "name": "punctuation.section.embedded.begin.php"
803
+ },
804
+ "1": {
805
+ "name": "punctuation.definition.string.php"
806
+ },
807
+ "3": {
808
+ "name": "keyword.operator.heredoc.php"
809
+ }
810
+ },
811
+ "contentName": "source.js",
812
+ "end": "^(\\3)\\b",
813
+ "endCaptures": {
814
+ "0": {
815
+ "name": "punctuation.section.embedded.end.php"
816
+ },
817
+ "1": {
818
+ "name": "keyword.operator.heredoc.php"
819
+ }
820
+ },
821
+ "name": "meta.embedded.js",
822
+ "patterns": [
823
+ {
824
+ "include": "source.js"
825
+ }
826
+ ]
827
+ },
828
+ {
829
+ "begin": "(<<<)\\s*(['\"]?)(JSON)(\\2)\\s*$\\n?",
830
+ "beginCaptures": {
831
+ "0": {
832
+ "name": "punctuation.section.embedded.begin.php"
833
+ },
834
+ "1": {
835
+ "name": "punctuation.definition.string.php"
836
+ },
837
+ "3": {
838
+ "name": "keyword.operator.heredoc.php"
839
+ }
840
+ },
841
+ "contentName": "source.json",
842
+ "end": "^(\\3)\\b",
843
+ "endCaptures": {
844
+ "0": {
845
+ "name": "punctuation.section.embedded.end.php"
846
+ },
847
+ "1": {
848
+ "name": "keyword.operator.heredoc.php"
849
+ }
850
+ },
851
+ "name": "meta.embedded.json",
852
+ "patterns": [
853
+ {
854
+ "include": "source.json"
855
+ }
856
+ ]
857
+ },
858
+ {
859
+ "begin": "(<<<)\\s*(['\"]?)(CSS)(\\2)\\s*$\\n?",
860
+ "beginCaptures": {
861
+ "0": {
862
+ "name": "punctuation.section.embedded.begin.php"
863
+ },
864
+ "1": {
865
+ "name": "punctuation.definition.string.php"
866
+ },
867
+ "3": {
868
+ "name": "keyword.operator.heredoc.php"
869
+ }
870
+ },
871
+ "contentName": "source.css",
872
+ "end": "^(\\3)\\b",
873
+ "endCaptures": {
874
+ "0": {
875
+ "name": "punctuation.section.embedded.end.php"
876
+ },
877
+ "1": {
878
+ "name": "keyword.operator.heredoc.php"
879
+ }
880
+ },
881
+ "name": "meta.embedded.css",
882
+ "patterns": [
883
+ {
884
+ "include": "source.css"
885
+ }
886
+ ]
887
+ },
888
+ {
889
+ "begin": "(<<<)\\s*(['\"]?)(REGEX)(\\2)\\s*$\\n?",
890
+ "beginCaptures": {
891
+ "0": {
892
+ "name": "punctuation.section.embedded.begin.php"
893
+ },
894
+ "1": {
895
+ "name": "punctuation.definition.string.php"
896
+ },
897
+ "3": {
898
+ "name": "keyword.operator.heredoc.php"
899
+ }
900
+ },
901
+ "contentName": "string.regexp.heredoc.php",
902
+ "end": "^(\\3)\\b",
903
+ "endCaptures": {
904
+ "0": {
905
+ "name": "punctuation.section.embedded.end.php"
906
+ },
907
+ "1": {
908
+ "name": "keyword.operator.heredoc.php"
909
+ }
910
+ },
911
+ "patterns": [
912
+ {
913
+ "comment": "Escaped from the regexp – there can also be 2 backslashes (since 1 will escape the first)",
914
+ "match": "(\\\\){1,2}[.$^\\[\\]{}]",
915
+ "name": "constant.character.escape.regex.php"
916
+ },
917
+ {
918
+ "captures": {
919
+ "1": {
920
+ "name": "punctuation.definition.arbitrary-repitition.php"
921
+ },
922
+ "3": {
923
+ "name": "punctuation.definition.arbitrary-repitition.php"
924
+ }
925
+ },
926
+ "match": "(\\{)\\d+(,\\d+)?(\\})",
927
+ "name": "string.regexp.arbitrary-repitition.php"
928
+ },
929
+ {
930
+ "begin": "\\[(?:\\^?\\])?",
931
+ "captures": {
932
+ "0": {
933
+ "name": "punctuation.definition.character-class.php"
934
+ }
935
+ },
936
+ "end": "\\]",
937
+ "name": "string.regexp.character-class.php",
938
+ "patterns": [
939
+ {
940
+ "match": "\\\\[\\\\'\\[\\]]",
941
+ "name": "constant.character.escape.php"
942
+ }
943
+ ]
944
+ },
945
+ {
946
+ "match": "[$^+*]",
947
+ "name": "keyword.operator.regexp.php"
948
+ },
949
+ {
950
+ "begin": "(?<=^|\\s)(#)\\s(?=[[a-zA-Z0-9,. \\t?!-][^\\x{00}-\\x{7F}]]*$)",
951
+ "beginCaptures": {
952
+ "1": {
953
+ "name": "punctuation.definition.comment.php"
954
+ }
955
+ },
956
+ "comment": "We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.",
957
+ "end": "$\\n?",
958
+ "endCaptures": {
959
+ "0": {
960
+ "name": "punctuation.definition.comment.php"
961
+ }
962
+ },
963
+ "name": "comment.line.number-sign.php"
964
+ }
965
+ ]
966
+ },
967
+ {
968
+ "begin": "(<<<)\\s*(['\"]?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\2)",
969
+ "beginCaptures": {
970
+ "1": {
971
+ "name": "punctuation.definition.string.php"
972
+ },
973
+ "3": {
974
+ "name": "keyword.operator.heredoc.php"
975
+ }
976
+ },
977
+ "end": "^(\\3)\\b",
978
+ "endCaptures": {
979
+ "1": {
980
+ "name": "keyword.operator.heredoc.php"
981
+ }
982
+ }
983
+ }
984
+ ]
985
+ }
986
+ }
987
+ },
988
+ "instantiation": {
989
+ "begin": "(?i)(new)\\s+",
990
+ "beginCaptures": {
991
+ "1": {
992
+ "name": "keyword.other.new.php"
993
+ }
994
+ },
995
+ "end": "(?i)(?=[^$a-z0-9_\\\\])",
996
+ "patterns": [
997
+ {
998
+ "match": "(parent|static|self)(?=[^a-z0-9_])",
999
+ "name": "storage.type.php"
1000
+ },
1001
+ {
1002
+ "include": "#class-name"
1003
+ },
1004
+ {
1005
+ "include": "#variable-name"
1006
+ }
1007
+ ]
1008
+ },
1009
+ "interpolation": {
1010
+ "comment": "http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing",
1011
+ "patterns": [
1012
+ {
1013
+ "match": "\\\\[0-7]{1,3}",
1014
+ "name": "constant.numeric.octal.php"
1015
+ },
1016
+ {
1017
+ "match": "\\\\x[0-9A-Fa-f]{1,2}",
1018
+ "name": "constant.numeric.hex.php"
1019
+ },
1020
+ {
1021
+ "match": "\\\\[enrt\\\\\\$\\\"]",
1022
+ "name": "constant.character.escape.php"
1023
+ },
1024
+ {
1025
+ "begin": "(\\{)(?=\\$.*?\\})",
1026
+ "beginCaptures": {
1027
+ "1": {
1028
+ "name": "punctuation.definition.variable.php"
1029
+ }
1030
+ },
1031
+ "end": "(\\})",
1032
+ "endCaptures": {
1033
+ "1": {
1034
+ "name": "punctuation.definition.variable.php"
1035
+ }
1036
+ },
1037
+ "patterns": [
1038
+ {
1039
+ "include": "#language"
1040
+ }
1041
+ ]
1042
+ },
1043
+ {
1044
+ "include": "#variable-name"
1045
+ }
1046
+ ]
1047
+ },
1048
+ "invoke-call": {
1049
+ "captures": {
1050
+ "1": {
1051
+ "name": "punctuation.definition.variable.php"
1052
+ },
1053
+ "2": {
1054
+ "name": "variable.other.php"
1055
+ }
1056
+ },
1057
+ "match": "(?i)(\\$+)([a-z_][a-z_0-9]*)(?=\\s*\\()",
1058
+ "name": "meta.function-call.invoke.php"
1059
+ },
1060
+ "language": {
1061
+ "patterns": [
1062
+ {
1063
+ "include": "#comments"
1064
+ },
1065
+ {
1066
+ "match": "\\{",
1067
+ "name": "punctuation.section.scope.begin.php"
1068
+ },
1069
+ {
1070
+ "match": "\\}",
1071
+ "name": "punctuation.section.scope.end.php"
1072
+ },
1073
+ {
1074
+ "begin": "(?i)^\\s*(interface)\\s+([a-z0-9_]+)\\s*(extends)?\\s*",
1075
+ "beginCaptures": {
1076
+ "1": {
1077
+ "name": "storage.type.interface.php"
1078
+ },
1079
+ "2": {
1080
+ "name": "entity.name.type.interface.php"
1081
+ },
1082
+ "3": {
1083
+ "name": "storage.modifier.extends.php"
1084
+ }
1085
+ },
1086
+ "end": "((?:[a-zA-Z0-9_]+\\s*,\\s*)*)([a-zA-Z0-9_]+)?\\s*(?:(?=\\{)|$)",
1087
+ "endCaptures": {
1088
+ "1": {
1089
+ "patterns": [
1090
+ {
1091
+ "match": "[a-zA-Z0-9_]+",
1092
+ "name": "entity.other.inherited-class.php"
1093
+ },
1094
+ {
1095
+ "match": ",",
1096
+ "name": "punctuation.separator.classes.php"
1097
+ }
1098
+ ]
1099
+ },
1100
+ "2": {
1101
+ "name": "entity.other.inherited-class.php"
1102
+ }
1103
+ },
1104
+ "name": "meta.interface.php",
1105
+ "patterns": [
1106
+ {
1107
+ "include": "#namespace"
1108
+ }
1109
+ ]
1110
+ },
1111
+ {
1112
+ "begin": "(?i)^\\s*(trait)\\s+([a-z0-9_]+)",
1113
+ "beginCaptures": {
1114
+ "1": {
1115
+ "name": "storage.type.trait.php"
1116
+ },
1117
+ "2": {
1118
+ "name": "entity.name.type.trait.php"
1119
+ }
1120
+ },
1121
+ "end": "(?=[{])",
1122
+ "name": "meta.trait.php",
1123
+ "patterns": [
1124
+ {
1125
+ "include": "#comments"
1126
+ }
1127
+ ]
1128
+ },
1129
+ {
1130
+ "begin": "(?i)(?:^|(?<=<\\?php))\\s*(namespace)\\b\\s+(?=([a-z0-9_\\\\]+\\s*($|[;{]|(\\/[\\/*])))|$)",
1131
+ "beginCaptures": {
1132
+ "1": {
1133
+ "name": "keyword.other.namespace.php"
1134
+ }
1135
+ },
1136
+ "contentName": "entity.name.type.namespace.php",
1137
+ "end": "(?i)(?=\\s*$|[^a-z0-9_\\\\])",
1138
+ "name": "meta.namespace.php",
1139
+ "patterns": [
1140
+ {
1141
+ "match": "\\\\",
1142
+ "name": "punctuation.separator.inheritance.php"
1143
+ }
1144
+ ]
1145
+ },
1146
+ {
1147
+ "begin": "(?i)\\s*\\b(use)\\s+(?:((const)|(function))\\s+)?",
1148
+ "beginCaptures": {
1149
+ "1": {
1150
+ "name": "keyword.other.use.php"
1151
+ },
1152
+ "3": {
1153
+ "name": "storage.type.const.php"
1154
+ },
1155
+ "4": {
1156
+ "name": "storage.type.function.php"
1157
+ }
1158
+ },
1159
+ "end": "(?=;|(?:^\\s*$))",
1160
+ "name": "meta.use.php",
1161
+ "patterns": [
1162
+ {
1163
+ "include": "#comments"
1164
+ },
1165
+ {
1166
+ "begin": "(?i)\\s*(?=[a-z_0-9\\\\])",
1167
+ "end": "(?xi)(?:\n \t\t\t (?:\\s*(as)\\b\\s*([a-z_0-9]*)\\s*(?=,|;|$))\n \t\t\t |(?=,|;|$)\n \t\t\t )",
1168
+ "endCaptures": {
1169
+ "1": {
1170
+ "name": "keyword.other.use-as.php"
1171
+ },
1172
+ "2": {
1173
+ "name": "support.other.namespace.use-as.php"
1174
+ }
1175
+ },
1176
+ "patterns": [
1177
+ {
1178
+ "include": "#class-builtin"
1179
+ },
1180
+ {
1181
+ "begin": "(?i)\\s*(?=[\\\\a-z_0-9])",
1182
+ "end": "$|(?=[\\s,;])",
1183
+ "name": "support.other.namespace.use.php",
1184
+ "patterns": [
1185
+ {
1186
+ "match": "\\\\",
1187
+ "name": "punctuation.separator.inheritance.php"
1188
+ }
1189
+ ]
1190
+ }
1191
+ ]
1192
+ },
1193
+ {
1194
+ "match": "\\s*,\\s*"
1195
+ }
1196
+ ]
1197
+ },
1198
+ {
1199
+ "begin": "(?i)^\\s*(abstract|final)?\\s*(class)\\s+([a-z0-9_]+)\\s*",
1200
+ "beginCaptures": {
1201
+ "1": {
1202
+ "name": "storage.modifier.abstract.php"
1203
+ },
1204
+ "2": {
1205
+ "name": "storage.type.class.php"
1206
+ },
1207
+ "3": {
1208
+ "name": "entity.name.type.class.php"
1209
+ }
1210
+ },
1211
+ "end": "(?=[;{])",
1212
+ "name": "meta.class.php",
1213
+ "patterns": [
1214
+ {
1215
+ "include": "#comments"
1216
+ },
1217
+ {
1218
+ "begin": "(?i)(extends)\\s+",
1219
+ "beginCaptures": {
1220
+ "1": {
1221
+ "name": "storage.modifier.extends.php"
1222
+ }
1223
+ },
1224
+ "contentName": "meta.other.inherited-class.php",
1225
+ "end": "(?i)(?=[^a-z_0-9\\\\])",
1226
+ "patterns": [
1227
+ {
1228
+ "begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
1229
+ "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
1230
+ "endCaptures": {
1231
+ "1": {
1232
+ "name": "entity.other.inherited-class.php"
1233
+ }
1234
+ },
1235
+ "patterns": [
1236
+ {
1237
+ "include": "#namespace"
1238
+ }
1239
+ ]
1240
+ },
1241
+ {
1242
+ "include": "#class-builtin"
1243
+ },
1244
+ {
1245
+ "include": "#namespace"
1246
+ },
1247
+ {
1248
+ "match": "(?i)[a-z_][a-z_0-9]*",
1249
+ "name": "entity.other.inherited-class.php"
1250
+ }
1251
+ ]
1252
+ },
1253
+ {
1254
+ "begin": "(?i)(implements)\\s+",
1255
+ "beginCaptures": {
1256
+ "1": {
1257
+ "name": "storage.modifier.implements.php"
1258
+ }
1259
+ },
1260
+ "end": "(?i)(?=[;{])",
1261
+ "patterns": [
1262
+ {
1263
+ "include": "#comments"
1264
+ },
1265
+ {
1266
+ "begin": "(?i)(?=[a-z0-9_\\\\]+)",
1267
+ "contentName": "meta.other.inherited-class.php",
1268
+ "end": "(?i)(?:\\s*(?:,|(?=[^a-z0-9_\\\\\\s]))\\s*)",
1269
+ "patterns": [
1270
+ {
1271
+ "begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
1272
+ "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
1273
+ "endCaptures": {
1274
+ "1": {
1275
+ "name": "entity.other.inherited-class.php"
1276
+ }
1277
+ },
1278
+ "patterns": [
1279
+ {
1280
+ "include": "#namespace"
1281
+ }
1282
+ ]
1283
+ },
1284
+ {
1285
+ "include": "#class-builtin"
1286
+ },
1287
+ {
1288
+ "include": "#namespace"
1289
+ },
1290
+ {
1291
+ "match": "(?i)[a-z_][a-z_0-9]*",
1292
+ "name": "entity.other.inherited-class.php"
1293
+ }
1294
+ ]
1295
+ }
1296
+ ]
1297
+ }
1298
+ ]
1299
+ },
1300
+ {
1301
+ "captures": {
1302
+ "1": {
1303
+ "name": "keyword.control.php"
1304
+ }
1305
+ },
1306
+ "match": "\\s*\\b((break|c(ase|ontinue)|d(e(clare|fault)|ie|o)|e(lse(if)?|nd(declare|for(each)?|if|switch|while)|xit)|for(each)?|if|return|switch|use|while|yield))\\b"
1307
+ },
1308
+ {
1309
+ "begin": "(?i)\\b((?:require|include)(?:_once)?)\\b\\s*",
1310
+ "beginCaptures": {
1311
+ "1": {
1312
+ "name": "keyword.control.import.include.php"
1313
+ }
1314
+ },
1315
+ "end": "(?=\\s|;|$)",
1316
+ "name": "meta.include.php",
1317
+ "patterns": [
1318
+ {
1319
+ "include": "#language"
1320
+ }
1321
+ ]
1322
+ },
1323
+ {
1324
+ "begin": "\\b(catch)\\b\\s*\\(\\s*",
1325
+ "beginCaptures": {
1326
+ "1": {
1327
+ "name": "keyword.control.exception.catch.php"
1328
+ }
1329
+ },
1330
+ "end": "([A-Za-z_][A-Za-z_0-9]*)\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\\s*\\)",
1331
+ "endCaptures": {
1332
+ "1": {
1333
+ "name": "support.class.exception.php"
1334
+ },
1335
+ "2": {
1336
+ "name": "variable.other.php"
1337
+ },
1338
+ "3": {
1339
+ "name": "punctuation.definition.variable.php"
1340
+ }
1341
+ },
1342
+ "name": "meta.catch.php",
1343
+ "patterns": [
1344
+ {
1345
+ "include": "#namespace"
1346
+ }
1347
+ ]
1348
+ },
1349
+ {
1350
+ "match": "\\b(catch|try|throw|exception|finally)\\b",
1351
+ "name": "keyword.control.exception.php"
1352
+ },
1353
+ {
1354
+ "begin": "(?i)\\b(function)\\s*(&\\s*)?(?=\\()",
1355
+ "beginCaptures": {
1356
+ "1": {
1357
+ "name": "storage.type.function.php"
1358
+ },
1359
+ "2": {
1360
+ "name": "storage.modifier.reference.php"
1361
+ }
1362
+ },
1363
+ "end": "(?=\\{)",
1364
+ "name": "meta.function.closure.php",
1365
+ "patterns": [
1366
+ {
1367
+ "begin": "(\\()",
1368
+ "beginCaptures": {
1369
+ "1": {
1370
+ "name": "punctuation.definition.parameters.begin.php"
1371
+ }
1372
+ },
1373
+ "contentName": "meta.function.arguments.php",
1374
+ "end": "(\\))",
1375
+ "endCaptures": {
1376
+ "1": {
1377
+ "name": "punctuation.definition.parameters.end.php"
1378
+ }
1379
+ },
1380
+ "patterns": [
1381
+ {
1382
+ "include": "#function-arguments"
1383
+ }
1384
+ ]
1385
+ },
1386
+ {
1387
+ "begin": "(?i)(use)\\s*(\\()",
1388
+ "beginCaptures": {
1389
+ "1": {
1390
+ "name": "keyword.other.function.use.php"
1391
+ },
1392
+ "2": {
1393
+ "name": "punctuation.definition.parameters.begin.php"
1394
+ }
1395
+ },
1396
+ "end": "(\\))",
1397
+ "endCaptures": {
1398
+ "1": {
1399
+ "name": "punctuation.definition.parameters.end.php"
1400
+ }
1401
+ },
1402
+ "patterns": [
1403
+ {
1404
+ "captures": {
1405
+ "1": {
1406
+ "name": "storage.modifier.reference.php"
1407
+ },
1408
+ "2": {
1409
+ "name": "variable.other.php"
1410
+ },
1411
+ "3": {
1412
+ "name": "punctuation.definition.variable.php"
1413
+ }
1414
+ },
1415
+ "match": "(?:\\s*(&))?\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\\s*(?=,|\\))",
1416
+ "name": "meta.function.closure.use.php"
1417
+ }
1418
+ ]
1419
+ }
1420
+ ]
1421
+ },
1422
+ {
1423
+ "begin": "(?x)\\s*\n\t\t\t\t\t ((?:(?:final|abstract|public|private|protected|static)\\s+)*)\n\t\t\t\t (function)\n\t\t\t\t (?:\\s+|(\\s*&\\s*))\n\t\t\t\t (?:\n\t\t\t\t (__(?:call|construct|debugInfo|destruct|get|set|isset|unset|tostring|clone|set_state|sleep|wakeup|autoload|invoke|callStatic))\n\t\t\t\t |([a-zA-Z0-9_]+)\n\t\t\t\t )\n\t\t\t\t \\s*\n\t\t\t\t (\\()",
1424
+ "beginCaptures": {
1425
+ "1": {
1426
+ "patterns": [
1427
+ {
1428
+ "match": "final|abstract|public|private|protected|static",
1429
+ "name": "storage.modifier.php"
1430
+ }
1431
+ ]
1432
+ },
1433
+ "2": {
1434
+ "name": "storage.type.function.php"
1435
+ },
1436
+ "3": {
1437
+ "name": "storage.modifier.reference.php"
1438
+ },
1439
+ "4": {
1440
+ "name": "support.function.magic.php"
1441
+ },
1442
+ "5": {
1443
+ "name": "entity.name.function.php"
1444
+ },
1445
+ "6": {
1446
+ "name": "punctuation.definition.parameters.begin.php"
1447
+ }
1448
+ },
1449
+ "contentName": "meta.function.arguments.php",
1450
+ "end": "(\\))",
1451
+ "endCaptures": {
1452
+ "1": {
1453
+ "name": "punctuation.definition.parameters.end.php"
1454
+ }
1455
+ },
1456
+ "name": "meta.function.php",
1457
+ "patterns": [
1458
+ {
1459
+ "include": "#function-arguments"
1460
+ }
1461
+ ]
1462
+ },
1463
+ {
1464
+ "include": "#invoke-call"
1465
+ },
1466
+ {
1467
+ "begin": "(?xi)\\s*(?=\n\t\t\t\t [a-z_0-9$\\\\]+(::)\n (?:\n \t\t\t\t ([a-z_][a-z_0-9]*)\\s*\\(\n \t\t\t\t |\n \t\t\t\t ((\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\n \t\t\t\t |\n \t\t\t\t ([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\n \t\t\t\t)?\n\t\t\t\t )",
1468
+ "end": "(?x)(::)\n (?:\n \t\t\t\t ([A-Za-z_][A-Za-z_0-9]*)\\s*\\(\n \t\t\t\t |\n \t\t\t\t ((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n \t\t\t\t |\n \t\t\t\t ([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n \t\t\t\t)?",
1469
+ "endCaptures": {
1470
+ "1": {
1471
+ "name": "keyword.operator.class.php"
1472
+ },
1473
+ "2": {
1474
+ "name": "meta.function-call.static.php"
1475
+ },
1476
+ "3": {
1477
+ "name": "variable.other.class.php"
1478
+ },
1479
+ "4": {
1480
+ "name": "punctuation.definition.variable.php"
1481
+ },
1482
+ "5": {
1483
+ "name": "constant.other.class.php"
1484
+ }
1485
+ },
1486
+ "patterns": [
1487
+ {
1488
+ "match": "(self|static|parent)\\b",
1489
+ "name": "storage.type.php"
1490
+ },
1491
+ {
1492
+ "include": "#class-name"
1493
+ },
1494
+ {
1495
+ "include": "#variable-name"
1496
+ }
1497
+ ]
1498
+ },
1499
+ {
1500
+ "include": "#variables"
1501
+ },
1502
+ {
1503
+ "include": "#strings"
1504
+ },
1505
+ {
1506
+ "captures": {
1507
+ "1": {
1508
+ "name": "support.function.construct.php"
1509
+ },
1510
+ "2": {
1511
+ "name": "punctuation.definition.array.begin.php"
1512
+ },
1513
+ "3": {
1514
+ "name": "punctuation.definition.array.end.php"
1515
+ }
1516
+ },
1517
+ "match": "(array)(\\()(\\))",
1518
+ "name": "meta.array.empty.php"
1519
+ },
1520
+ {
1521
+ "begin": "(array)(\\()",
1522
+ "beginCaptures": {
1523
+ "1": {
1524
+ "name": "support.function.construct.php"
1525
+ },
1526
+ "2": {
1527
+ "name": "punctuation.definition.array.begin.php"
1528
+ }
1529
+ },
1530
+ "end": "\\)",
1531
+ "endCaptures": {
1532
+ "0": {
1533
+ "name": "punctuation.definition.array.end.php"
1534
+ }
1535
+ },
1536
+ "name": "meta.array.php",
1537
+ "patterns": [
1538
+ {
1539
+ "include": "#language"
1540
+ }
1541
+ ]
1542
+ },
1543
+ {
1544
+ "captures": {
1545
+ "1": {
1546
+ "name": "storage.type.php"
1547
+ }
1548
+ },
1549
+ "match": "(?i)\\s*\\(\\s*(array|real|double|float|int(eger)?|bool(ean)?|string|object|binary|unset)\\s*\\)"
1550
+ },
1551
+ {
1552
+ "match": "(?i)\\b(array|real|double|float|int(eger)?|bool(ean)?|string|class|clone|var|function|interface|trait|parent|self|object)\\b",
1553
+ "name": "storage.type.php"
1554
+ },
1555
+ {
1556
+ "match": "(?i)\\b(global|abstract|const|extends|implements|final|p(r(ivate|otected)|ublic)|static)\\b",
1557
+ "name": "storage.modifier.php"
1558
+ },
1559
+ {
1560
+ "include": "#object"
1561
+ },
1562
+ {
1563
+ "match": ";",
1564
+ "name": "punctuation.terminator.expression.php"
1565
+ },
1566
+ {
1567
+ "include": "#heredoc"
1568
+ },
1569
+ {
1570
+ "match": "\\.=?",
1571
+ "name": "keyword.operator.string.php"
1572
+ },
1573
+ {
1574
+ "match": "=>",
1575
+ "name": "keyword.operator.key.php"
1576
+ },
1577
+ {
1578
+ "captures": {
1579
+ "1": {
1580
+ "name": "keyword.operator.assignment.php"
1581
+ },
1582
+ "2": {
1583
+ "name": "storage.modifier.reference.php"
1584
+ },
1585
+ "3": {
1586
+ "name": "storage.modifier.reference.php"
1587
+ }
1588
+ },
1589
+ "match": "(?:(\\=)(&))|(&(?=[$A-Za-z_]))"
1590
+ },
1591
+ {
1592
+ "match": "(@)",
1593
+ "name": "keyword.operator.error-control.php"
1594
+ },
1595
+ {
1596
+ "match": "(===|==|!==|!=|<>)",
1597
+ "name": "keyword.operator.comparison.php"
1598
+ },
1599
+ {
1600
+ "match": "=|\\+=|\\-=|\\*=|/=|%=|&=|\\|=|\\^=|<<=|>>=",
1601
+ "name": "keyword.operator.assignment.php"
1602
+ },
1603
+ {
1604
+ "match": "(<=|>=|<|>)",
1605
+ "name": "keyword.operator.comparison.php"
1606
+ },
1607
+ {
1608
+ "match": "(\\-\\-|\\+\\+)",
1609
+ "name": "keyword.operator.increment-decrement.php"
1610
+ },
1611
+ {
1612
+ "match": "(\\-|\\+|\\*|/|%)",
1613
+ "name": "keyword.operator.arithmetic.php"
1614
+ },
1615
+ {
1616
+ "match": "(?i)(!|&&|\\|\\|)|\\b(and|or|xor|as)\\b",
1617
+ "name": "keyword.operator.logical.php"
1618
+ },
1619
+ {
1620
+ "include": "#function-call"
1621
+ },
1622
+ {
1623
+ "match": "<<|>>|~|\\^|&|\\|",
1624
+ "name": "keyword.operator.bitwise.php"
1625
+ },
1626
+ {
1627
+ "begin": "(?i)\\b(instanceof)\\b\\s+(?=[\\\\$a-z_])",
1628
+ "beginCaptures": {
1629
+ "1": {
1630
+ "name": "keyword.operator.type.php"
1631
+ }
1632
+ },
1633
+ "end": "(?=[^\\\\$A-Za-z_0-9])",
1634
+ "patterns": [
1635
+ {
1636
+ "include": "#class-name"
1637
+ },
1638
+ {
1639
+ "include": "#variable-name"
1640
+ }
1641
+ ]
1642
+ },
1643
+ {
1644
+ "include": "#numbers"
1645
+ },
1646
+ {
1647
+ "include": "#instantiation"
1648
+ },
1649
+ {
1650
+ "captures": {
1651
+ "1": {
1652
+ "name": "keyword.control.goto.php"
1653
+ },
1654
+ "2": {
1655
+ "name": "support.other.php"
1656
+ }
1657
+ },
1658
+ "match": "(?i)(goto)\\s+([a-z_][a-z_0-9]*)"
1659
+ },
1660
+ {
1661
+ "captures": {
1662
+ "1": {
1663
+ "name": "entity.name.goto-label.php"
1664
+ }
1665
+ },
1666
+ "match": "(?i)^\\s*([a-z_][a-z_0-9]*)\\s*:"
1667
+ },
1668
+ {
1669
+ "include": "#string-backtick"
1670
+ },
1671
+ {
1672
+ "begin": "\\[",
1673
+ "beginCaptures": {
1674
+ "0": {
1675
+ "name": "punctuation.section.array.begin.php"
1676
+ }
1677
+ },
1678
+ "end": "\\]",
1679
+ "endCaptures": {
1680
+ "0": {
1681
+ "name": "punctuation.section.array.end.php"
1682
+ }
1683
+ },
1684
+ "patterns": [
1685
+ {
1686
+ "include": "#language"
1687
+ }
1688
+ ]
1689
+ },
1690
+ {
1691
+ "include": "#constants"
1692
+ }
1693
+ ]
1694
+ },
1695
+ "namespace": {
1696
+ "begin": "(?i)(?:(namespace)|[a-z0-9_]+)?(\\\\)(?=.*?[^a-z_0-9\\\\])",
1697
+ "beginCaptures": {
1698
+ "1": {
1699
+ "name": "variable.language.namespace.php"
1700
+ },
1701
+ "2": {
1702
+ "name": "punctuation.separator.inheritance.php"
1703
+ }
1704
+ },
1705
+ "end": "(?i)(?=[a-z0-9_]*[^a-z0-9_\\\\])",
1706
+ "name": "support.other.namespace.php",
1707
+ "patterns": [
1708
+ {
1709
+ "captures": {
1710
+ "1": {
1711
+ "name": "punctuation.separator.inheritance.php"
1712
+ }
1713
+ },
1714
+ "match": "(?i)(\\\\)"
1715
+ }
1716
+ ]
1717
+ },
1718
+ "numbers": {
1719
+ "match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b",
1720
+ "name": "constant.numeric.php"
1721
+ },
1722
+ "object": {
1723
+ "patterns": [
1724
+ {
1725
+ "begin": "(->)(\\$?\\{)",
1726
+ "beginCaptures": {
1727
+ "1": {
1728
+ "name": "keyword.operator.class.php"
1729
+ },
1730
+ "2": {
1731
+ "name": "punctuation.definition.variable.php"
1732
+ }
1733
+ },
1734
+ "end": "(\\})",
1735
+ "endCaptures": {
1736
+ "1": {
1737
+ "name": "punctuation.definition.variable.php"
1738
+ }
1739
+ },
1740
+ "patterns": [
1741
+ {
1742
+ "include": "#language"
1743
+ }
1744
+ ]
1745
+ },
1746
+ {
1747
+ "captures": {
1748
+ "1": {
1749
+ "name": "keyword.operator.class.php"
1750
+ },
1751
+ "2": {
1752
+ "name": "meta.function-call.object.php"
1753
+ },
1754
+ "3": {
1755
+ "name": "variable.other.property.php"
1756
+ },
1757
+ "4": {
1758
+ "name": "punctuation.definition.variable.php"
1759
+ }
1760
+ },
1761
+ "match": "(?x)(->)\n \t\t\t\t(?:\n \t\t\t\t ([A-Za-z_][A-Za-z_0-9]*)\\s*\\(\n \t\t\t\t |\n \t\t\t\t ((\\$+)?[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n \t\t\t\t)?"
1762
+ }
1763
+ ]
1764
+ },
1765
+ "parameter-default-types": {
1766
+ "patterns": [
1767
+ {
1768
+ "include": "#strings"
1769
+ },
1770
+ {
1771
+ "include": "#numbers"
1772
+ },
1773
+ {
1774
+ "include": "#string-backtick"
1775
+ },
1776
+ {
1777
+ "include": "#variables"
1778
+ },
1779
+ {
1780
+ "match": "=>",
1781
+ "name": "keyword.operator.key.php"
1782
+ },
1783
+ {
1784
+ "match": "=",
1785
+ "name": "keyword.operator.assignment.php"
1786
+ },
1787
+ {
1788
+ "match": "&(?=\\s*\\$)",
1789
+ "name": "storage.modifier.reference.php"
1790
+ },
1791
+ {
1792
+ "begin": "(array)\\s*(\\()",
1793
+ "beginCaptures": {
1794
+ "1": {
1795
+ "name": "support.function.construct.php"
1796
+ },
1797
+ "2": {
1798
+ "name": "punctuation.definition.array.begin.php"
1799
+ }
1800
+ },
1801
+ "end": "\\)",
1802
+ "endCaptures": {
1803
+ "0": {
1804
+ "name": "punctuation.definition.array.end.php"
1805
+ }
1806
+ },
1807
+ "name": "meta.array.php",
1808
+ "patterns": [
1809
+ {
1810
+ "include": "#parameter-default-types"
1811
+ }
1812
+ ]
1813
+ },
1814
+ {
1815
+ "include": "#instantiation"
1816
+ },
1817
+ {
1818
+ "begin": "(?xi)\\s*(?=\n\t\t\t\t [a-z_0-9\\\\]+(::)\n \t\t\t\t ([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?\n\t\t\t\t )",
1819
+ "end": "(?i)(::)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?",
1820
+ "endCaptures": {
1821
+ "1": {
1822
+ "name": "keyword.operator.class.php"
1823
+ },
1824
+ "2": {
1825
+ "name": "constant.other.class.php"
1826
+ }
1827
+ },
1828
+ "patterns": [
1829
+ {
1830
+ "include": "#class-name"
1831
+ }
1832
+ ]
1833
+ },
1834
+ {
1835
+ "include": "#constants"
1836
+ }
1837
+ ]
1838
+ },
1839
+ "php_doc": {
1840
+ "patterns": [
1841
+ {
1842
+ "comment": "PHPDocumentor only recognises lines with an asterisk as the first non-whitespaces character",
1843
+ "match": "^(?!\\s*\\*).*$\\n?",
1844
+ "name": "invalid.illegal.missing-asterisk.phpdoc.php"
1845
+ },
1846
+ {
1847
+ "captures": {
1848
+ "1": {
1849
+ "name": "keyword.other.phpdoc.php"
1850
+ },
1851
+ "3": {
1852
+ "name": "storage.modifier.php"
1853
+ },
1854
+ "4": {
1855
+ "name": "invalid.illegal.wrong-access-type.phpdoc.php"
1856
+ }
1857
+ },
1858
+ "match": "^\\s*\\*\\s*(@access)\\s+((public|private|protected)|(.+))\\s*$"
1859
+ },
1860
+ {
1861
+ "captures": {
1862
+ "1": {
1863
+ "name": "keyword.other.phpdoc.php"
1864
+ },
1865
+ "2": {
1866
+ "name": "markup.underline.link.php"
1867
+ }
1868
+ },
1869
+ "match": "(@xlink)\\s+(.+)\\s*$"
1870
+ },
1871
+ {
1872
+ "match": "\\@(a(pi|bstract|uthor)|c(ategory|opyright)|example|global|internal|li(cense|nk)|method|p(roperty(\\-read|\\-write|)|ackage|aram)|return|s(ee|ince|ource|tatic|ubpackage)|t(hrows|odo)|v(ar|ersion)|uses|deprecated|final|ignore)\\b",
1873
+ "name": "keyword.other.phpdoc.php"
1874
+ },
1875
+ {
1876
+ "captures": {
1877
+ "1": {
1878
+ "name": "keyword.other.phpdoc.php"
1879
+ }
1880
+ },
1881
+ "match": "\\{(@(link)).+?\\}",
1882
+ "name": "meta.tag.inline.phpdoc.php"
1883
+ }
1884
+ ]
1885
+ },
1886
+ "regex-double-quoted": {
1887
+ "begin": "(?x)\"/ (?= (\\\\.|[^\"/])++/[imsxeADSUXu]*\" )",
1888
+ "beginCaptures": {
1889
+ "0": {
1890
+ "name": "punctuation.definition.string.begin.php"
1891
+ }
1892
+ },
1893
+ "end": "(/)([imsxeADSUXu]*)(\")",
1894
+ "endCaptures": {
1895
+ "0": {
1896
+ "name": "punctuation.definition.string.end.php"
1897
+ }
1898
+ },
1899
+ "name": "string.regexp.double-quoted.php",
1900
+ "patterns": [
1901
+ {
1902
+ "comment": "Escaped from the regexp – there can also be 2 backslashes (since 1 will escape the first)",
1903
+ "match": "(\\\\){1,2}[.$^\\[\\]{}]",
1904
+ "name": "constant.character.escape.regex.php"
1905
+ },
1906
+ {
1907
+ "include": "#interpolation"
1908
+ },
1909
+ {
1910
+ "captures": {
1911
+ "1": {
1912
+ "name": "punctuation.definition.arbitrary-repetition.php"
1913
+ },
1914
+ "3": {
1915
+ "name": "punctuation.definition.arbitrary-repetition.php"
1916
+ }
1917
+ },
1918
+ "match": "(\\{)\\d+(,\\d+)?(\\})",
1919
+ "name": "string.regexp.arbitrary-repetition.php"
1920
+ },
1921
+ {
1922
+ "begin": "\\[(?:\\^?\\])?",
1923
+ "captures": {
1924
+ "0": {
1925
+ "name": "punctuation.definition.character-class.php"
1926
+ }
1927
+ },
1928
+ "end": "\\]",
1929
+ "name": "string.regexp.character-class.php",
1930
+ "patterns": [
1931
+ {
1932
+ "include": "#interpolation"
1933
+ }
1934
+ ]
1935
+ },
1936
+ {
1937
+ "match": "[$^+*]",
1938
+ "name": "keyword.operator.regexp.php"
1939
+ }
1940
+ ]
1941
+ },
1942
+ "regex-single-quoted": {
1943
+ "begin": "(?x)'/ (?= ( \\\\ (?: \\\\ (?: \\\\ [\\\\']? | [^'] ) | . ) | [^'/] )++/[imsxeADSUXu]*' )",
1944
+ "beginCaptures": {
1945
+ "0": {
1946
+ "name": "punctuation.definition.string.begin.php"
1947
+ }
1948
+ },
1949
+ "end": "(/)([imsxeADSUXu]*)(')",
1950
+ "endCaptures": {
1951
+ "0": {
1952
+ "name": "punctuation.definition.string.end.php"
1953
+ }
1954
+ },
1955
+ "name": "string.regexp.single-quoted.php",
1956
+ "patterns": [
1957
+ {
1958
+ "captures": {
1959
+ "1": {
1960
+ "name": "punctuation.definition.arbitrary-repetition.php"
1961
+ },
1962
+ "3": {
1963
+ "name": "punctuation.definition.arbitrary-repetition.php"
1964
+ }
1965
+ },
1966
+ "match": "(\\{)\\d+(,\\d+)?(\\})",
1967
+ "name": "string.regexp.arbitrary-repetition.php"
1968
+ },
1969
+ {
1970
+ "begin": "\\[(?:\\^?\\])?",
1971
+ "captures": {
1972
+ "0": {
1973
+ "name": "punctuation.definition.character-class.php"
1974
+ }
1975
+ },
1976
+ "end": "\\]",
1977
+ "name": "string.regexp.character-class.php",
1978
+ "patterns": [
1979
+ {
1980
+ "include": "#single_quote_regex_escape"
1981
+ }
1982
+ ]
1983
+ },
1984
+ {
1985
+ "match": "[$^+*]",
1986
+ "name": "keyword.operator.regexp.php"
1987
+ },
1988
+ {
1989
+ "include": "#single_quote_regex_escape"
1990
+ }
1991
+ ],
1992
+ "repository": {
1993
+ "single_quote_regex_escape": {
1994
+ "comment": "Support both PHP string and regex escaping",
1995
+ "match": "(?x) \\\\ (?: \\\\ (?: \\\\ [\\\\']? | [^'] ) | . )",
1996
+ "name": "constant.character.escape.php"
1997
+ }
1998
+ }
1999
+ },
2000
+ "sql-string-double-quoted": {
2001
+ "begin": "\"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)",
2002
+ "beginCaptures": {
2003
+ "0": {
2004
+ "name": "punctuation.definition.string.begin.php"
2005
+ }
2006
+ },
2007
+ "contentName": "source.sql.embedded.php",
2008
+ "end": "\"",
2009
+ "endCaptures": {
2010
+ "0": {
2011
+ "name": "punctuation.definition.string.end.php"
2012
+ }
2013
+ },
2014
+ "name": "string.quoted.double.sql.php",
2015
+ "patterns": [
2016
+ {
2017
+ "match": "#(\\\\\"|[^\"])*(?=\"|$\\n?)",
2018
+ "name": "comment.line.number-sign.sql"
2019
+ },
2020
+ {
2021
+ "match": "--(\\\\\"|[^\"])*(?=\"|$\\n?)",
2022
+ "name": "comment.line.double-dash.sql"
2023
+ },
2024
+ {
2025
+ "match": "\\\\[\\\\\"`']",
2026
+ "name": "constant.character.escape.php"
2027
+ },
2028
+ {
2029
+ "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\n\t\t\t\t\tSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
2030
+ "match": "'(?=((\\\\')|[^'\"])*(\"|$))",
2031
+ "name": "string.quoted.single.unclosed.sql"
2032
+ },
2033
+ {
2034
+ "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\n\t\t\t\t\tSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
2035
+ "match": "`(?=((\\\\`)|[^`\"])*(\"|$))",
2036
+ "name": "string.quoted.other.backtick.unclosed.sql"
2037
+ },
2038
+ {
2039
+ "begin": "'",
2040
+ "end": "'",
2041
+ "name": "string.quoted.single.sql",
2042
+ "patterns": [
2043
+ {
2044
+ "include": "#interpolation"
2045
+ }
2046
+ ]
2047
+ },
2048
+ {
2049
+ "begin": "`",
2050
+ "end": "`",
2051
+ "name": "string.quoted.other.backtick.sql",
2052
+ "patterns": [
2053
+ {
2054
+ "include": "#interpolation"
2055
+ }
2056
+ ]
2057
+ },
2058
+ {
2059
+ "include": "#interpolation"
2060
+ },
2061
+ {
2062
+ "include": "source.sql"
2063
+ }
2064
+ ]
2065
+ },
2066
+ "sql-string-single-quoted": {
2067
+ "begin": "'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)",
2068
+ "beginCaptures": {
2069
+ "0": {
2070
+ "name": "punctuation.definition.string.begin.php"
2071
+ }
2072
+ },
2073
+ "contentName": "source.sql.embedded.php",
2074
+ "end": "'",
2075
+ "endCaptures": {
2076
+ "0": {
2077
+ "name": "punctuation.definition.string.end.php"
2078
+ }
2079
+ },
2080
+ "name": "string.quoted.single.sql.php",
2081
+ "patterns": [
2082
+ {
2083
+ "match": "#(\\\\'|[^'])*(?='|$\\n?)",
2084
+ "name": "comment.line.number-sign.sql"
2085
+ },
2086
+ {
2087
+ "match": "--(\\\\'|[^'])*(?='|$\\n?)",
2088
+ "name": "comment.line.double-dash.sql"
2089
+ },
2090
+ {
2091
+ "match": "\\\\[\\\\'`\"]",
2092
+ "name": "constant.character.escape.php"
2093
+ },
2094
+ {
2095
+ "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\n\t\t\t\t\tSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
2096
+ "match": "`(?=((\\\\`)|[^`'])*('|$))",
2097
+ "name": "string.quoted.other.backtick.unclosed.sql"
2098
+ },
2099
+ {
2100
+ "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\n\t\t\t\t\tSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
2101
+ "match": "\"(?=((\\\\\")|[^\"'])*('|$))",
2102
+ "name": "string.quoted.double.unclosed.sql"
2103
+ },
2104
+ {
2105
+ "include": "source.sql"
2106
+ }
2107
+ ]
2108
+ },
2109
+ "string-backtick": {
2110
+ "begin": "`",
2111
+ "beginCaptures": {
2112
+ "0": {
2113
+ "name": "punctuation.definition.string.begin.php"
2114
+ }
2115
+ },
2116
+ "end": "`",
2117
+ "endCaptures": {
2118
+ "0": {
2119
+ "name": "punctuation.definition.string.end.php"
2120
+ }
2121
+ },
2122
+ "name": "string.interpolated.php",
2123
+ "patterns": [
2124
+ {
2125
+ "match": "\\\\.",
2126
+ "name": "constant.character.escape.php"
2127
+ },
2128
+ {
2129
+ "include": "#interpolation"
2130
+ }
2131
+ ]
2132
+ },
2133
+ "string-double-quoted": {
2134
+ "begin": "\"",
2135
+ "beginCaptures": {
2136
+ "0": {
2137
+ "name": "punctuation.definition.string.begin.php"
2138
+ }
2139
+ },
2140
+ "comment": "This contentName is just to allow the usage of “select scope” to select the string contents first, then the string with quotes",
2141
+ "contentName": "meta.string-contents.quoted.double.php",
2142
+ "end": "\"",
2143
+ "endCaptures": {
2144
+ "0": {
2145
+ "name": "punctuation.definition.string.end.php"
2146
+ }
2147
+ },
2148
+ "name": "string.quoted.double.php",
2149
+ "patterns": [
2150
+ {
2151
+ "include": "#interpolation"
2152
+ }
2153
+ ]
2154
+ },
2155
+ "string-single-quoted": {
2156
+ "begin": "'",
2157
+ "beginCaptures": {
2158
+ "0": {
2159
+ "name": "punctuation.definition.string.begin.php"
2160
+ }
2161
+ },
2162
+ "contentName": "meta.string-contents.quoted.single.php",
2163
+ "end": "'",
2164
+ "endCaptures": {
2165
+ "0": {
2166
+ "name": "punctuation.definition.string.end.php"
2167
+ }
2168
+ },
2169
+ "name": "string.quoted.single.php",
2170
+ "patterns": [
2171
+ {
2172
+ "match": "\\\\[\\\\']",
2173
+ "name": "constant.character.escape.php"
2174
+ }
2175
+ ]
2176
+ },
2177
+ "strings": {
2178
+ "patterns": [
2179
+ {
2180
+ "include": "#regex-double-quoted"
2181
+ },
2182
+ {
2183
+ "include": "#sql-string-double-quoted"
2184
+ },
2185
+ {
2186
+ "include": "#string-double-quoted"
2187
+ },
2188
+ {
2189
+ "include": "#regex-single-quoted"
2190
+ },
2191
+ {
2192
+ "include": "#sql-string-single-quoted"
2193
+ },
2194
+ {
2195
+ "include": "#string-single-quoted"
2196
+ }
2197
+ ]
2198
+ },
2199
+ "support": {
2200
+ "patterns": [
2201
+ {
2202
+ "match": "(?i)\\bapc_(s(tore|ma_info)|c(ompile_file|lear_cache|a(s|che_info))|inc|de(c|fine_constants|lete(_file)?)|exists|fetch|load_constants|add|bin_(dump(file)?|load(file)?))\\b",
2203
+ "name": "support.function.apc.php"
2204
+ },
2205
+ {
2206
+ "match": "(?i)\\b(s(huffle|izeof|ort)|n(ext|at(sort|casesort))|c(o(unt|mpact)|urrent)|in_array|u(sort|ksort|asort)|p(os|rev)|e(nd|ach|xtract)|k(sort|ey(_exists)?|rsort)|list|a(sort|r(sort|ray(_(s(hift|um|plice|earch|lice)|c(h(unk|ange_key_case)|o(unt_values|lumn|mbine))|intersect(_(u(key|assoc)|key|assoc))?|diff(_(u(key|assoc)|key|assoc))?|u(n(shift|ique)|intersect(_(uassoc|assoc))?|diff(_(uassoc|assoc))?)|p(op|ush|ad|roduct)|values|key(s|_exists)|f(il(ter|l(_keys)?)|lip)|walk(_recursive)?|r(e(duce|place(_recursive)?|verse)|and)|m(ultisort|erge(_recursive)?|ap)))?))|r(sort|eset|ange))\\b",
2207
+ "name": "support.function.array.php"
2208
+ },
2209
+ {
2210
+ "match": "(?i)\\b(s(how_source|ys_getloadavg|leep)|highlight_(string|file)|con(stant|nection_(status|aborted))|time_(sleep_until|nanosleep)|ignore_user_abort|d(ie|efine(d)?)|u(sleep|n(iqid|pack))|__halt_compiler|p(hp_(strip_whitespace|check_syntax)|ack)|e(val|xit)|get_browser)\\b",
2211
+ "name": "support.function.basic_functions.php"
2212
+ },
2213
+ {
2214
+ "match": "(?i)\\bbc(s(cale|ub|qrt)|comp|div|pow(mod)?|add|m(od|ul))\\b",
2215
+ "name": "support.function.bcmath.php"
2216
+ },
2217
+ {
2218
+ "match": "(?i)\\bblenc_encrypt\\b",
2219
+ "name": "support.function.blenc.php"
2220
+ },
2221
+ {
2222
+ "match": "(?i)\\bbz(c(ompress|lose)|open|decompress|err(str|no|or)|flush|write|read)\\b",
2223
+ "name": "support.function.bz2.php"
2224
+ },
2225
+ {
2226
+ "match": "(?i)\\b(GregorianToJD|cal_(to_jd|info|days_in_month|from_jd)|unixtojd|jdto(unix|jewish)|easter_da(ys|te)|J(ulianToJD|ewishToJD|D(MonthName|To(Gregorian|Julian|French)|DayOfWeek))|FrenchToJD)\\b",
2227
+ "name": "support.function.calendar.php"
2228
+ },
2229
+ {
2230
+ "match": "(?i)\\b(c(lass_(exists|alias)|all_user_method(_array)?)|trait_exists|i(s_(subclass_of|a)|nterface_exists)|__autoload|property_exists|get_(c(lass(_(vars|methods))?|alled_class)|object_vars|declared_(classes|traits|interfaces)|parent_class)|method_exists)\\b",
2231
+ "name": "support.function.classobj.php"
2232
+ },
2233
+ {
2234
+ "match": "(?i)\\b(com_(create_guid|print_typeinfo|event_sink|load_typelib|get_active_object|message_pump)|variant_(s(ub|et(_type)?)|n(ot|eg)|c(a(st|t)|mp)|i(nt|div|mp)|or|d(iv|ate_(to_timestamp|from_timestamp))|pow|eqv|fix|a(nd|dd|bs)|round|get_type|xor|m(od|ul)))\\b",
2235
+ "name": "support.function.com.php"
2236
+ },
2237
+ {
2238
+ "match": "(?i)\\bctype_(space|cntrl|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit)\\b",
2239
+ "name": "support.function.ctype.php"
2240
+ },
2241
+ {
2242
+ "match": "(?i)\\bcurl_(s(hare_(setopt|close|init)|trerror|etopt(_array)?)|c(opy_handle|lose)|init|unescape|pause|e(scape|rr(no|or)|xec)|version|file_create|reset|getinfo|multi_(s(trerror|e(topt|lect))|close|in(it|fo_read)|exec|add_handle|remove_handle|getcontent))\\b",
2243
+ "name": "support.function.curl.php"
2244
+ },
2245
+ {
2246
+ "match": "(?i)\\b(str(totime|ptime|ftime)|checkdate|time(zone_(name_(from_abbr|get)|transitions_get|identifiers_list|o(pen|ffset_get)|version_get|location_get|abbreviations_list))?|idate|date(_(su(n(set|_info|rise)|b)|create(_(immutable(_from_format)?|from_format))?|time(stamp_(set|get)|zone_(set|get)|_set)|i(sodate_set|nterval_(create_from_date_string|format))|offset_get|d(iff|efault_timezone_(set|get)|ate_set)|parse(_from_format)?|format|add|get_last_errors|modify))?|localtime|g(et(timeofday|date)|m(strftime|date|mktime))|m(icrotime|ktime))\\b",
2247
+ "name": "support.function.datetime.php"
2248
+ },
2249
+ {
2250
+ "match": "(?i)\\bdba_(sync|handlers|nextkey|close|insert|op(timize|en)|delete|popen|exists|key_split|f(irstkey|etch)|list|replace)\\b",
2251
+ "name": "support.function.dba.php"
2252
+ },
2253
+ {
2254
+ "match": "(?i)\\bdbx_(sort|c(o(nnect|mpare)|lose)|e(scape_string|rror)|query|fetch_row)\\b",
2255
+ "name": "support.function.dbx.php"
2256
+ },
2257
+ {
2258
+ "match": "(?i)\\b(scandir|c(h(dir|root)|losedir)|opendir|dir|re(winddir|addir)|getcwd)\\b",
2259
+ "name": "support.function.dir.php"
2260
+ },
2261
+ {
2262
+ "match": "(?i)\\beio_(s(y(nc(_file_range|fs)?|mlink)|tat(vfs)?|e(ndfile|t_m(in_parallel|ax_(idle|p(oll_(time|reqs)|arallel)))|ek))|n(threads|op|pending|re(qs|ady))|c(h(own|mod)|ustom|lose|ancel)|truncate|init|open|dup2|u(nlink|time)|poll|event_loop|f(s(ync|tat(vfs)?)|ch(own|mod)|truncate|datasync|utime|allocate)|write|l(stat|ink)|r(e(name|a(d(dir|link|ahead)?|lpath))|mdir)|g(et_(event_stream|last_error)|rp(_(cancel|limit|add))?)|mk(nod|dir)|busy)\\b",
2263
+ "name": "support.function.eio.php"
2264
+ },
2265
+ {
2266
+ "match": "(?i)\\benchant_(dict_(s(tore_replacement|uggest)|check|is_in_session|describe|quick_check|add_to_(session|personal)|get_error)|broker_(set_ordering|init|d(ict_exists|escribe)|free(_dict)?|list_dicts|request_(dict|pwl_dict)|get_error))\\b",
2267
+ "name": "support.function.enchant.php"
2268
+ },
2269
+ {
2270
+ "match": "(?i)\\b(s(plit(i)?|ql_regcase)|ereg(i(_replace)?|_replace)?)\\b",
2271
+ "name": "support.function.ereg.php"
2272
+ },
2273
+ {
2274
+ "match": "(?i)\\b(set_e(rror_handler|xception_handler)|trigger_error|debug_(print_backtrace|backtrace)|user_error|error_(log|reporting|get_last)|restore_e(rror_handler|xception_handler))\\b",
2275
+ "name": "support.function.errorfunc.php"
2276
+ },
2277
+ {
2278
+ "match": "(?i)\\b(s(hell_exec|ystem)|p(assthru|roc_(nice|close|terminate|open|get_status))|e(scapeshell(cmd|arg)|xec))\\b",
2279
+ "name": "support.function.exec.php"
2280
+ },
2281
+ {
2282
+ "match": "(?i)\\b(exif_(t(humbnail|agname)|imagetype|read_data)|read_exif_data)\\b",
2283
+ "name": "support.function.exif.php"
2284
+ },
2285
+ {
2286
+ "match": "(?i)\\bfann_(s(huffle_train_data|cale_(train(_data)?|input(_train_data)?|output(_train_data)?)|ubset_train_data|et_(s(caling_params|arprop_(step_error_(shift|threshold_factor)|temperature|weight_decay_shift))|ca(scade_(num_candidate_groups|candidate_(stagnation_epochs|change_fraction|limit)|output_(stagnation_epochs|change_fraction)|weight_multiplier|activation_(steepnesses|functions)|m(in_(cand_epochs|out_epochs)|ax_(cand_epochs|out_epochs)))|llback)|train(ing_algorithm|_(stop_function|error_function))|input_scaling_params|output_scaling_params|error_log|quickprop_(decay|mu)|weight(_array)?|learning_(rate|momentum)|activation_(steepness(_(hidden|output|layer))?|function(_(hidden|output|layer))?)|rprop_(increase_factor|de(crease_factor|lta_(zero|m(in|ax))))|bit_fail_limit)|ave(_train)?)|num_(input_train_data|output_train_data)|c(opy|lear_scaling_params|ascadetrain_on_(data|file)|reate_(s(hortcut(_array)?|tandard(_array)?|parse(_array)?)|train(_from_callback)?|from_file))|t(est(_data)?|rain(_(on_(data|file)|epoch))?)|init_weights|d(uplicate_train_data|es(cale_(train|input|output)|troy(_train)?))|print_error|length_train_data|r(un|e(set_(MSE|err(str|no))|ad_train_from_file)|andomize_weights)|get_(sarprop_(step_error_(shift|threshold_factor)|temperature|weight_decay_shift)|n(um_(input|output|layers)|etwork_type)|MSE|c(onnection_(array|rate)|ascade_(num_candidate(s|_groups)|candidate_(stagnation_epochs|change_fraction|limit)|output_(stagnation_epochs|change_fraction)|weight_multiplier|activation_(steepnesses(_count)?|functions(_count)?)|m(in_(cand_epochs|out_epochs)|ax_(cand_epochs|out_epochs))))|t(otal_(neurons|connections)|rain(ing_algorithm|_(stop_function|error_function)))|err(str|no)|quickprop_(decay|mu)|l(earning_(rate|momentum)|ayer_array)|activation_(steepness|function)|rprop_(increase_factor|de(crease_factor|lta_(zero|m(in|ax))))|bi(t_fail(_limit)?|as_array))|merge_train_data)\\b",
2287
+ "name": "support.function.fann.php"
2288
+ },
2289
+ {
2290
+ "match": "(?i)\\b(s(ymlink|tat|et_file_buffer)|c(h(own|grp|mod)|opy|learstatcache)|t(ouch|empnam|mpfile)|is_(dir|uploaded_file|executable|file|writ(eable|able)|link|readable)|d(i(sk(_(total_space|free_space)|freespace)|rname)|elete)|u(nlink|mask)|p(close|open|a(thinfo|rse_ini_(string|file)))|f(s(canf|tat|eek)|nmatch|close|t(ell|runcate)|ile(size|ctime|type|inode|owner|_(put_contents|exists|get_contents)|perms|atime|group|mtime)?|open|p(ut(s|csv)|assthru)|eof|flush|write|lock|read|get(s(s)?|c(sv)?))|l(stat|ch(own|grp)|ink(info)?)|r(e(name|wind|a(d(file|link)|lpath(_cache_(size|get))?))|mdir)|glob|m(ove_uploaded_file|kdir)|basename)\\b",
2291
+ "name": "support.function.file.php"
2292
+ },
2293
+ {
2294
+ "match": "(?i)\\b(finfo_(set_flags|close|open|file|buffer)|mime_content_type)\\b",
2295
+ "name": "support.function.fileinfo.php"
2296
+ },
2297
+ {
2298
+ "match": "(?i)\\bfilter_(has_var|i(nput(_array)?|d)|var(_array)?|list)\\b",
2299
+ "name": "support.function.filter.php"
2300
+ },
2301
+ {
2302
+ "match": "(?i)\\bfastcgi_finish_request\\b",
2303
+ "name": "support.function.fpm.php"
2304
+ },
2305
+ {
2306
+ "match": "(?i)\\b(c(all_user_func(_array)?|reate_function)|unregister_tick_function|f(orward_static_call(_array)?|unc(tion_exists|_(num_args|get_arg(s)?)))|register_(shutdown_function|tick_function)|get_defined_functions)\\b",
2307
+ "name": "support.function.funchand.php"
2308
+ },
2309
+ {
2310
+ "match": "(?i)\\b(ngettext|textdomain|d(ngettext|c(ngettext|gettext)|gettext)|gettext|bind(textdomain|_textdomain_codeset))\\b",
2311
+ "name": "support.function.gettext.php"
2312
+ },
2313
+ {
2314
+ "match": "(?i)\\bgmp_(s(can(1|0)|trval|ign|ub|etbit|qrt(rem)?)|hamdist|ne(g|xtprime)|c(om|lrbit|mp)|testbit|i(n(tval|it|vert)|mport)|or|div(_(q(r)?|r)|exact)?|jacobi|p(o(pcount|w(m)?)|erfect_square|rob_prime)|export|fact|legendre|a(nd|dd|bs)|r(oot(rem)?|andom(_(range|bits))?)|gcd(ext)?|xor|m(od|ul))\\b",
2315
+ "name": "support.function.gmp.php"
2316
+ },
2317
+ {
2318
+ "match": "(?i)\\bhash(_(hmac(_file)?|copy|init|update(_(stream|file))?|pbkdf2|equals|fi(nal|le)|algos))?\\b",
2319
+ "name": "support.function.hash.php"
2320
+ },
2321
+ {
2322
+ "match": "(?i)\\b(http_(s(upport|end_(st(atus|ream)|content_(type|disposition)|data|file|last_modified))|head|negotiate_(c(harset|ontent_type)|language)|c(hunked_decode|ache_(etag|last_modified))|throttle|inflate|d(eflate|ate)|p(ost_(data|fields)|ut_(stream|data|file)|ersistent_handles_(c(ount|lean)|ident)|arse_(headers|cookie|params|message))|re(direct|quest(_(method_(name|unregister|exists|register)|body_encode))?)|get(_request_(headers|body(_stream)?))?|match_(etag|request_header|modified)|build_(str|cookie|url))|ob_(inflatehandler|deflatehandler|etaghandler))\\b",
2323
+ "name": "support.function.http.php"
2324
+ },
2325
+ {
2326
+ "match": "(?i)\\b(iconv(_(s(tr(pos|len|rpos)|ubstr|et_encoding)|get_encoding|mime_(decode(_headers)?|encode)))?|ob_iconv_handler)\\b",
2327
+ "name": "support.function.iconv.php"
2328
+ },
2329
+ {
2330
+ "match": "(?i)\\biis_(s(t(op_serv(ice|er)|art_serv(ice|er))|et_(s(cript_map|erver_rights)|dir_security|app_settings))|add_server|remove_server|get_(s(cript_map|erv(ice_state|er_(rights|by_(comment|path))))|dir_security))\\b",
2331
+ "name": "support.function.iisfunc.php"
2332
+ },
2333
+ {
2334
+ "match": "(?i)\\b(i(ptc(parse|embed)|mage(s(y|cale|tring(up)?|et(style|t(hickness|ile)|interpolation|pixel|brush)|avealpha|x)|c(har(up)?|o(nvolution|py(res(ized|ampled)|merge(gray)?)?|lor(s(total|et|forindex)|closest(hwb|alpha)?|transparent|deallocate|exact(alpha)?|a(t|llocate(alpha)?)|resolve(alpha)?|match))|r(op(auto)?|eate(truecolor|from(string|jpeg|png|w(ebp|bmp)|g(if|d(2(part)?)?)|x(pm|bm)))?))|t(ypes|tf(text|bbox)|ruecolortopalette)|i(struecolor|nterlace)|2wbmp|d(estroy|ashedline)|jpeg|_type_to_(extension|mime_type)|p(s(slantfont|text|e(ncodefont|xtendfont)|freefont|loadfont|bbox)|ng|olygon|alette(copy|totruecolor))|ellipse|f(t(text|bbox)|il(ter|l(toborder|ed(polygon|ellipse|arc|rectangle))?)|ont(height|width)|lip)|w(ebp|bmp)|l(ine|oadfont|ayereffect)|a(ntialias|ffine(matrix(concat|get))?|lphablending|rc)|r(otate|ectangle)|g(if|d(2)?|ammacorrect|rab(screen|window))|xbm))|jpeg2wbmp|png2wbmp|g(d_info|etimagesize(fromstring)?))\\b",
2335
+ "name": "support.function.image.php"
2336
+ },
2337
+ {
2338
+ "match": "(?i)\\b(s(ys_get_temp_dir|et_(time_limit|include_path|magic_quotes_runtime))|cli_(set_process_title|get_process_title)|ini_(set|alter|restore|get(_all)?)|zend_(thread_id|version|logo_guid)|dl|p(hp(credits|info|_(sapi_name|ini_(scanned_files|loaded_file)|uname|logo_guid)|version)|utenv)|extension_loaded|version_compare|assert(_options)?|restore_include_path|g(c_(collect_cycles|disable|enable(d)?)|et(opt|_(c(urrent_user|fg_var)|include(d_files|_path)|defined_constants|extension_funcs|loaded_extensions|required_files|magic_quotes_(runtime|gpc))|env|lastmod|rusage|my(inode|uid|pid|gid)))|m(emory_get_(usage|peak_usage)|a(in|gic_quotes_runtime)))\\b",
2339
+ "name": "support.function.info.php"
2340
+ },
2341
+ {
2342
+ "match": "(?i)\\bibase_(se(t_event_handler|rv(ice_(detach|attach)|er_info))|n(um_(params|fields)|ame_result)|c(o(nnect|mmit(_ret)?)|lose)|trans|d(elete_user|rop_db|b_info)|p(connect|aram_info|repare)|e(rr(code|msg)|xecute)|query|f(ield_info|etch_(object|assoc|row)|ree_(event_handler|query|result))|wait_event|a(dd_user|ffected_rows)|r(ollback(_ret)?|estore)|gen_id|m(odify_user|aintain_db)|b(lob_(c(lose|ancel|reate)|i(nfo|mport)|open|echo|add|get)|ackup))\\b",
2343
+ "name": "support.function.interbase.php"
2344
+ },
2345
+ {
2346
+ "match": "(?i)\\b(n(ormalizer_(normalize|is_normalized)|umfmt_(set_(symbol|text_attribute|pattern|attribute)|create|parse(_currency)?|format(_currency)?|get_(symbol|text_attribute|pattern|error_(code|message)|locale|attribute)))|collator_(s(ort(_with_sort_keys)?|et_(strength|attribute))|c(ompare|reate)|asort|get_(s(trength|ort_key)|error_(code|message)|locale|attribute))|transliterator_(create(_(inverse|from_rules))?|transliterate|list_ids|get_error_(code|message))|i(ntl(cal_get_error_(code|message)|tz_get_error_(code|message)|_(is_failure|error_name|get_error_(code|message)))|dn_to_(u(nicode|tf8)|ascii))|datefmt_(set_(calendar|timezone(_id)?|pattern|lenient)|create|is_lenient|parse|format(_object)?|localtime|get_(calendar(_object)?|time(type|zone(_id)?)|datetype|pattern|error_(code|message)|locale))|locale_(set_default|c(ompose|anonicalize)|parse|filter_matches|lookup|accept_from_http|get_(script|d(isplay_(script|name|variant|language|region)|efault)|primary_language|keywords|all_variants|region))|resourcebundle_(c(ount|reate)|locales|get(_error_(code|message))?)|grapheme_(s(tr(str|i(str|pos)|pos|len|r(ipos|pos))|ubstr)|extract)|msgfmt_(set_pattern|create|parse(_message)?|format(_message)?|get_(pattern|error_(code|message)|locale)))\\b",
2347
+ "name": "support.function.intl.php"
2348
+ },
2349
+ {
2350
+ "match": "(?i)\\bjson_(decode|encode|last_error(_msg)?)\\b",
2351
+ "name": "support.function.json.php"
2352
+ },
2353
+ {
2354
+ "match": "(?i)\\bldap_(s(tart_tls|ort|e(t_(option|rebind_proc)|arch)|asl_bind)|next_(entry|attribute|reference)|c(o(n(nect|trol_paged_result(_response)?)|unt_entries|mpare)|lose)|t61_to_8859|d(n2ufn|elete)|8859_to_t61|unbind|parse_re(sult|ference)|e(scape|rr(no|2str|or)|xplode_dn)|f(irst_(entry|attribute|reference)|ree_result)|list|add|re(name|ad)|get_(option|dn|entries|values(_len)?|attributes)|mod(ify(_batch)?|_(del|add|replace))|bind)\\b",
2355
+ "name": "support.function.ldap.php"
2356
+ },
2357
+ {
2358
+ "match": "(?i)\\blibxml_(set_(streams_context|external_entity_loader)|clear_errors|disable_entity_loader|use_internal_errors|get_(errors|last_error))\\b",
2359
+ "name": "support.function.libxml.php"
2360
+ },
2361
+ {
2362
+ "match": "(?i)\\b(ezmlm_hash|mail)\\b",
2363
+ "name": "support.function.mail.php"
2364
+ },
2365
+ {
2366
+ "match": "(?i)\\b(s(in(h)?|qrt|rand)|h(ypot|exdec)|c(os(h)?|eil)|tan(h)?|is_(nan|infinite|finite)|octdec|de(c(hex|oct|bin)|g2rad)|p(i|ow)|exp(m1)?|f(loor|mod)|l(cg_value|og(1(p|0))?)|a(sin(h)?|cos(h)?|tan(h|2)?|bs)|r(ound|a(nd|d2deg))|getrandmax|m(t_(srand|rand|getrandmax)|in|ax)|b(indec|ase_convert))\\b",
2367
+ "name": "support.function.math.php"
2368
+ },
2369
+ {
2370
+ "match": "(?i)\\bmb_(s(tr(str|cut|to(upper|lower)|i(str|pos|mwidth)|pos|width|len|r(chr|i(chr|pos)|pos))|ubst(itute_character|r(_count)?)|plit|end_mail)|http_(input|output)|c(heck_encoding|onvert_(case|encoding|variables|kana))|internal_encoding|output_handler|de(code_(numericentity|mimeheader)|tect_(order|encoding))|p(arse_str|referred_mime_name)|e(ncod(ing_aliases|e_(numericentity|mimeheader))|reg(i(_replace)?|_(search(_(setpos|init|pos|regs|get(pos|regs)))?|replace(_callback)?|match))?)|l(ist_encodings|anguage)|regex_(set_options|encoding)|get_info)\\b",
2371
+ "name": "support.function.mbstring.php"
2372
+ },
2373
+ {
2374
+ "match": "(?i)\\bm(crypt_(c(fb|reate_iv|bc)|ofb|decrypt|e(nc(_(self_test|is_block_(algorithm(_mode)?|mode)|get_(supported_key_sizes|iv_size|key_size|algorithms_name|modes_name|block_size))|rypt)|cb)|list_(algorithms|modes)|ge(neric(_(init|deinit|end))?|t_(cipher_name|iv_size|key_size|block_size))|module_(self_test|close|is_block_(algorithm(_mode)?|mode)|open|get_(supported_key_sizes|algo_(key_size|block_size))))|decrypt_generic)\\b",
2375
+ "name": "support.function.mcrypt.php"
2376
+ },
2377
+ {
2378
+ "match": "(?i)\\bmemcache_debug\\b",
2379
+ "name": "support.function.memcache.php"
2380
+ },
2381
+ {
2382
+ "match": "(?i)\\bmhash(_(count|keygen_s2k|get_(hash_name|block_size)))?\\b",
2383
+ "name": "support.function.mhash.php"
2384
+ },
2385
+ {
2386
+ "match": "(?i)\\b(log_(cmd_(insert|delete|update)|killcursor|write_batch|reply|getmore)|bson_(decode|encode))\\b",
2387
+ "name": "support.function.mongo.php"
2388
+ },
2389
+ {
2390
+ "match": "(?i)\\bmysql_(s(tat|e(t_charset|lect_db))|num_(fields|rows)|c(onnect|l(ient_encoding|ose)|reate_db)|t(hread_id|ablename)|in(sert_id|fo)|d(ata_seek|rop_db|b_(name|query))|unbuffered_query|p(connect|ing)|e(scape_string|rr(no|or))|query|f(ield_(seek|name|t(ype|able)|flags|len)|etch_(object|field|lengths|a(ssoc|rray)|row)|ree_result)|list_(tables|dbs|processes|fields)|affected_rows|re(sult|al_escape_string)|get_(server_info|host_info|client_info|proto_info))\\b",
2391
+ "name": "support.function.mysql.php"
2392
+ },
2393
+ {
2394
+ "match": "(?i)\\bmysqli_(s(sl_set|t(ore_result|at|mt_(s(tore_result|end_long_data)|next_result|close|init|data_seek|prepare|execute|f(etch|ree_result)|attr_(set|get)|res(ult_metadata|et)|get_(warnings|result)|more_results|bind_(param|result)))|e(nd_(query|long_data)|t_(charset|opt|local_infile_(handler|default))|lect_db)|lave_query|avepoint)|next_result|c(ha(nge_user|racter_set_name)|o(nnect|mmit)|l(ient_encoding|ose))|thread_safe|init|options|d(isable_r(pl_parse|eads_from_master)|ump_debug_info|ebug|ata_seek)|use_result|p(ing|oll|aram_count|repare)|e(scape_string|nable_r(pl_parse|eads_from_master)|xecute|mbedded_server_(start|end))|kill|query|f(ield_seek|etch(_(object|field(s|_direct)?|a(ssoc|ll|rray)|row))?|ree_result)|autocommit|r(ollback|pl_(p(arse_enabled|robe)|query_type)|e(port|fresh|lease_savepoint|a(p_async_query|l_(connect|escape_string|query))))|get_(c(harset|onnection_stats|lient_(stats|info|version)|ache_stats)|warnings|links_stats|metadata)|m(ore_results|ulti_query|aster_query)|b(ind_(param|result)|egin_transaction))\\b",
2395
+ "name": "support.function.mysqli.php"
2396
+ },
2397
+ {
2398
+ "match": "(?i)\\bmysqlnd_memcache_(set|get_config)\\b",
2399
+ "name": "support.function.mysqlnd-memcache.php"
2400
+ },
2401
+ {
2402
+ "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",
2403
+ "name": "support.function.mysqlnd-ms.php"
2404
+ },
2405
+ {
2406
+ "match": "(?i)\\bmysqlnd_qc_(set_(storage_handler|cache_condition|is_select|user_handlers)|clear_cache|get_(normalized_query_trace_log|c(ore_stats|ache_info)|query_trace_log|available_handlers))\\b",
2407
+ "name": "support.function.mysqlnd-qc.php"
2408
+ },
2409
+ {
2410
+ "match": "(?i)\\bmysqlnd_uh_(set_(statement_proxy|connection_proxy)|convert_to_mysqlnd)\\b",
2411
+ "name": "support.function.mysqlnd-uh.php"
2412
+ },
2413
+ {
2414
+ "match": "(?i)\\b(s(yslog|ocket_(set_(timeout|blocking)|get_status)|et(cookie|rawcookie))|h(ttp_response_code|eader(s_(sent|list)|_re(gister_callback|move))?)|c(heckdnsrr|loselog)|i(net_(ntop|pton)|p2long)|openlog|d(ns_(check_record|get_(record|mx))|efine_syslog_variables)|pfsockopen|fsockopen|long2ip|get(servby(name|port)|host(name|by(name(l)?|addr))|protobyn(umber|ame)|mxrr))\\b",
2415
+ "name": "support.function.network.php"
2416
+ },
2417
+ {
2418
+ "match": "(?i)\\bnsapi_(virtual|re(sponse_headers|quest_headers))\\b",
2419
+ "name": "support.function.nsapi.php"
2420
+ },
2421
+ {
2422
+ "match": "(?i)\\boci(s(tatementtype|e(tprefetch|rverversion)|avelob(file)?)|n(umcols|ew(c(ollection|ursor)|descriptor)|logon)|c(o(l(umn(s(cale|ize)|name|type(raw)?|isnull|precision)|l(size|trim|a(ssign(elem)?|ppend)|getelem|max))|mmit)|loselob|ancel)|internaldebug|definebyname|_(s(tatement_type|e(t_(client_i(nfo|dentifier)|prefetch|edition|action|module_name)|rver_version))|n(um_(fields|rows)|ew_(c(o(nnect|llection)|ursor)|descriptor))|c(o(nnect|mmit)|l(ient_version|ose)|ancel)|internal_debug|define_by_name|p(connect|a(ssword_change|rse))|e(rror|xecute)|f(ield_(s(cale|ize)|name|type(_raw)?|is_null|precision)|etch(_(object|a(ssoc|ll|rray)|row))?|ree_(statement|descriptor))|lob_(copy|is_equal)|r(ollback|esult)|get_implicit_resultset|bind_(array_by_name|by_name))|p(logon|arse)|e(rror|xecute)|f(etch(statement|into)?|ree(statement|c(ollection|ursor)|desc))|write(temporarylob|lobtofile)|lo(adlob|go(n|ff))|r(o(wcount|llback)|esult)|bindbyname)\\b",
2423
+ "name": "support.function.oci8.php"
2424
+ },
2425
+ {
2426
+ "match": "(?i)\\bopcache_(compile_file|invalidate|reset|get_(status|configuration))\\b",
2427
+ "name": "support.function.opcache.php"
2428
+ },
2429
+ {
2430
+ "match": "(?i)\\bopenssl_(s(ign|pki_(new|export(_challenge)?|verify)|eal)|c(sr_(sign|new|export(_to_file)?|get_(subject|public_key))|ipher_iv_length)|open|d(h_compute_key|igest|ecrypt)|p(ublic_(decrypt|encrypt)|k(cs(12_(export(_to_file)?|read)|7_(sign|decrypt|encrypt|verify))|ey_(new|export(_to_file)?|free|get_(details|p(ublic|rivate))))|rivate_(decrypt|encrypt)|bkdf2)|e(ncrypt|rror_string)|verify|free_key|random_pseudo_bytes|get_(c(ipher_methods|ert_locations)|p(ublickey|rivatekey)|md_methods)|x509_(check(_private_key|purpose)|parse|export(_to_file)?|f(ingerprint|ree)|read))\\b",
2431
+ "name": "support.function.openssl.php"
2432
+ },
2433
+ {
2434
+ "match": "(?i)\\b(o(utput_(add_rewrite_var|reset_rewrite_vars)|b_(start|clean|implicit_flush|end_(clean|flush)|flush|list_handlers|g(zhandler|et_(status|c(ontents|lean)|flush|le(ngth|vel)))))|flush)\\b",
2435
+ "name": "support.function.output.php"
2436
+ },
2437
+ {
2438
+ "match": "(?i)\\bpassword_(hash|needs_rehash|verify|get_info)\\b",
2439
+ "name": "support.function.password.php"
2440
+ },
2441
+ {
2442
+ "match": "(?i)\\bpcntl_(s(trerror|ig(nal(_dispatch)?|timedwait|procmask|waitinfo)|etpriority)|e(rrno|xec)|fork|w(stopsig|termsig|if(s(topped|ignaled)|exited)|exitstatus|ait(pid)?)|alarm|get(_last_error|priority))\\b",
2443
+ "name": "support.function.pcntl.php"
2444
+ },
2445
+ {
2446
+ "match": "(?i)\\bpg_(s(ocket|e(nd_(prepare|execute|query(_params)?)|t_(client_encoding|error_verbosity)|lect))|host|num_(fields|rows)|c(o(n(sume_input|nect(ion_(status|reset|busy)|_poll)?|vert)|py_(to|from))|l(ient_encoding|ose)|ancel_query)|t(ty|ra(nsaction_status|ce))|insert|options|d(elete|bname)|u(n(trace|escape_bytea)|pdate)|p(connect|ing|ort|ut_line|arameter_status|repare)|e(scape_(string|identifier|literal|bytea)|nd_copy|xecute)|version|query(_params)?|f(ield_(size|n(um|ame)|t(ype(_oid)?|able)|is_null|prtlen)|etch_(object|a(ssoc|ll(_columns)?|rray)|r(ow|esult))|lush|ree_result)|l(o_(seek|c(lose|reate)|t(ell|runcate)|import|open|unlink|export|write|read(_all)?)|ast_(notice|oid|error))|affected_rows|result_(s(tatus|eek)|error(_field)?)|get_(notify|pid|result)|meta_data)\\b",
2447
+ "name": "support.function.pgsql.php"
2448
+ },
2449
+ {
2450
+ "match": "(?i)\\b(virtual|apache_(setenv|note|child_terminate|lookup_uri|re(s(ponse_headers|et_timeout)|quest_headers)|get(_(version|modules)|env))|getallheaders)\\b",
2451
+ "name": "support.function.php_apache.php"
2452
+ },
2453
+ {
2454
+ "match": "(?i)\\bdom_import_simplexml\\b",
2455
+ "name": "support.function.php_dom.php"
2456
+ },
2457
+ {
2458
+ "match": "(?i)\\bftp_(s(sl_connect|ystype|i(te|ze)|et_option)|n(list|b_(continue|put|f(put|get)|get))|c(h(dir|mod)|onnect|dup|lose)|delete|p(ut|wd|asv)|exec|quit|f(put|get)|login|alloc|r(ename|aw(list)?|mdir)|get(_option)?|m(dtm|kdir))\\b",
2459
+ "name": "support.function.php_ftp.php"
2460
+ },
2461
+ {
2462
+ "match": "(?i)\\bimap_(s(can(mailbox)?|tatus|ort|ubscribe|e(t(_quota|flag_full|acl)|arch)|avebody)|header(s|info)?|num_(recent|msg)|c(heck|l(ose|earflag_full)|reate(mailbox)?)|t(hread|imeout)|open|delete(mailbox)?|8bit|u(n(subscribe|delete)|tf(7_(decode|encode)|8)|id)|ping|e(rrors|xpunge)|qprint|fetch(structure|header|text|_overview|mime|body)|l(sub|ist(s(can|ubscribed)|mailbox)?|ast_error)|a(ppend|lerts)|r(e(name(mailbox)?|open)|fc822_(parse_(headers|adrlist)|write_address))|g(c|et(subscribed|_quota(root)?|acl|mailboxes))|m(sgno|ime_header_decode|ail(_(co(py|mpose)|move)|boxmsginfo)?)|b(inary|ody(struct)?|ase64))\\b",
2463
+ "name": "support.function.php_imap.php"
2464
+ },
2465
+ {
2466
+ "match": "(?i)\\bmssql_(select_db|n(um_(fields|rows)|ext_result)|c(onnect|lose)|init|data_seek|pconnect|execute|query|f(ield_(seek|name|type|length)|etch_(object|field|a(ssoc|rray)|row|batch)|ree_(statement|result))|r(ows_affected|esult)|g(uid_string|et_last_message)|min_(error_severity|message_severity)|bind)\\b",
2467
+ "name": "support.function.php_mssql.php"
2468
+ },
2469
+ {
2470
+ "match": "(?i)\\bodbc_(s(tatistics|pecialcolumns|etoption)|n(um_(fields|rows)|ext_result)|c(o(nnect|lumn(s|privileges)|mmit)|ursor|lose(_all)?)|table(s|privileges)|d(o|ata_source)|p(connect|r(imarykeys|ocedure(s|columns)|epare))|e(rror(msg)?|xec(ute)?)|f(ield_(scale|n(um|ame)|type|precision|len)|oreignkeys|etch_(into|object|array|row)|ree_result)|longreadlen|autocommit|r(ollback|esult(_all)?)|gettypeinfo|binmode)\\b",
2471
+ "name": "support.function.php_odbc.php"
2472
+ },
2473
+ {
2474
+ "match": "(?i)\\bpreg_(split|quote|filter|last_error|replace(_callback)?|grep|match(_all)?)\\b",
2475
+ "name": "support.function.php_pcre.php"
2476
+ },
2477
+ {
2478
+ "match": "(?i)\\b(spl_(classes|object_hash|autoload(_(call|unregister|extensions|functions|register))?)|class_(implements|uses|parents)|iterator_(count|to_array|apply))\\b",
2479
+ "name": "support.function.php_spl.php"
2480
+ },
2481
+ {
2482
+ "match": "(?i)\\bzip_(close|open|entry_(name|c(ompress(ionmethod|edsize)|lose)|open|filesize|read)|read)\\b",
2483
+ "name": "support.function.php_zip.php"
2484
+ },
2485
+ {
2486
+ "match": "(?i)\\bposix_(s(trerror|et(sid|uid|pgid|e(uid|gid)|gid))|ctermid|t(tyname|imes)|i(satty|nitgroups)|uname|errno|kill|access|get(sid|cwd|uid|_last_error|p(id|pid|w(nam|uid)|g(id|rp))|e(uid|gid)|login|rlimit|g(id|r(nam|oups|gid)))|mk(nod|fifo))\\b",
2487
+ "name": "support.function.posix.php"
2488
+ },
2489
+ {
2490
+ "match": "(?i)\\bset(threadtitle|proctitle)\\b",
2491
+ "name": "support.function.proctitle.php"
2492
+ },
2493
+ {
2494
+ "match": "(?i)\\bpspell_(s(tore_replacement|uggest|ave_wordlist)|new(_(config|personal))?|c(heck|onfig_(save_repl|create|ignore|d(ict_dir|ata_dir)|personal|r(untogether|epl)|mode)|lear_session)|add_to_(session|personal))\\b",
2495
+ "name": "support.function.pspell.php"
2496
+ },
2497
+ {
2498
+ "match": "(?i)\\breadline(_(c(ompletion_function|lear_history|allback_(handler_(install|remove)|read_char))|info|on_new_line|write_history|list_history|add_history|re(display|ad_history)))?\\b",
2499
+ "name": "support.function.readline.php"
2500
+ },
2501
+ {
2502
+ "match": "(?i)\\brecode(_(string|file))?\\b",
2503
+ "name": "support.function.recode.php"
2504
+ },
2505
+ {
2506
+ "match": "(?i)\\brrd(c_disconnect|_(create|tune|info|update|error|version|f(irst|etch)|last(update)?|restore|graph|xport))\\b",
2507
+ "name": "support.function.rrd.php"
2508
+ },
2509
+ {
2510
+ "match": "(?i)\\b(s(hm_(has_var|detach|put_var|attach|remove(_var)?|get_var)|em_(acquire|re(lease|move)|get))|ftok|msg_(s(tat_queue|e(nd|t_queue))|queue_exists|re(ceive|move_queue)|get_queue))\\b",
2511
+ "name": "support.function.sem.php"
2512
+ },
2513
+ {
2514
+ "match": "(?i)\\bsession_(s(ta(tus|rt)|et_(save_handler|cookie_params)|ave_path)|name|c(ommit|ache_(expire|limiter))|i(s_registered|d)|de(stroy|code)|un(set|register)|encode|write_close|abort|re(set|g(ister(_shutdown)?|enerate_id))|get_cookie_params|module_name)\\b",
2515
+ "name": "support.function.session.php"
2516
+ },
2517
+ {
2518
+ "match": "(?i)\\bshmop_(size|close|open|delete|write|read)\\b",
2519
+ "name": "support.function.shmop.php"
2520
+ },
2521
+ {
2522
+ "match": "(?i)\\bsimplexml_(import_dom|load_(string|file))\\b",
2523
+ "name": "support.function.simplexml.php"
2524
+ },
2525
+ {
2526
+ "match": "(?i)\\bsnmp(set|2_(set|walk|real_walk|get(next)?)|_(set_(oid_(numeric_print|output_format)|enum_print|valueretrieval|quick_print)|read_mib|get_(valueretrieval|quick_print))|3_(set|walk|real_walk|get(next)?)|walk(oid)?|realwalk|get(next)?)\\b",
2527
+ "name": "support.function.snmp.php"
2528
+ },
2529
+ {
2530
+ "match": "(?i)\\b(is_soap_fault|use_soap_error_handler)\\b",
2531
+ "name": "support.function.soap.php"
2532
+ },
2533
+ {
2534
+ "match": "(?i)\\bsocket_(s(hutdown|trerror|e(nd(to|msg)?|t_(nonblock|option|block)|lect))|c(onnect|l(ose|ear_error)|reate(_(pair|listen))?|msg_space)|import_stream|write|l(isten|ast_error)|accept|re(cv(from|msg)?|ad)|get(sockname|_option|peername)|bind)\\b",
2535
+ "name": "support.function.sockets.php"
2536
+ },
2537
+ {
2538
+ "match": "(?i)\\bsqlite_(s(ingle_query|eek)|has_(prev|more)|n(um_(fields|rows)|ext)|c(hanges|olumn|urrent|lose|reate_(function|aggregate))|open|u(nbuffered_query|df_(decode_binary|encode_binary))|p(open|rev)|e(scape_string|rror_string|xec)|valid|key|query|f(ield_name|etch_(s(tring|ingle)|column_types|object|a(ll|rray))|actory)|l(ib(encoding|version)|ast_(insert_rowid|error))|array_query|rewind|busy_timeout)\\b",
2539
+ "name": "support.function.sqlite.php"
2540
+ },
2541
+ {
2542
+ "match": "(?i)\\bsqlsrv_(se(nd_stream_data|rver_info)|has_rows|n(um_(fields|rows)|ext_result)|c(o(n(nect|figure)|mmit)|l(ient_info|ose)|ancel)|prepare|e(rrors|xecute)|query|f(ield_metadata|etch(_(object|array))?|ree_stmt)|ro(ws_affected|llback)|get_(config|field)|begin_transaction)\\b",
2543
+ "name": "support.function.sqlsrv.php"
2544
+ },
2545
+ {
2546
+ "match": "(?i)\\bstats_(s(ta(ndard_deviation|t_(noncentral_t|correlation|in(nerproduct|dependent_t)|p(owersum|ercentile|aired_t)|gennch|binomial_coef))|kew)|harmonic_mean|c(ovariance|df_(n(oncentral_(chisquare|f)|egative_binomial)|c(hisquare|auchy)|t|uniform|poisson|exponential|f|weibull|l(ogistic|aplace)|gamma|b(inomial|eta)))|den(s_(n(ormal|egative_binomial)|c(hisquare|auchy)|t|pmf_(hypergeometric|poisson|binomial)|exponential|f|weibull|l(ogistic|aplace)|gamma|beta)|_uniform)|variance|kurtosis|absolute_deviation|rand_(setall|phrase_to_seeds|ranf|ge(n_(no(ncen(tral_(t|f)|ral_chisquare)|rmal)|chisquare|t|i(nt|uniform|poisson|binomial(_negative)?)|exponential|f(uniform)?|gamma|beta)|t_seeds)))\\b",
2547
+ "name": "support.function.stats.php"
2548
+ },
2549
+ {
2550
+ "match": "(?i)\\bs(tream_(s(ocket_(s(hutdown|e(ndto|rver))|client|pair|enable_crypto|accept|recvfrom|get_name)|upports_lock|e(t_(chunk_size|timeout|write_buffer|read_buffer|blocking)|lect))|notification_callback|co(ntext_(set_(option|default|params)|create|get_(options|default|params))|py_to_stream)|is_local|encoding|filter_(prepend|append|re(gister|move))|wrapper_(unregister|re(store|gister))|re(solve_include_path|gister_wrapper)|get_(contents|transports|filters|wrappers|line|meta_data)|bucket_(new|prepend|append|make_writeable))|et_socket_blocking)\\b",
2551
+ "name": "support.function.streamsfuncs.php"
2552
+ },
2553
+ {
2554
+ "match": "(?i)\\b(s(scanf|ha1(_file)?|tr(s(tr|pn)|n(c(asecmp|mp)|atc(asecmp|mp))|c(spn|hr|oll|asecmp|mp)|t(o(upper|k|lower)|r)|i(str|p(slashes|cslashes|os|_tags))|_(s(huffle|plit)|ireplace|pad|word_count|r(ot13|ep(eat|lace))|getcsv)|p(os|brk)|len|r(chr|ipos|pos|ev))|imilar_text|oundex|ubstr(_(co(unt|mpare)|replace))?|printf|etlocale)|h(tml(specialchars(_decode)?|_entity_decode|entities)|e(x2bin|brev(c)?))|n(umber_format|l(2br|_langinfo))|c(h(op|unk_split|r)|o(nvert_(cyr_string|uu(decode|encode))|unt_chars)|r(ypt|c32))|trim|implode|ord|uc(first|words)|join|p(arse_str|rint(f)?)|e(cho|xplode)|v(sprintf|printf|fprintf)|quote(d_printable_(decode|encode)|meta)|fprintf|wordwrap|l(cfirst|trim|ocaleconv|evenshtein)|add(slashes|cslashes)|rtrim|get_html_translation_table|m(oney_format|d5(_file)?|etaphone)|bin2hex)\\b",
2555
+ "name": "support.function.string.php"
2556
+ },
2557
+ {
2558
+ "match": "(?i)\\bsybase_(se(t_message_handler|lect_db)|num_(fields|rows)|c(onnect|lose)|d(eadlock_retry_count|ata_seek)|unbuffered_query|pconnect|query|f(ield_seek|etch_(object|field|a(ssoc|rray)|row)|ree_result)|affected_rows|result|get_last_message|min_(server_severity|client_severity|error_severity|message_severity))\\b",
2559
+ "name": "support.function.sybase.php"
2560
+ },
2561
+ {
2562
+ "match": "(?i)\\b(taint|is_tainted|untaint)\\b",
2563
+ "name": "support.function.taint.php"
2564
+ },
2565
+ {
2566
+ "match": "(?i)\\b(tidy_(s(et(opt|_encoding)|ave_config)|c(onfig_count|lean_repair)|is_x(html|ml)|diagnose|parse_(string|file)|error_count|warning_count|load_config|access_count|re(set_config|pair_(string|file))|get(opt|_(status|h(tml(_ver)?|ead)|config|o(utput|pt_doc)|r(oot|elease)|body)))|ob_tidyhandler)\\b",
2567
+ "name": "support.function.tidy.php"
2568
+ },
2569
+ {
2570
+ "match": "(?i)\\btoken_(name|get_all)\\b",
2571
+ "name": "support.function.tokenizer.php"
2572
+ },
2573
+ {
2574
+ "match": "(?i)\\btrader_(s(t(och(f|rsi)?|ddev)|in(h)?|u(m|b)|et_(compat|unstable_period)|qrt|ar(ext)?|ma)|ht_(sine|trend(line|mode)|dcp(hase|eriod)|phasor)|natr|c(ci|o(s(h)?|rrel)|dl(s(ho(otingstar|rtline)|t(icksandwich|alledpattern)|pinningtop|eparatinglines)|h(i(kkake(mod)?|ghwave)|omingpigeon|a(ngingman|rami(cross)?|mmer))|c(o(ncealbabyswall|unterattack)|losingmarubozu)|t(hrusting|a(sukigap|kuri)|ristar)|i(n(neck|vertedhammer)|dentical3crows)|2crows|onneck|d(oji(star)?|arkcloudcover|ragonflydoji)|u(nique3river|psidegap2crows)|3(starsinsouth|inside|outside|whitesoldiers|linestrike|blackcrows)|piercing|e(ngulfing|vening(star|dojistar))|kicking(bylength)?|l(ongl(ine|eggeddoji)|adderbottom)|a(dvanceblock|bandonedbaby)|ri(sefall3methods|ckshawman)|g(apsidesidewhite|ravestonedoji)|xsidegap3methods|m(orning(star|dojistar)|a(t(hold|chinglow)|rubozu))|b(elthold|reakaway))|eil|mo)|t(sf|ypprice|3|ema|an(h)?|r(i(x|ma)|ange))|obv|d(iv|ema|x)|ultosc|p(po|lus_d(i|m))|e(rrno|xp|ma)|var|kama|floor|w(clprice|illr|ma)|l(n|inearreg(_(slope|intercept|angle))?|og10)|a(sin|cos|t(an|r)|d(osc|d|x(r)?)?|po|vgprice|roon(osc)?)|r(si|oc(p|r(100)?)?)|get_(compat|unstable_period)|m(i(n(index|us_d(i|m)|max(index)?)?|dp(oint|rice))|om|ult|edprice|fi|a(cd(ext|fix)?|vp|x(index)?|ma)?)|b(op|eta|bands))\\b",
2575
+ "name": "support.function.trader.php"
2576
+ },
2577
+ {
2578
+ "match": "(?i)\\buopz_(co(py|mpose)|implement|overload|delete|undefine|extend|f(unction|lags)|re(store|name|define)|backup)\\b",
2579
+ "name": "support.function.uopz.php"
2580
+ },
2581
+ {
2582
+ "match": "(?i)\\b(http_build_query|url(decode|encode)|parse_url|rawurl(decode|encode)|get_(headers|meta_tags)|base64_(decode|encode))\\b",
2583
+ "name": "support.function.url.php"
2584
+ },
2585
+ {
2586
+ "match": "(?i)\\b(s(trval|e(ttype|rialize))|i(s(set|_(s(calar|tring)|nu(ll|meric)|callable|int(eger)?|object|double|float|long|array|re(source|al)|bool))|ntval|mport_request_variables)|d(oubleval|ebug_zval_dump)|unse(t|rialize)|print_r|empty|var_(dump|export)|floatval|get(type|_(defined_vars|resource_type))|boolval)\\b",
2587
+ "name": "support.function.var.php"
2588
+ },
2589
+ {
2590
+ "match": "(?i)\\bwddx_(serialize_va(lue|rs)|deserialize|packet_(start|end)|add_vars)\\b",
2591
+ "name": "support.function.wddx.php"
2592
+ },
2593
+ {
2594
+ "match": "(?i)\\bxhprof_(sample_(disable|enable)|disable|enable)\\b",
2595
+ "name": "support.function.xhprof.php"
2596
+ },
2597
+ {
2598
+ "match": "(?i)\\b(utf8_(decode|encode)|xml_(set_(start_namespace_decl_handler|notation_decl_handler|character_data_handler|object|default_handler|unparsed_entity_decl_handler|processing_instruction_handler|e(nd_namespace_decl_handler|lement_handler|xternal_entity_ref_handler))|parse(_into_struct|r_(set_option|create(_ns)?|free|get_option))?|error_string|get_(current_(column_number|line_number|byte_index)|error_code)))\\b",
2599
+ "name": "support.function.xml.php"
2600
+ },
2601
+ {
2602
+ "match": "(?i)\\bxmlrpc_(se(t_type|rver_(c(all_method|reate)|destroy|add_introspection_data|register_(introspection_callback|method)))|is_fault|decode(_request)?|parse_method_descriptions|encode(_request)?|get_type)\\b",
2603
+ "name": "support.function.xmlrpc.php"
2604
+ },
2605
+ {
2606
+ "match": "(?i)\\bxmlwriter_(s(tart_(c(omment|data)|d(td(_(e(ntity|lement)|attlist))?|ocument)|pi|element(_ns)?|attribute(_ns)?)|et_indent(_string)?)|text|o(utput_memory|pen_(uri|memory))|end_(c(omment|data)|d(td(_(e(ntity|lement)|attlist))?|ocument)|pi|element|attribute)|f(ull_end_element|lush)|write_(c(omment|data)|dtd(_(e(ntity|lement)|attlist))?|pi|element(_ns)?|attribute(_ns)?|raw))\\b",
2607
+ "name": "support.function.xmlwriter.php"
2608
+ },
2609
+ {
2610
+ "match": "(?i)\\b(zlib_(decode|encode|get_coding_type)|readgzfile|gz(seek|c(ompress|lose)|tell|inflate|open|de(code|flate)|uncompress|p(uts|assthru)|e(ncode|of)|file|write|re(wind|ad)|get(s(s)?|c)))\\b",
2611
+ "name": "support.function.zlib.php"
2612
+ },
2613
+ {
2614
+ "match": "(?i)\\bis_int(eger)?\\b",
2615
+ "name": "support.function.alias.php"
2616
+ }
2617
+ ]
2618
+ },
2619
+ "user-function-call": {
2620
+ "begin": "(?i)(?=[a-z_0-9\\\\]*[a-z_][a-z0-9_]*\\s*\\()",
2621
+ "end": "(?i)[a-z_][a-z_0-9]*(?=\\s*\\()",
2622
+ "name": "meta.function-call.php",
2623
+ "patterns": [
2624
+ {
2625
+ "include": "#namespace"
2626
+ }
2627
+ ]
2628
+ },
2629
+ "var_basic": {
2630
+ "patterns": [
2631
+ {
2632
+ "captures": {
2633
+ "1": {
2634
+ "name": "punctuation.definition.variable.php"
2635
+ }
2636
+ },
2637
+ "match": "(?x)\n \t\t\t (\\$+)[a-zA-Z_\\x{7f}-\\x{ff}]\n \t\t\t [a-zA-Z0-9_\\x{7f}-\\x{ff}]*?\\b",
2638
+ "name": "variable.other.php"
2639
+ }
2640
+ ]
2641
+ },
2642
+ "var_global": {
2643
+ "captures": {
2644
+ "1": {
2645
+ "name": "punctuation.definition.variable.php"
2646
+ }
2647
+ },
2648
+ "match": "(\\$)((_(COOKIE|FILES|GET|POST|REQUEST))|arg(v|c))\\b",
2649
+ "name": "variable.other.global.php"
2650
+ },
2651
+ "var_global_safer": {
2652
+ "captures": {
2653
+ "1": {
2654
+ "name": "punctuation.definition.variable.php"
2655
+ }
2656
+ },
2657
+ "match": "(\\$)((GLOBALS|_(ENV|SERVER|SESSION)))",
2658
+ "name": "variable.other.global.safer.php"
2659
+ },
2660
+ "variable-name": {
2661
+ "patterns": [
2662
+ {
2663
+ "include": "#var_global"
2664
+ },
2665
+ {
2666
+ "include": "#var_global_safer"
2667
+ },
2668
+ {
2669
+ "captures": {
2670
+ "1": {
2671
+ "name": "variable.other.php"
2672
+ },
2673
+ "2": {
2674
+ "name": "punctuation.definition.variable.php"
2675
+ },
2676
+ "4": {
2677
+ "name": "keyword.operator.class.php"
2678
+ },
2679
+ "5": {
2680
+ "name": "variable.other.property.php"
2681
+ },
2682
+ "6": {
2683
+ "name": "punctuation.section.array.begin.php"
2684
+ },
2685
+ "7": {
2686
+ "name": "constant.numeric.index.php"
2687
+ },
2688
+ "8": {
2689
+ "name": "variable.other.index.php"
2690
+ },
2691
+ "9": {
2692
+ "name": "punctuation.definition.variable.php"
2693
+ },
2694
+ "10": {
2695
+ "name": "string.unquoted.index.php"
2696
+ },
2697
+ "11": {
2698
+ "name": "punctuation.section.array.end.php"
2699
+ }
2700
+ },
2701
+ "comment": "Simple syntax: $foo, $foo[0], $foo[$bar], $foo->bar",
2702
+ "match": "(?x)\n\t\t\t\t\t\t((\\$)(?<name>[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*))\n\t\t\t\t\t\t(?:\n\t\t\t\t\t\t\t(->)(\\g<name>)\n\t\t\t\t\t\t\t|\n\t\t\t\t\t\t\t(\\[)\n\t\t\t\t\t\t\t\t(?:(\\d+)|((\\$)\\g<name>)|(\\w+))\n\t\t\t\t\t\t\t(\\])\n\t\t\t\t\t\t)?\n\t\t\t\t\t\t"
2703
+ },
2704
+ {
2705
+ "captures": {
2706
+ "1": {
2707
+ "name": "variable.other.php"
2708
+ },
2709
+ "2": {
2710
+ "name": "punctuation.definition.variable.php"
2711
+ },
2712
+ "4": {
2713
+ "name": "punctuation.definition.variable.php"
2714
+ }
2715
+ },
2716
+ "comment": "Simple syntax with braces: \"foo${bar}baz\"",
2717
+ "match": "(?x)\n\t\t\t\t\t\t((\\$\\{)(?<name>[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(\\}))\n\t\t\t\t\t\t"
2718
+ }
2719
+ ]
2720
+ },
2721
+ "variables": {
2722
+ "patterns": [
2723
+ {
2724
+ "include": "#var_global"
2725
+ },
2726
+ {
2727
+ "include": "#var_global_safer"
2728
+ },
2729
+ {
2730
+ "include": "#var_basic"
2731
+ },
2732
+ {
2733
+ "begin": "(\\$\\{)(?=.*?\\})",
2734
+ "beginCaptures": {
2735
+ "1": {
2736
+ "name": "punctuation.definition.variable.php"
2737
+ }
2738
+ },
2739
+ "end": "(\\})",
2740
+ "endCaptures": {
2741
+ "1": {
2742
+ "name": "punctuation.definition.variable.php"
2743
+ }
2744
+ },
2745
+ "patterns": [
2746
+ {
2747
+ "include": "#language"
2748
+ }
2749
+ ]
2750
+ }
2751
+ ]
2752
+ }
2753
+ }
2754
+ }