PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.7.0
Code Block Pro – Beautiful Syntax Highlighting v1.7.0
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / build / shiki / languages / php.tmLanguage.json

php.tmLanguage.json in Code Block Pro – Beautiful Syntax Highlighting 1.7.0, at build/shiki/languages/php.tmLanguage.json

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