github-linguist 5.0.11 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/source.antlr.json +2 -2
  3. data/grammars/source.batchfile.json +31 -39
  4. data/grammars/source.c++.json +2 -2
  5. data/grammars/source.c.json +1 -1
  6. data/grammars/source.capnp.json +2 -2
  7. data/grammars/source.chapel.json +2 -2
  8. data/grammars/source.clojure.json +3 -1
  9. data/grammars/source.coffee.json +6 -6
  10. data/grammars/source.crystal.json +1 -1
  11. data/grammars/source.csound-document.json +20 -5
  12. data/grammars/source.csound-score.json +1 -1
  13. data/grammars/source.csound.json +7 -20
  14. data/grammars/source.css.less.json +2 -2
  15. data/grammars/source.cython.json +2 -2
  16. data/grammars/source.dart.json +16 -20
  17. data/grammars/source.ditroff.json +3 -3
  18. data/grammars/source.elixir.json +3 -3
  19. data/grammars/source.erlang.json +1 -1
  20. data/grammars/source.fan.json +345 -0
  21. data/grammars/source.fancy.json +1 -1
  22. data/grammars/source.gdb.json +1 -1
  23. data/grammars/source.gdb.session.json +1 -1
  24. data/grammars/source.gdscript.json +1 -1
  25. data/grammars/source.gfm.json +16 -0
  26. data/grammars/source.grace.json +1 -1
  27. data/grammars/source.harbour.json +1 -1
  28. data/grammars/source.idl.json +1 -1
  29. data/grammars/source.java.json +2 -2
  30. data/grammars/source.jison.json +45 -7
  31. data/grammars/source.jisonlex.json +13 -3
  32. data/grammars/source.js.json +7 -7
  33. data/grammars/source.js.regexp.json +2 -2
  34. data/grammars/source.jsdoc.json +24 -49
  35. data/grammars/source.livescript.json +4 -4
  36. data/grammars/source.logtalk.json +1 -1
  37. data/grammars/source.lsl.json +1 -1
  38. data/grammars/source.lua.json +5 -7
  39. data/grammars/source.mask.json +2 -2
  40. data/grammars/source.nim.json +2 -2
  41. data/grammars/source.nim_filter.json +2 -2
  42. data/grammars/source.nimcfg.json +2 -2
  43. data/grammars/source.nix.json +2 -2
  44. data/grammars/source.nu.json +2 -2
  45. data/grammars/source.pan.json +711 -0
  46. data/grammars/source.pawn.json +1 -1
  47. data/grammars/source.perl6fe.json +384 -7
  48. data/grammars/source.php.zephir.json +2 -2
  49. data/grammars/source.reason.json +2 -2
  50. data/grammars/source.ring.json +277 -0
  51. data/grammars/source.rust.json +8 -3
  52. data/grammars/source.scad.json +2 -2
  53. data/grammars/source.shell.json +1 -1
  54. data/grammars/source.smalltalk.json +83 -16
  55. data/grammars/source.spin.json +2 -2
  56. data/grammars/source.sqf.json +1 -1
  57. data/grammars/source.supercollider.json +2 -2
  58. data/grammars/source.swift.json +41 -2
  59. data/grammars/source.tl.json +264 -0
  60. data/grammars/source.toml.json +3 -3
  61. data/grammars/source.vhdl.json +1 -1
  62. data/grammars/source.webassembly.json +344 -0
  63. data/grammars/source.yaml.json +2 -2
  64. data/grammars/text.haml.json +3 -3
  65. data/grammars/text.html.handlebars.json +17 -8
  66. data/grammars/text.html.markdown.source.gfm.mson.json +1 -1
  67. data/grammars/text.html.php.blade.json +987 -440
  68. data/grammars/text.html.php.json +6 -6
  69. data/grammars/text.html.soy.json +3 -3
  70. data/grammars/text.html.vue.json +10 -10
  71. data/grammars/text.marko.json +3 -3
  72. data/grammars/text.roff.json +6 -3
  73. data/lib/linguist/heuristics.rb +4 -4
  74. data/lib/linguist/languages.json +1 -1
  75. data/lib/linguist/languages.yml +54 -4
  76. data/lib/linguist/samples.json +3030 -470
  77. data/lib/linguist/vendor.yml +3 -0
  78. data/lib/linguist/version.rb +1 -1
  79. metadata +7 -2
@@ -288,11 +288,11 @@
288
288
  "name": "constant.character.escape.yaml"
289
289
  },
290
290
  {
291
- "match": "\\\\x\\h{2}",
291
+ "match": "\\\\x[0-9A-Fa-f]{2}",
292
292
  "name": "constant.character.escape.yaml"
293
293
  },
294
294
  {
295
- "match": "\\\\[0abtnvfre \"/\\N_LP]",
295
+ "match": "\\\\[0abtnvfre \"/\\\\N_LP]",
296
296
  "name": "constant.character.escape.yaml"
297
297
  },
298
298
  {
@@ -136,7 +136,7 @@
136
136
  "name": "string.quoted.double.ruby",
137
137
  "patterns": [
138
138
  {
139
- "match": "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)",
139
+ "match": "\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)",
140
140
  "name": "constant.character.escape.ruby"
141
141
  },
142
142
  {
@@ -150,7 +150,7 @@
150
150
  "name": "string.quoted.double.ruby",
151
151
  "patterns": [
152
152
  {
153
- "match": "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)",
153
+ "match": "\\\\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)",
154
154
  "name": "constant.character.escape.ruby"
155
155
  },
156
156
  {
@@ -266,7 +266,7 @@
266
266
  ]
267
267
  },
268
268
  {
269
- "begin": "^(\\s*)(:javascript)$",
269
+ "begin": "^(\\s*)(:(javascript|es6))$",
270
270
  "end": "^(?!\\1\\s+|\\n)",
271
271
  "name": "meta.embedded.js",
272
272
  "captures": {
@@ -327,7 +327,7 @@
327
327
  ]
328
328
  },
329
329
  "end_block": {
330
- "begin": "(\\{\\{~?/)([a-zA-Z0-9/_\\.-]+)\\s*",
330
+ "begin": "(\\{\\{)(~?/)([a-zA-Z0-9/_\\.-]+)\\s*",
331
331
  "end": "(~?\\}\\})",
332
332
  "name": "meta.function.block.end.handlebars",
333
333
  "endCaptures": {
@@ -340,7 +340,10 @@
340
340
  "name": "support.constant.handlebars"
341
341
  },
342
342
  "2": {
343
- "name": "support.constant.handlebars"
343
+ "name": "support.constant.handlebars keyword.control"
344
+ },
345
+ "3": {
346
+ "name": "support.constant.handlebars keyword.control"
344
347
  }
345
348
  },
346
349
  "patterns": [
@@ -430,7 +433,7 @@
430
433
  ]
431
434
  },
432
435
  "block_helper": {
433
- "begin": "(\\{\\{~?\\#)([-a-zA-Z0-9_\\./>]+)\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*",
436
+ "begin": "(\\{\\{)(~?\\#)([-a-zA-Z0-9_\\./>]+)\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*",
434
437
  "end": "(~?\\}\\})",
435
438
  "name": "meta.function.block.start.handlebars",
436
439
  "endCaptures": {
@@ -443,18 +446,21 @@
443
446
  "name": "support.constant.handlebars"
444
447
  },
445
448
  "2": {
446
- "name": "support.constant.handlebars"
449
+ "name": "support.constant.handlebars keyword.control"
447
450
  },
448
451
  "3": {
449
- "name": "variable.parameter.handlebars"
452
+ "name": "support.constant.handlebars keyword.control"
450
453
  },
451
454
  "4": {
452
- "name": "support.constant.handlebars"
455
+ "name": "variable.parameter.handlebars"
453
456
  },
454
457
  "5": {
455
- "name": "variable.parameter.handlebars"
458
+ "name": "support.constant.handlebars"
456
459
  },
457
460
  "6": {
461
+ "name": "variable.parameter.handlebars"
462
+ },
463
+ "7": {
458
464
  "name": "support.constant.handlebars"
459
465
  }
460
466
  },
@@ -607,13 +613,16 @@
607
613
  ]
608
614
  },
609
615
  "else_token": {
610
- "begin": "(\\{\\{~?else)(@?\\s(if)\\s([-a-zA-Z0-9_\\./]+))?",
616
+ "begin": "(\\{\\{)(~?else)(@?\\s(if)\\s([-a-zA-Z0-9_\\./]+))?",
611
617
  "end": "(~?\\}\\}\\}*)",
612
618
  "name": "meta.function.inline.else.handlebars",
613
619
  "beginCaptures": {
614
620
  "1": {
615
621
  "name": "support.constant.handlebars"
616
622
  },
623
+ "2": {
624
+ "name": "support.constant.handlebars keyword.control"
625
+ },
617
626
  "3": {
618
627
  "name": "support.constant.handlebars"
619
628
  },
@@ -105,7 +105,7 @@
105
105
  "patterns": [
106
106
  {
107
107
  "name": "keyword",
108
- "match": "(required|optional|variable|fixed|sample|default)"
108
+ "match": "(required|optional|variable|fixed(-type)?|sample|default|nullable)"
109
109
  },
110
110
  {
111
111
  "name": "entity.name.class",
@@ -215,14 +215,22 @@
215
215
  ]
216
216
  },
217
217
  {
218
- "begin": "(?x)\n(?<![A-Za-z0-9_@]) # Prepended @ or literal character escapes the sequence\n@\n(?i: # Ordering not important as we everything will be matched up to opening parentheses\n break\n|can\n|cannot\n|choice\n|component\n|continue\n|each\n|elsecan\n|elsecannot\n|elseif\n|empty\n|extends\n|for\n|foreach\n|forelse\n|hassection\n|if\n|include\n|includeif\n|includewhen\n|inject\n|isset\n|lang\n|php\n|prepend\n|push\n|section\n|slot\n|stack\n|unless\n|unset\n|while\n|yield\n)\n[\\t ]* # Whitespace between name and parentheses, consumed\n(?=\\() # Followed by opening parentheses, not consumed",
218
+ "begin": "(?x)\n(?<![A-Za-z0-9_@]) # Prepended @ or literal character escapes the sequence\n(\n @\n (?i: # Ordering not important as we everything will be matched up to opening parentheses\n auth\n |break\n |can\n |cannot\n |case\n |choice\n |component\n |continue\n |each\n |elsecan\n |elsecannot\n |elseif\n |empty\n |extends\n |for\n |foreach\n |forelse\n |guest\n |hassection\n |if\n |include\n |includeif\n |includewhen\n |inject\n |isset\n |lang\n |php\n |prepend\n |push\n |section\n |slot\n |stack\n |switch\n |unless\n |unset\n |while\n |yield\n )\n [\\t ]* # Whitespace between name and parentheses\n)\n(\\() # Followed by opening parentheses",
219
219
  "beginCaptures": {
220
- "0": {
220
+ "1": {
221
221
  "name": "keyword.blade"
222
+ },
223
+ "2": {
224
+ "name": "begin.bracket.round.blade.php"
222
225
  }
223
226
  },
224
227
  "contentName": "source.php",
225
- "end": "(?<=\\))(?!.*\\))",
228
+ "end": "\\)",
229
+ "endCaptures": {
230
+ "0": {
231
+ "name": "end.bracket.round.blade.php"
232
+ }
233
+ },
226
234
  "name": "meta.directive.blade",
227
235
  "patterns": [
228
236
  {
@@ -231,23 +239,36 @@
231
239
  ]
232
240
  },
233
241
  {
234
- "begin": "(?x)\n(?<![A-Za-z0-9_@]) # Prepended @ or literal character escapes the sequence\n@\n(?i: # Ordering not important as we everything will be matched up to opening parentheses\n append\n|else\n|endcan\n|endcannot\n|endcomponent\n|endempty\n|endfor\n|endforeach\n|endforelse\n|endif\n|endisset\n|endlang\n|endprepend\n|endpush\n|endsection\n|endslot\n|endunless\n|endwhile\n|overwrite\n|parent\n|show\n|stop\n)\n[\\t ]* # Whitespace between name and parentheses, consumed\n(?=\\() # Followed by opening parentheses, not consumed",
242
+ "begin": "(?x)\n(?<![A-Za-z0-9_@]) # Prepended @ or literal character escapes the sequence\n(\n @\n (?i: # Ordering not important as we everything will be matched up to opening parentheses\n append\n |default\n |else\n |endauth\n |endcan\n |endcannot\n |endcomponent\n |endempty\n |endfor\n |endforeach\n |endforelse\n |endguest\n |endif\n |endisset\n |endlang\n |endprepend\n |endpush\n |endsection\n |endslot\n |endswitch\n |endunless\n |endwhile\n |overwrite\n |parent\n |show\n |stop\n )\n [\\t ]* # Whitespace between name and parentheses\n)\n(\\() # Followed by opening parentheses",
235
243
  "beginCaptures": {
236
- "0": {
244
+ "1": {
237
245
  "name": "keyword.blade"
246
+ },
247
+ "2": {
248
+ "name": "begin.bracket.round.blade.php"
238
249
  }
239
250
  },
240
251
  "contentName": "comment.blade",
241
- "end": "(?<=\\))(?!.*\\))",
242
- "name": "meta.directive.blade"
252
+ "end": "\\)",
253
+ "endCaptures": {
254
+ "0": {
255
+ "name": "end.bracket.round.blade.php"
256
+ }
257
+ },
258
+ "name": "meta.directive.blade",
259
+ "patterns": [
260
+ {
261
+ "include": "#balance_brackets"
262
+ }
263
+ ]
243
264
  },
244
265
  {
245
- "match": "(?x)\n(?<![A-Za-z0-9_@]) # Prepended @ or literal character escapes the sequence\n@\n(?: # Ordering not important as we everything will be matched up to word boundary\n (?i)append\n|(?i)break\n|(?i)continue\n|(?i)else\n|(?i)empty\n|(?i)endcan\n|(?i)endcannot\n|(?i)endcomponent\n|(?i)endempty\n|(?i)endfor\n|(?i)endforeach\n|(?i)endforelse\n|(?i)endif\n|(?i)endisset\n|(?i)endlang\n|(?i)endprepend\n|(?i)endpush\n|(?i)endsection\n|(?i)endslot\n|(?i)endunless\n|endverbatim\n|(?i)endwhile\n|(?i)lang\n|(?i)overwrite\n|(?i)parent\n|(?i)show\n|(?i)stop\n|verbatim\n)\n\\b",
266
+ "match": "(?x)\n(?<![A-Za-z0-9_@]) # Prepended @ or literal character escapes the sequence\n@\n(?: # Ordering not important as we everything will be matched up to word boundary\n (?i)append\n|(?i)auth\n|(?i)break\n|(?i)continue\n|(?i)default\n|(?i)else\n|(?i)empty\n|(?i)endauth\n|(?i)endcan\n|(?i)endcannot\n|(?i)endcomponent\n|(?i)endempty\n|(?i)endfor\n|(?i)endforeach\n|(?i)endforelse\n|(?i)endguest\n|(?i)endif\n|(?i)endisset\n|(?i)endlang\n|(?i)endprepend\n|(?i)endpush\n|(?i)endsection\n|(?i)endslot\n|(?i)endswitch\n|(?i)endunless\n|endverbatim\n|(?i)endwhile\n|(?i)guest\n|(?i)lang\n|(?i)overwrite\n|(?i)parent\n|(?i)show\n|(?i)stop\n|verbatim\n)\n\\b",
246
267
  "name": "keyword.blade"
247
268
  },
248
269
  {
249
- "begin": "(?<![A-Za-z0-9_@])@(?i:php)",
250
- "end": "(?<![A-Za-z0-9_@])@(?i:endphp)([\\t ]*\\(.*\\)(?!.*\\)))?",
270
+ "begin": "(?<![A-Za-z0-9_@])@(?i:php)\\b",
271
+ "end": "(?<![A-Za-z0-9_@])(?=@(?i:endphp)\\b)",
251
272
  "beginCaptures": {
252
273
  "0": {
253
274
  "name": "keyword.begin.blade"
@@ -256,9 +277,6 @@
256
277
  "endCaptures": {
257
278
  "0": {
258
279
  "name": "keyword.end.blade"
259
- },
260
- "1": {
261
- "name": "comment.blade"
262
280
  }
263
281
  },
264
282
  "contentName": "source.php",
@@ -270,14 +288,50 @@
270
288
  ]
271
289
  },
272
290
  {
273
- "begin": "(?x)\n(?<![A-Za-z0-9_@]) # Prepended @ or literal character escapes the sequence\n@\n\\w+(?:::w+)? # Any number/letter sequence, can also be postfixed by ::someOtherString\n[\\t ]* # Whitespace between name and parentheses, consumed\n(?=\\() # Followed by opening parentheses, not consumed",
291
+ "begin": "(?x)\n(?<![A-Za-z0-9_@]) # Prepended @ or literal character escapes the sequence\n(\n @\n (?i:\n endphp\n )\n [\\t ]* # Whitespace between name and parentheses\n)\n(\\() # Followed by opening parentheses",
274
292
  "beginCaptures": {
293
+ "1": {
294
+ "name": "keyword.end.blade"
295
+ },
296
+ "2": {
297
+ "name": "begin.bracket.round.blade.php"
298
+ }
299
+ },
300
+ "contentName": "comment.blade",
301
+ "end": "\\)",
302
+ "endCaptures": {
275
303
  "0": {
304
+ "name": "end.bracket.round.blade.php"
305
+ }
306
+ },
307
+ "name": "meta.directive.blade",
308
+ "patterns": [
309
+ {
310
+ "include": "#balance_brackets"
311
+ }
312
+ ]
313
+ },
314
+ {
315
+ "match": "(?x)\n(?<![A-Za-z0-9_@]) # Prepended @ or literal character escapes the sequence\n@\n(?: # Ordering not important as we everything will be matched up to word boundary\n (?i)endphp\n)\n\\b",
316
+ "name": "keyword.end.blade"
317
+ },
318
+ {
319
+ "begin": "(?x)\n(?<![A-Za-z0-9_@]) # Prepended @ or literal character escapes the sequence\n(\n @\n \\w+(?:::w+)? # Any number/letter sequence, can also be postfixed by ::someOtherString\n [\\t ]* # Whitespace between name and parentheses\n)\n(\\() # Followed by opening parentheses",
320
+ "beginCaptures": {
321
+ "1": {
276
322
  "name": "entity.name.function.blade"
323
+ },
324
+ "2": {
325
+ "name": "begin.bracket.round.blade.php"
277
326
  }
278
327
  },
279
328
  "contentName": "source.php",
280
- "end": "(?<=\\))(?!.*\\))",
329
+ "end": "\\)",
330
+ "endCaptures": {
331
+ "0": {
332
+ "name": "end.bracket.round.blade.php"
333
+ }
334
+ },
281
335
  "name": "meta.directive.custom.blade",
282
336
  "patterns": [
283
337
  {
@@ -412,16 +466,153 @@
412
466
  }
413
467
  ],
414
468
  "repository": {
469
+ "balance_brackets": {
470
+ "patterns": [
471
+ {
472
+ "begin": "\\(",
473
+ "end": "\\)",
474
+ "patterns": [
475
+ {
476
+ "include": "#balance_brackets"
477
+ }
478
+ ]
479
+ },
480
+ {
481
+ "match": "[^\\(\\)]+"
482
+ }
483
+ ]
484
+ },
485
+ "class-body": {
486
+ "patterns": [
487
+ {
488
+ "match": "(?xi)\n\\b(use)\\s+\n([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\n((?:\\s*,\\s*[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)*)\n(?=\\s*;)",
489
+ "name": "meta.use.php",
490
+ "captures": {
491
+ "1": {
492
+ "name": "keyword.other.use.php"
493
+ },
494
+ "2": {
495
+ "name": "support.class.php"
496
+ },
497
+ "3": {
498
+ "patterns": [
499
+ {
500
+ "match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
501
+ "name": "support.class.php"
502
+ },
503
+ {
504
+ "match": ",",
505
+ "name": "punctuation.separator.delimiter.php"
506
+ }
507
+ ]
508
+ }
509
+ }
510
+ },
511
+ {
512
+ "begin": "(?i)\\buse\\b",
513
+ "beginCaptures": {
514
+ "0": {
515
+ "name": "keyword.other.use.php"
516
+ }
517
+ },
518
+ "end": "}",
519
+ "endCaptures": {
520
+ "0": {
521
+ "name": "punctuation.definition.use.end.bracket.curly.php"
522
+ }
523
+ },
524
+ "name": "meta.use.php",
525
+ "patterns": [
526
+ {
527
+ "match": "(?xi)\n([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\n((?:\\s*,\\s*[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)*)",
528
+ "captures": {
529
+ "1": {
530
+ "name": "support.class.php"
531
+ },
532
+ "2": {
533
+ "patterns": [
534
+ {
535
+ "match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
536
+ "name": "support.class.php"
537
+ },
538
+ {
539
+ "match": ",",
540
+ "name": "punctuation.separator.delimiter.php"
541
+ }
542
+ ]
543
+ }
544
+ }
545
+ },
546
+ {
547
+ "begin": "{",
548
+ "beginCaptures": {
549
+ "0": {
550
+ "name": "punctuation.definition.use.begin.bracket.curly.php"
551
+ }
552
+ },
553
+ "end": "(?=})",
554
+ "contentName": "meta.use.body.php",
555
+ "patterns": [
556
+ {
557
+ "include": "#scope-resolution"
558
+ },
559
+ {
560
+ "match": "(?xi)\n\\b(as)\\s+\n([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\b # Visibility modifier OR alias\n(?:\\s+([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*))? # alias",
561
+ "captures": {
562
+ "1": {
563
+ "name": "keyword.other.use-as.php"
564
+ },
565
+ "2": {
566
+ "patterns": [
567
+ {
568
+ "match": "\\b(final|abstract|public|private|protected|static)\\b",
569
+ "name": "storage.modifier.php"
570
+ },
571
+ {
572
+ "match": "[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
573
+ "name": "entity.other.alias.php"
574
+ }
575
+ ]
576
+ },
577
+ "3": {
578
+ "name": "entity.other.alias.php"
579
+ }
580
+ }
581
+ },
582
+ {
583
+ "match": "(?i)\\b(insteadof)\\s+([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)",
584
+ "captures": {
585
+ "1": {
586
+ "name": "keyword.other.use-insteadof.php"
587
+ },
588
+ "2": {
589
+ "name": "support.class.php"
590
+ }
591
+ }
592
+ },
593
+ {
594
+ "match": ";",
595
+ "name": "punctuation.terminator.expression.php"
596
+ }
597
+ ]
598
+ }
599
+ ]
600
+ },
601
+ {
602
+ "include": "#language"
603
+ }
604
+ ]
605
+ },
415
606
  "class-builtin": {
416
607
  "patterns": [
417
608
  {
609
+ "match": "(?xi)\n(\\\\)?\\b\n((APC|Append)Iterator|Array(Access|Iterator|Object)\n|Bad(Function|Method)CallException\n|(Caching|CallbackFilter)Iterator|Collator|Collectable|Cond|Countable|CURLFile\n|Date(Interval|Period|Time(Interface|Immutable|Zone)?)?|Directory(Iterator)?|DomainException\n|DOM(Attr|CdataSection|CharacterData|Comment|Document(Fragment)?|Element|EntityReference\n |Implementation|NamedNodeMap|Node(list)?|ProcessingInstruction|Text|XPath)\n|(Error)?Exception|EmptyIterator\n|finfo\n|Ev(Check|Child|Embed|Fork|Idle|Io|Loop|Periodic|Prepare|Signal|Stat|Timer|Watcher)?\n|Event(Base|Buffer(Event)?|SslContext|Http(Request|Connection)?|Config|DnsBase|Util|Listener)?\n|FANNConnection|(Filter|Filesystem)Iterator\n|Gender\\\\Gender|GlobIterator|Gmagick(Draw|Pixel)?\n|Haru(Annotation|Destination|Doc|Encoder|Font|Image|Outline|Page)\n|Http((Inflate|Deflate)?Stream|Message|Request(Pool)?|Response|QueryString)\n|HRTime\\\\(PerformanceCounter|StopWatch)\n|Intl(Calendar|((CodePoint|RuleBased)?Break|Parts)?Iterator|DateFormatter|TimeZone)\n|Imagick(Draw|Pixel(Iterator)?)?\n|InfiniteIterator|InvalidArgumentException|Iterator(Aggregate|Iterator)?\n|JsonSerializable\n|KTaglib_(MPEG_(File|AudioProperties)|Tag|ID3v2_(Tag|(AttachedPicture)?Frame))\n|Lapack|(Length|Locale|Logic)Exception|LimitIterator|Lua(Closure)?\n|Mongo(BinData|Client|Code|Collection|CommandCursor|Cursor(Exception)?|Date|DB(Ref)?|DeleteBatch\n |Grid(FS(Cursor|File)?)|Id|InsertBatch|Int(32|64)|Log|Pool|Regex|ResultException|Timestamp\n |UpdateBatch|Write(Batch|ConcernException))?\n|Memcache(d)?|MessageFormatter|MultipleIterator|Mutex\n|mysqli(_(driver|stmt|warning|result))?\n|MysqlndUh(Connection|PreparedStatement)\n|NoRewindIterator|Normalizer|NumberFormatter\n|OCI-(Collection|Lob)|OuterIterator|(OutOf(Bounds|Range)|Overflow)Exception\n|ParentIterator|PDO(Statement)?|Phar(Data|FileInfo)?|php_user_filter|Pool\n|QuickHash(Int(Set|StringHash)|StringIntHash)\n|Recursive(Array|Caching|Directory|Fallback|Filter|Iterator|Regex|Tree)?Iterator\n|Reflection(Class|Function(Abstract)?|Method|Object|Parameter|Property|(Zend)?Extension)?\n|RangeException|Reflector|RegexIterator|ResourceBundle|RuntimeException|RRD(Creator|Graph|Updater)\n|SAM(Connection|Message)|SCA(_(SoapProxy|LocalProxy))?\n|SDO_(DAS_(ChangeSummary|Data(Factory|Object)|Relational|Setting|XML(_Document)?)\n |Data(Factory|Object)|Exception|List|Model_(Property|ReflectionDataObject|Type)|Sequence)\n|SeekableIterator|Serializable|SessionHandler(Interface)?|SimpleXML(Iterator|Element)|SNMP\n|Soap(Client|Fault|Header|Param|Server|Var)\n|SphinxClient|Spoofchecker\n|Spl(DoublyLinkedList|Enum|File(Info|Object)|FixedArray|(Max|Min)?Heap|Observer|ObjectStorage\n |(Priority)?Queue|Stack|Subject|Type|TempFileObject)\n|SQLite(3(Result|Stmt)?|Database|Result|Unbuffered)\n|stdClass|streamWrapper|SVM(Model)?|Swish(Result(s)?|Search)?|Sync(Event|Mutex|ReaderWriter|Semaphore)\n|Thread(ed)?|tidy(Node)?|TokyoTyrant(Table|Iterator|Query)?|Transliterator|Traversable\n|UConverter|(Underflow|UnexpectedValue)Exception\n|V8Js(Exception)?|Varnish(Admin|Log|Stat)\n|Worker|Weak(Map|Ref)\n|XML(Diff\\\\(Base|DOM|File|Memory)|Reader|Writer)|XsltProcessor\n|Yaf_(Route_(Interface|Map|Regex|Rewrite|Simple|Supervar)\n |Action_Abstract|Application|Config_(Simple|Ini|Abstract)|Controller_Abstract\n |Dispatcher|Exception|Loader|Plugin_Abstract|Registry|Request_(Abstract|Simple|Http)\n |Response_Abstract|Router|Session|View_(Simple|Interface))\n|Yar_(Client(_Exception)?|Concurrent_Client|Server(_Exception)?)\n|ZipArchive|ZMQ(Context|Device|Poll|Socket)?)\n\\b",
610
+ "name": "support.class.builtin.php",
418
611
  "captures": {
419
612
  "1": {
420
613
  "name": "punctuation.separator.inheritance.php"
421
614
  }
422
- },
423
- "match": "(?i)(\\\\)?\\b(st(dClass|reamWrapper)|R(RD(Graph|Creator|Updater)|untimeException|e(sourceBundle|cursive(RegexIterator|Ca(chingIterator|llbackFilterIterator)|TreeIterator|Iterator(Iterator)?|DirectoryIterator|FilterIterator|ArrayIterator)|flect(ion(Method|Class|ZendExtension|Object|P(arameter|roperty)|Extension|Function(Abstract)?)?|or)|gexIterator)|angeException)|G(ender\\Gender|lobIterator|magick(Draw|Pixel)?)|X(sltProcessor|ML(Reader|Diff\\\\(Memory|Base|DOM|File)|Writer)|SLTProcessor)|M(ysqlndUh(Connection|PreparedStatement)|ongo(Re(sultException|gex)|Grid(fsFile|FS(Cursor|File)?)|BinData|C(o(de|llection|mmandCursor)|ursor(Exception)?|lient)|Timestamp|I(n(sertBatch|t(32|64))|d)|D(B(Ref)?|eleteBatch|ate)|UpdateBatch|Pool|Write(Batch|ConcernException)|Log)?|u(tex|ltipleIterator)|e(ssageFormatter|mcache(d)?))|Bad(MethodCallException|FunctionCallException)|tidy(Node)?|S(ync(ReaderWriter|Mutex|Semaphore|Event)|impleXML(Iterator|Element)|oap(Server|Header|Client|Param|Var|Fault)|NMP|CA(_(SoapProxy|LocalProxy))?|p(hinxClient|oofchecker|l(M(inHeap|axHeap)|S(tack|ubject)|Heap|T(ype|empFileObject)|Ob(server|jectStorage)|DoublyLinkedList|PriorityQueue|Enum|Queue|Fi(le(Info|Object)|xedArray)))|e(ssionHandler(Interface)?|ekableIterator|rializable)|DO_(Model_(ReflectionDataObject|Type|Property)|Sequence|D(ata(Object|Factory)|AS_(Relational|XML(_Document)?|Setting|ChangeSummary|Data(Object|Factory)))|Exception|List)|wish(Result(s)?|Search)?|VM(Model)?|QLite(Result|3(Result|Stmt)?|Database|Unbuffered)|AM(Message|Connection))|H(RTime\\\\(StopWatch|PerformanceCounter)|ttp(Re(sponse|quest(Pool)?)|Message|InflateStream|DeflateStream|QueryString)|aru(Image|Outline|D(oc|estination)|Page|Encoder|Font|Annotation))|Ya(f_(R(oute(_(Re(write|gex)|Map|S(tatic|imple|upervar)|Interface)|r)|e(sponse_Abstract|quest_(Simple|Http|Abstract)|gistry))|Session|Con(troller_Abstract|fig_(Simple|Ini|Abstract))|Dispatcher|Plugin_Abstract|Exception|View_(Simple|Interface)|Loader|A(ction_Abstract|pplication))|r_(Server(_Exception)?|C(oncurrent_Client|lient(_Exception)?)))|N(o(RewindIterator|rmalizer)|umberFormatter)|C(o(nd|untable|ll(ectable|ator))|URLFile|a(chingIterator|llbackFilterIterator))|T(hread(ed)?|okyoTyrant(Table|Iterator|Query)?|ra(nsliterator|versable))|I(n(tl(RuleBasedBreakIterator|BreakIterator|C(odePointBreakIterator|alendar)|TimeZone|Iterator|DateFormatter|PartsIterator)|validArgumentException|finiteIterator)|terator(Iterator|Aggregate)?|magick(Draw|Pixel(Iterator)?)?)|php_user_filter|Z(MQ(Socket|Context|Device|Poll)?|ipArchive)|O(CI-(Collection|Lob)|ut(erIterator|Of(RangeException|BoundsException))|verflowException)|D(irectory(Iterator)?|omainException|OM(XPath|N(ode(list)?|amedNodeMap)|C(haracterData|omment|dataSection)|Text|Implementation|Document(Fragment)?|ProcessingInstruction|E(ntityReference|lement)|Attr)|ate(Time(I(nterface|mmutable)|Zone)?|Interval|Period))|U(n(derflowException|expectedValueException)|Converter)|JsonSerializable|finfo|P(har(Data|FileInfo)?|ool|DO(Statement)?|arentIterator)|E(v(S(tat|ignal)|Ch(ild|eck)|Timer|I(o|dle)|ent(B(uffer(Event)?|ase)|SslContext|Http(Request|Connection)?|Config|DnsBase|Util|Listener)?|P(eriodic|repare)|Embed|Fork|Watcher|Loop)?|rrorException|xception|mptyIterator)|V(8Js(Exception)?|arnish(Stat|Log|Admin))|KTaglib_(MPEG_(File|AudioProperties)|Tag|ID3v2_(Tag|Frame|AttachedPictureFrame))|QuickHash(StringIntHash|Int(S(tringHash|et)|Hash))|F(il(terIterator|esystemIterator)|ANNConnection)|mysqli(_(stmt|driver|warning|result))?|W(orker|eak(Map|ref))|L(imitIterator|o(cale|gicException)|ua(Closure)?|engthException|apack)|A(ppendIterator|PCIterator|rray(Iterator|Object|Access)))\\b",
424
- "name": "support.class.builtin.php"
615
+ }
425
616
  }
426
617
  ]
427
618
  },
@@ -539,88 +730,71 @@
539
730
  "constants": {
540
731
  "patterns": [
541
732
  {
542
- "begin": "(?xi)(?=\n\t\t\t (\n\t\t\t (\\\\[a-z_][a-z_0-9]*\\\\[a-z_][a-z_0-9\\\\]*)|\n\t\t\t ([a-z_][a-z_0-9]*\\\\[a-z_][a-z_0-9\\\\]*)\n\t\t\t )\n\t\t\t [^a-z_0-9\\\\])",
543
- "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
544
- "endCaptures": {
733
+ "match": "(?i)\\b(TRUE|FALSE|NULL|__(FILE|DIR|FUNCTION|CLASS|METHOD|LINE|NAMESPACE)__|ON|OFF|YES|NO|NL|BR|TAB)\\b",
734
+ "name": "constant.language.php"
735
+ },
736
+ {
737
+ "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",
738
+ "name": "support.constant.core.php",
739
+ "captures": {
545
740
  "1": {
546
- "name": "constant.other.php"
741
+ "name": "punctuation.separator.inheritance.php"
547
742
  }
548
- },
549
- "patterns": [
550
- {
551
- "include": "#namespace"
743
+ }
744
+ },
745
+ {
746
+ "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",
747
+ "name": "support.constant.std.php",
748
+ "captures": {
749
+ "1": {
750
+ "name": "punctuation.separator.inheritance.php"
552
751
  }
553
- ]
752
+ }
554
753
  },
555
754
  {
556
- "begin": "(?=\\\\?[a-zA-Z_\\x{7f}-\\x{ff}])",
557
- "end": "(?=[^\\\\a-zA-Z_\\x{7f}-\\x{ff}])",
558
- "patterns": [
559
- {
560
- "match": "(?i)\\b(TRUE|FALSE|NULL|__(FILE|DIR|FUNCTION|CLASS|METHOD|LINE|NAMESPACE)__|ON|OFF|YES|NO|NL|BR|TAB)\\b",
561
- "name": "constant.language.php"
562
- },
563
- {
564
- "captures": {
565
- "1": {
566
- "name": "punctuation.separator.inheritance.php"
567
- }
568
- },
569
- "match": "(\\\\)?\\b(STD(IN|OUT|ERR)|ZEND_(THREAD_SAFE|DEBUG_BUILD)|DEFAULT_INCLUDE_PATH|P(HP_(R(OUND_HALF_(ODD|DOWN|UP|EVEN)|ELEASE_VERSION)|M(INOR_VERSION|A(XPATHLEN|JOR_VERSION))|BINDIR|S(HLIB_SUFFIX|YSCONFDIR|API)|CONFIG_FILE_(SCAN_DIR|PATH)|INT_(MAX|SIZE)|ZTS|O(S|UTPUT_HANDLER_(START|CONT|END))|D(EBUG|ATADIR)|URL_(SCHEME|HOST|USER|P(ORT|A(SS|TH))|QUERY|FRAGMENT)|PREFIX|E(XT(RA_VERSION|ENSION_DIR)|OL)|VERSION(_ID)?|WINDOWS_(NT_(SERVER|DOMAIN_CONTROLLER|WORKSTATION)|VERSION_(M(INOR|AJOR)|BUILD|S(UITEMASK|P_M(INOR|AJOR))|P(RODUCTTYPE|LATFORM)))|L(IBDIR|OCALSTATEDIR))|EAR_(INSTALL_DIR|EXTENSION_DIR))|E_(RECOVERABLE_ERROR|STRICT|NOTICE|CO(RE_(ERROR|WARNING)|MPILE_(ERROR|WARNING))|DEPRECATED|USER_(NOTICE|DEPRECATED|ERROR|WARNING)|PARSE|ERROR|WARNING|ALL))\\b",
570
- "name": "support.constant.core.php"
571
- },
572
- {
573
- "captures": {
574
- "1": {
575
- "name": "punctuation.separator.inheritance.php"
576
- }
577
- },
578
- "match": "(\\\\)?\\b(RADIXCHAR|GROUPING|M(_(1_PI|SQRT(1_2|2|3|PI)|2_(SQRTPI|PI)|PI(_(2|4))?|E(ULER)?|L(N(10|2|PI)|OG(10E|2E)))|ON_(GROUPING|1(1|2|0)?|7|2|8|THOUSANDS_SEP|3|DECIMAL_POINT|9|4|5|6))|S(TR_PAD_(RIGHT|BOTH|LEFT)|ORT_(REGULAR|STRING|NUMERIC|DESC|LOCALE_STRING|ASC)|EEK_(SET|CUR|END))|H(TML_(SPECIALCHARS|ENTITIES)|ASH_HMAC)|YES(STR|EXPR)|N(_(S(IGN_POSN|EP_BY_SPACE)|CS_PRECEDES)|O(STR|EXPR)|EGATIVE_SIGN|AN)|C(R(YPT_(MD5|BLOWFISH|S(HA(256|512)|TD_DES|ALT_LENGTH)|EXT_DES)|NCYSTR|EDITS_(G(ROUP|ENERAL)|MODULES|SAPI|DOCS|QA|FULLPAGE|ALL))|HAR_MAX|O(NNECTION_(NORMAL|TIMEOUT|ABORTED)|DESET|UNT_(RECURSIVE|NORMAL))|URRENCY_SYMBOL|ASE_(UPPER|LOWER))|__COMPILER_HALT_OFFSET__|T(HOUS(EP|ANDS_SEP)|_FMT(_AMPM)?)|IN(T_(CURR_SYMBOL|FRAC_DIGITS)|I_(S(YSTEM|CANNER_(RAW|NORMAL))|USER|PERDIR|ALL)|F(O_(GENERAL|MODULES|C(REDITS|ONFIGURATION)|ENVIRONMENT|VARIABLES|LICENSE|ALL))?)|D(_(T_FMT|FMT)|IRECTORY_SEPARATOR|ECIMAL_POINT|A(Y_(1|7|2|3|4|5|6)|TE_(R(SS|FC(1(123|036)|2822|8(22|50)|3339))|COOKIE|ISO8601|W3C|ATOM)))|UPLOAD_ERR_(NO_(TMP_DIR|FILE)|CANT_WRITE|INI_SIZE|OK|PARTIAL|EXTENSION|FORM_SIZE)|P(M_STR|_(S(IGN_POSN|EP_BY_SPACE)|CS_PRECEDES)|OSITIVE_SIGN|ATH(_SEPARATOR|INFO_(BASENAME|DIRNAME|EXTENSION|FILENAME)))|E(RA(_(YEAR|T_FMT|D_(T_FMT|FMT)))?|XTR_(REFS|SKIP|IF_EXISTS|OVERWRITE|PREFIX_(SAME|I(NVALID|F_EXISTS)|ALL))|NT_(NOQUOTES|COMPAT|IGNORE|QUOTES))|FRAC_DIGITS|L(C_(M(ONETARY|ESSAGES)|NUMERIC|C(TYPE|OLLATE)|TIME|ALL)|O(G_(MAIL|SYSLOG|N(O(TICE|WAIT)|DELAY|EWS)|C(R(IT|ON)|ONS)|INFO|ODELAY|D(EBUG|AEMON)|U(SER|UCP)|P(ID|ERROR)|E(RR|MERG)|KERN|WARNING|L(OCAL(1|7|2|3|4|5|0|6)|PR)|A(UTH(PRIV)?|LERT))|CK_(SH|NB|UN|EX)))|A(M_STR|B(MON_(1(1|2|0)?|7|2|8|3|9|4|5|6)|DAY_(1|7|2|3|4|5|6))|SSERT_(BAIL|CALLBACK|QUIET_EVAL|WARNING|ACTIVE)|LT_DIGITS))\\b",
579
- "name": "support.constant.std.php"
580
- },
581
- {
582
- "captures": {
583
- "1": {
584
- "name": "punctuation.separator.inheritance.php"
585
- }
586
- },
587
- "match": "(\\\\)?\\b(GLOB_(MARK|BRACE|NO(SORT|CHECK|ESCAPE)|ONLYDIR|ERR|AVAILABLE_FLAGS)|XML_(SAX_IMPL|HTML_DOCUMENT_NODE|N(OTATION_NODE|AMESPACE_DECL_NODE)|C(OMMENT_NODE|DATA_SECTION_NODE)|TEXT_NODE|OPTION_(SKIP_(TAGSTART|WHITE)|CASE_FOLDING|TARGET_ENCODING)|D(TD_NODE|OCUMENT_(NODE|TYPE_NODE|FRAG_NODE))|PI_NODE|E(RROR_(RECURSIVE_ENTITY_REF|MISPLACED_XML_PI|B(INARY_ENTITY_REF|AD_CHAR_REF)|SYNTAX|NO(NE|_(MEMORY|ELEMENTS))|TAG_MISMATCH|IN(CORRECT_ENCODING|VALID_TOKEN)|DUPLICATE_ATTRIBUTE|UN(CLOSED_(CDATA_SECTION|TOKEN)|DEFINED_ENTITY|KNOWN_ENCODING)|JUNK_AFTER_DOC_ELEMENT|PAR(TIAL_CHAR|AM_ENTITY_REF)|EXTERNAL_ENTITY_HANDLING|A(SYNC_ENTITY|TTRIBUTE_EXTERNAL_ENTITY_REF))|NTITY_(REF_NODE|NODE|DECL_NODE)|LEMENT_(NODE|DECL_NODE))|LOCAL_NAMESPACE|ATTRIBUTE_(N(MTOKEN(S)?|O(TATION|DE))|CDATA|ID(REF(S)?)?|DECL_NODE|EN(TITY|UMERATION)))|M(HASH_(RIPEMD(1(28|60)|256|320)|GOST|MD(2|4|5)|S(HA(1|2(24|56)|384|512)|NEFRU256)|HAVAL(1(28|92|60)|2(24|56))|CRC32(B)?|TIGER(1(28|60))?|WHIRLPOOL|ADLER32)|YSQL(_(BOTH|NUM|CLIENT_(SSL|COMPRESS|I(GNORE_SPACE|NTERACTIVE))|ASSOC)|I_(RE(PORT_(STRICT|INDEX|OFF|ERROR|ALL)|FRESH_(GRANT|MASTER|BACKUP_LOG|S(TATUS|LAVE)|HOSTS|T(HREADS|ABLES)|LOG)|AD_DEFAULT_(GROUP|FILE))|GROUP_FLAG|MULTIPLE_KEY_FLAG|B(INARY_FLAG|OTH|LOB_FLAG)|S(T(MT_ATTR_(CURSOR_TYPE|UPDATE_MAX_LENGTH|PREFETCH_ROWS)|ORE_RESULT)|E(RVER_QUERY_(NO_(GOOD_INDEX_USED|INDEX_USED)|WAS_SLOW)|T_(CHARSET_NAME|FLAG)))|N(O(_D(EFAULT_VALUE_FLAG|ATA)|T_NULL_FLAG)|UM(_FLAG)?)|C(URSOR_TYPE_(READ_ONLY|SCROLLABLE|NO_CURSOR|FOR_UPDATE)|LIENT_(SSL|NO_SCHEMA|COMPRESS|I(GNORE_SPACE|NTERACTIVE)|FOUND_ROWS))|T(YPE_(GEOMETRY|MEDIUM_BLOB|B(IT|LOB)|S(HORT|TRING|ET)|YEAR|N(ULL|EWD(ECIMAL|ATE))|CHAR|TI(ME(STAMP)?|NY(_BLOB)?)|INT(24|ERVAL)|D(OUBLE|ECIMAL|ATE(TIME)?)|ENUM|VAR_STRING|FLOAT|LONG(_BLOB|LONG)?)|IMESTAMP_FLAG)|INIT_COMMAND|ZEROFILL_FLAG|O(N_UPDATE_NOW_FLAG|PT_(NET_(READ_BUFFER_SIZE|CMD_BUFFER_SIZE)|CONNECT_TIMEOUT|INT_AND_FLOAT_NATIVE|LOCAL_INFILE))|D(EBUG_TRACE_ENABLED|ATA_TRUNCATED)|U(SE_RESULT|N(SIGNED_FLAG|IQUE_KEY_FLAG))|P(RI_KEY_FLAG|ART_KEY_FLAG)|ENUM_FLAG|A(S(SOC|YNC)|UTO_INCREMENT_FLAG)))|CRYPT_(R(C(2|6)|IJNDAEL_(1(28|92)|256)|AND)|GOST|XTEA|M(ODE_(STREAM|NOFB|C(BC|FB)|OFB|ECB)|ARS)|BLOWFISH(_COMPAT)?|S(ERPENT|KIPJACK|AFER(128|PLUS|64))|C(RYPT|AST_(128|256))|T(RIPLEDES|HREEWAY|WOFISH)|IDEA|3DES|DE(S|CRYPT|V_(RANDOM|URANDOM))|PANAMA|EN(CRYPT|IGNA)|WAKE|LOKI97|ARCFOUR(_IV)?))|S(TREAM_(REPORT_ERRORS|M(UST_SEEK|KDIR_RECURSIVE)|BUFFER_(NONE|FULL|LINE)|S(HUT_(RD(WR)?|WR)|OCK_(R(DM|AW)|S(TREAM|EQPACKET)|DGRAM)|ERVER_(BIND|LISTEN))|NOTIFY_(RE(SOLVE|DIRECTED)|MIME_TYPE_IS|SEVERITY_(INFO|ERR|WARN)|CO(MPLETED|NNECT)|PROGRESS|F(ILE_SIZE_IS|AILURE)|AUTH_RE(SULT|QUIRED))|C(RYPTO_METHOD_(SSLv(2(_(SERVER|CLIENT)|3_(SERVER|CLIENT))|3_(SERVER|CLIENT))|TLS_(SERVER|CLIENT))|LIENT_(CONNECT|PERSISTENT|ASYNC_CONNECT)|AST_(FOR_SELECT|AS_STREAM))|I(GNORE_URL|S_URL|PPROTO_(RAW|TCP|I(CMP|P)|UDP))|O(OB|PTION_(READ_(BUFFER|TIMEOUT)|BLOCKING|WRITE_BUFFER))|U(RL_STAT_(QUIET|LINK)|SE_PATH)|P(EEK|F_(INET(6)?|UNIX))|ENFORCE_SAFE_MODE|FILTER_(READ|WRITE|ALL))|UNFUNCS_RET_(STRING|TIMESTAMP|DOUBLE)|QLITE(_(R(OW|EADONLY)|MIS(MATCH|USE)|B(OTH|USY)|SCHEMA|N(O(MEM|T(FOUND|ADB)|LFS)|UM)|C(O(RRUPT|NSTRAINT)|ANTOPEN)|TOOBIG|I(NTER(RUPT|NAL)|OERR)|OK|DONE|P(ROTOCOL|ERM)|E(RROR|MPTY)|F(ORMAT|ULL)|LOCKED|A(BORT|SSOC|UTH))|3_(B(OTH|LOB)|NU(M|LL)|TEXT|INTEGER|OPEN_(READ(ONLY|WRITE)|CREATE)|FLOAT|ASSOC)))|CURL(M(SG_DONE|_(BAD_(HANDLE|EASY_HANDLE)|CALL_MULTI_PERFORM|INTERNAL_ERROR|O(UT_OF_MEMORY|K)))|SSH_AUTH_(HOST|NONE|DEFAULT|P(UBLICKEY|ASSWORD)|KEYBOARD)|CLOSEPOLICY_(SLOWEST|CALLBACK|OLDEST|LEAST_(RECENTLY_USED|TRAFFIC))|_(HTTP_VERSION_(1_(1|0)|NONE)|NETRC_(REQUIRED|IGNORED|OPTIONAL)|TIMECOND_(IF(MODSINCE|UNMODSINCE)|LASTMOD)|IPRESOLVE_(V(4|6)|WHATEVER)|VERSION_(SSL|IPV6|KERBEROS4|LIBZ))|INFO_(RE(DIRECT_(COUNT|TIME)|QUEST_SIZE)|S(SL_VERIFYRESULT|TARTTRANSFER_TIME|IZE_(DOWNLOAD|UPLOAD)|PEED_(DOWNLOAD|UPLOAD))|H(TTP_CODE|EADER_(SIZE|OUT))|NAMELOOKUP_TIME|C(ON(NECT_TIME|TENT_(TYPE|LENGTH_(DOWNLOAD|UPLOAD)))|ERTINFO)|TOTAL_TIME|PR(IVATE|ETRANSFER_TIME)|EFFECTIVE_URL|FILETIME)|OPT_(R(E(SUME_FROM|TURNTRANSFER|DIR_PROTOCOLS|FERER|AD(DATA|FUNCTION))|AN(GE|DOM_FILE))|MAX(REDIRS|CONNECTS)|B(INARYTRANSFER|UFFERSIZE)|S(S(H_(HOST_PUBLIC_KEY_MD5|P(RIVATE_KEYFILE|UBLIC_KEYFILE)|AUTH_TYPES)|L(CERT(TYPE|PASSWD)?|_(CIPHER_LIST|VERIFY(HOST|PEER))|ENGINE(_DEFAULT)?|VERSION|KEY(TYPE|PASSWD)?))|TDERR)|H(TTP(GET|HEADER|200ALIASES|_VERSION|PROXYTUNNEL|AUTH)|EADER(FUNCTION)?)|N(O(BODY|SIGNAL|PROGRESS)|ETRC)|C(RLF|O(NNECTTIMEOUT(_MS)?|OKIE(SESSION|JAR|FILE)?)|USTOMREQUEST|ERTINFO|LOSEPOLICY|A(INFO|PATH))|T(RANSFERTEXT|CP_NODELAY|IME(CONDITION|OUT(_MS)?|VALUE))|I(N(TERFACE|FILE(SIZE)?)|PRESOLVE)|DNS_(CACHE_TIMEOUT|USE_GLOBAL_CACHE)|U(RL|SER(PWD|AGENT)|NRESTRICTED_AUTH|PLOAD)|P(R(IVATE|O(GRESSFUNCTION|XY(TYPE|USERPWD|PORT|AUTH)?|TOCOLS))|O(RT|ST(REDIR|QUOTE|FIELDS)?)|UT)|E(GDSOCKET|NCODING)|VERBOSE|K(RB4LEVEL|EYPASSWD)|QUOTE|F(RESH_CONNECT|TP(SSLAUTH|_(S(SL|KIP_PASV_IP)|CREATE_MISSING_DIRS|USE_EP(RT|SV)|FILEMETHOD)|PORT|LISTONLY|APPEND)|ILE(TIME)?|O(RBID_REUSE|LLOWLOCATION)|AILONERROR)|WRITE(HEADER|FUNCTION)|LOW_SPEED_(TIME|LIMIT)|AUTOREFERER)|PRO(XY_(SOCKS(4|5)|HTTP)|TO_(S(CP|FTP)|HTTP(S)?|T(ELNET|FTP)|DICT|F(TP(S)?|ILE)|LDAP(S)?|ALL))|E_(RE(CV_ERROR|AD_ERROR)|GOT_NOTHING|MALFORMAT_USER|BAD_(C(ONTENT_ENCODING|ALLING_ORDER)|PASSWORD_ENTERED|FUNCTION_ARGUMENT)|S(S(H|L_(C(IPHER|ONNECT_ERROR|ERTPROBLEM|ACERT)|PEER_CERTIFICATE|ENGINE_(SETFAILED|NOTFOUND)))|HARE_IN_USE|END_ERROR)|HTTP_(RANGE_ERROR|NOT_FOUND|PO(RT_FAILED|ST_ERROR))|COULDNT_(RESOLVE_(HOST|PROXY)|CONNECT)|T(OO_MANY_REDIRECTS|ELNET_OPTION_SYNTAX)|O(BSOLETE|UT_OF_MEMORY|PERATION_TIMEOUTED|K)|U(RL_MALFORMAT(_USER)?|N(SUPPORTED_PROTOCOL|KNOWN_TELNET_OPTION))|PARTIAL_FILE|F(TP_(BAD_DOWNLOAD_RESUME|SSL_FAILED|C(OULDNT_(RETR_FILE|GET_SIZE|S(TOR_FILE|ET_(BINARY|ASCII))|USE_REST)|ANT_(RECONNECT|GET_HOST))|USER_PASSWORD_INCORRECT|PORT_FAILED|QUOTE_ERROR|W(RITE_ERROR|EIRD_(SERVER_REPLY|227_FORMAT|USER_REPLY|PAS(S_REPLY|V_REPLY)))|ACCESS_DENIED)|ILE(SIZE_EXCEEDED|_COULDNT_READ_FILE)|UNCTION_NOT_FOUND|AILED_INIT)|WRITE_ERROR|L(IBRARY_NOT_FOUND|DAP_(SEARCH_FAILED|CANNOT_BIND|INVALID_URL))|ABORTED_BY_CALLBACK)|VERSION_NOW|FTP(METHOD_(MULTICWD|SINGLECWD|NOCWD)|SSL_(NONE|CONTROL|TRY|ALL)|AUTH_(SSL|TLS|DEFAULT))|AUTH_(GSSNEGOTIATE|BASIC|NTLM|DIGEST|ANY(SAFE)?))|I(MAGETYPE_(GIF|XBM|BMP|SWF|COUNT|TIFF_(MM|II)|I(CO|FF)|UNKNOWN|J(B2|P(X|2|C|EG(2000)?))|P(SD|NG)|WBMP)|NPUT_(REQUEST|GET|SE(RVER|SSION)|COOKIE|POST|ENV)|CONV_(MIME_DECODE_(STRICT|CONTINUE_ON_ERROR)|IMPL|VERSION))|D(NS_(MX|S(RV|OA)|HINFO|N(S|APTR)|CNAME|TXT|PTR|A(NY|LL|AAA|6)?)|OM(STRING_SIZE_ERR|_(SYNTAX_ERR|HIERARCHY_REQUEST_ERR|N(O(_(MODIFICATION_ALLOWED_ERR|DATA_ALLOWED_ERR)|T_(SUPPORTED_ERR|FOUND_ERR))|AMESPACE_ERR)|IN(DEX_SIZE_ERR|USE_ATTRIBUTE_ERR|VALID_(MODIFICATION_ERR|STATE_ERR|CHARACTER_ERR|ACCESS_ERR))|PHP_ERR|VALIDATION_ERR|WRONG_DOCUMENT_ERR)))|JSON_(HEX_(TAG|QUOT|A(MP|POS))|NUMERIC_CHECK|ERROR_(S(YNTAX|TATE_MISMATCH)|NONE|CTRL_CHAR|DEPTH|UTF8)|FORCE_OBJECT)|P(REG_(RECURSION_LIMIT_ERROR|GREP_INVERT|BA(CKTRACK_LIMIT_ERROR|D_UTF8_(OFFSET_ERROR|ERROR))|S(PLIT_(NO_EMPTY|OFFSET_CAPTURE|DELIM_CAPTURE)|ET_ORDER)|NO_ERROR|INTERNAL_ERROR|OFFSET_CAPTURE|PATTERN_ORDER)|SFS_(PASS_ON|ERR_FATAL|F(EED_ME|LAG_(NORMAL|FLUSH_(CLOSE|INC))))|CRE_VERSION|OSIX_(R_OK|X_OK|S_IF(REG|BLK|SOCK|CHR|IFO)|F_OK|W_OK))|F(NM_(NOESCAPE|CASEFOLD|P(ERIOD|ATHNAME))|IL(TER_(REQUIRE_(SCALAR|ARRAY)|SANITIZE_(MAGIC_QUOTES|S(TRI(NG|PPED)|PECIAL_CHARS)|NUMBER_(INT|FLOAT)|URL|E(MAIL|NCODED)|FULL_SPECIAL_CHARS)|NULL_ON_FAILURE|CALLBACK|DEFAULT|UNSAFE_RAW|VALIDATE_(REGEXP|BOOLEAN|I(NT|P)|URL|EMAIL|FLOAT)|F(ORCE_ARRAY|LAG_(S(CHEME_REQUIRED|TRIP_(BACKTICK|HIGH|LOW))|HOST_REQUIRED|NO(NE|_(RES_RANGE|PRIV_RANGE|ENCODE_QUOTES))|IPV(4|6)|PATH_REQUIRED|E(MPTY_STRING_NULL|NCODE_(HIGH|LOW|AMP))|QUERY_REQUIRED|ALLOW_(SCIENTIFIC|HEX|THOUSAND|OCTAL|FRACTION))))|E(_(BINARY|SKIP_EMPTY_LINES|NO_DEFAULT_CONTEXT|TEXT|IGNORE_NEW_LINES|USE_INCLUDE_PATH|APPEND)|INFO_(RAW|MIME(_(TYPE|ENCODING))?|SYMLINK|NONE|CONTINUE|DEVICES|PRESERVE_ATIME)))|ORCE_(GZIP|DEFLATE))|LIBXML_(XINCLUDE|N(SCLEAN|O(XMLDECL|BLANKS|NET|CDATA|E(RROR|MPTYTAG|NT)|WARNING))|COMPACT|D(TD(VALID|LOAD|ATTR)|OTTED_VERSION)|PARSEHUGE|ERR_(NONE|ERROR|FATAL|WARNING)|VERSION|LOADED_VERSION))\\b",
588
- "name": "support.constant.ext.php"
589
- },
590
- {
591
- "captures": {
592
- "1": {
593
- "name": "punctuation.separator.inheritance.php"
594
- }
595
- },
596
- "match": "(\\\\)?\\bT_(RE(TURN|QUIRE(_ONCE)?)|G(OTO|LOBAL)|XOR_EQUAL|M(INUS_EQUAL|OD_EQUAL|UL_EQUAL|ETHOD_C|L_COMMENT)|B(REAK|OOL(_CAST|EAN_(OR|AND))|AD_CHARACTER)|S(R(_EQUAL)?|T(RING(_(CAST|VARNAME))?|A(RT_HEREDOC|TIC))|WITCH|L(_EQUAL)?)|HALT_COMPILER|N(S_(SEPARATOR|C)|UM_STRING|EW|AMESPACE)|C(HARACTER|O(MMENT|N(ST(ANT_ENCAPSED_STRING)?|CAT_EQUAL|TINUE))|URLY_OPEN|L(O(SE_TAG|NE)|ASS(_C)?)|A(SE|TCH))|T(RY|HROW)|I(MPLEMENTS|S(SET|_(GREATER_OR_EQUAL|SMALLER_OR_EQUAL|NOT_(IDENTICAL|EQUAL)|IDENTICAL|EQUAL))|N(STANCEOF|C(LUDE(_ONCE)?)?|T(_CAST|ERFACE)|LINE_HTML)|F)|O(R_EQUAL|BJECT_(CAST|OPERATOR)|PEN_TAG(_WITH_ECHO)?|LD_FUNCTION)|D(NUMBER|I(R|V_EQUAL)|O(C_COMMENT|UBLE_(C(OLON|AST)|ARROW)|LLAR_OPEN_CURLY_BRACES)?|E(C(LARE)?|FAULT))|U(SE|NSET(_CAST)?)|P(R(I(NT|VATE)|OTECTED)|UBLIC|LUS_EQUAL|AAMAYIM_NEKUDOTAYIM)|E(X(TENDS|IT)|MPTY|N(CAPSED_AND_WHITESPACE|D(SWITCH|_HEREDOC|IF|DECLARE|FOR(EACH)?|WHILE))|CHO|VAL|LSE(IF)?)|VAR(IABLE)?|F(I(NAL|LE)|OR(EACH)?|UNC(_C|TION))|WHI(TESPACE|LE)|L(NUMBER|I(ST|NE)|OGICAL_(XOR|OR|AND))|A(RRAY(_CAST)?|BSTRACT|S|ND_EQUAL))\\b",
597
- "name": "support.constant.parser-token.php"
598
- },
599
- {
600
- "comment": "In PHP, any identifier which is not a variable is taken to be a constant.\n \t\t\t\tHowever, if there is no constant defined with the given name then a notice\n \t\t\t\tis generated and the constant is assumed to have the value of its name.",
601
- "match": "[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*",
602
- "name": "constant.other.php"
755
+ "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",
756
+ "name": "support.constant.ext.php",
757
+ "captures": {
758
+ "1": {
759
+ "name": "punctuation.separator.inheritance.php"
603
760
  }
604
- ]
761
+ }
762
+ },
763
+ {
764
+ "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",
765
+ "name": "support.constant.parser-token.php",
766
+ "captures": {
767
+ "1": {
768
+ "name": "punctuation.separator.inheritance.php"
769
+ }
770
+ }
771
+ },
772
+ {
773
+ "match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
774
+ "name": "constant.other.php"
605
775
  }
606
776
  ]
607
777
  },
608
- "function-arguments": {
778
+ "function-parameters": {
609
779
  "patterns": [
610
780
  {
611
781
  "include": "#comments"
612
782
  },
613
783
  {
614
- "begin": "(?xi)\n\t\t\t\t\t\t\t\\s*(array) # Typehint\n\t\t\t\t\t\t\t\\s*(&)? \t\t\t\t\t# Reference\n\t\t\t\t\t\t\t\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*) # The variable name\n\t\t\t\t\t\t\t\\s*(=)\t# A default value\n\t\t\t\t\t\t\t\\s*(array)\\s*(\\()\n\t\t\t\t\t\t\t",
784
+ "match": ",",
785
+ "name": "punctuation.separator.delimiter.php"
786
+ },
787
+ {
788
+ "begin": "(?xi)\n(array) # Typehint\n\\s+((&)?\\s*(\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Variable name with possible reference\n\\s*(=)\\s*(array)\\s*(\\() # Default value",
615
789
  "beginCaptures": {
616
790
  "1": {
617
791
  "name": "storage.type.php"
618
792
  },
619
793
  "2": {
620
- "name": "storage.modifier.reference.php"
794
+ "name": "variable.other.php"
621
795
  },
622
796
  "3": {
623
- "name": "variable.other.php"
797
+ "name": "storage.modifier.reference.php"
624
798
  },
625
799
  "4": {
626
800
  "name": "punctuation.definition.variable.php"
@@ -632,17 +806,17 @@
632
806
  "name": "support.function.construct.php"
633
807
  },
634
808
  "7": {
635
- "name": "punctuation.definition.array.begin.php"
809
+ "name": "punctuation.definition.array.begin.bracket.round.php"
636
810
  }
637
811
  },
638
812
  "contentName": "meta.array.php",
639
813
  "end": "\\)",
640
814
  "endCaptures": {
641
815
  "0": {
642
- "name": "punctuation.definition.array.end.php"
816
+ "name": "punctuation.definition.array.end.bracket.round.php"
643
817
  }
644
818
  },
645
- "name": "meta.function.argument.array.php",
819
+ "name": "meta.function.parameter.array.php",
646
820
  "patterns": [
647
821
  {
648
822
  "include": "#comments"
@@ -656,15 +830,17 @@
656
830
  ]
657
831
  },
658
832
  {
833
+ "match": "(?xi)\n(array|callable) # Typehint\n\\s+((&)?\\s*(\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Variable name with possible reference\n(?: # Optional default value\n \\s*(=)\\s*\n (?:\n (null)\n |\n (\\[)((?>[^\\[\\]]+|\\[\\g<8>\\])*)(\\])\n |((?:\\S*?\\(\\))|(?:\\S*?))\n )\n)?\n\\s*(?=,|\\)|/[/*]|\\#|$) # A closing parentheses (end of argument list) or a comma or a comment",
834
+ "name": "meta.function.parameter.array.php",
659
835
  "captures": {
660
836
  "1": {
661
837
  "name": "storage.type.php"
662
838
  },
663
839
  "2": {
664
- "name": "storage.modifier.reference.php"
840
+ "name": "variable.other.php"
665
841
  },
666
842
  "3": {
667
- "name": "variable.other.php"
843
+ "name": "storage.modifier.reference.php"
668
844
  },
669
845
  "4": {
670
846
  "name": "punctuation.definition.variable.php"
@@ -691,92 +867,111 @@
691
867
  "10": {
692
868
  "name": "invalid.illegal.non-null-typehinted.php"
693
869
  }
694
- },
695
- "match": "(?xi)\n\t\t\t\t\t\t\t\\s*(array|callable) # Typehint\n\t\t\t\t\t\t\t\\s*(&)? \t\t\t\t\t# Reference\n\t\t\t\t\t\t\t\\s*((\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # The variable name\n\t\t\t\t\t\t\t(?:\n\t\t\t\t\t\t\t\t\\s*(?:(=)\\s*(?:(null)|(\\[)((?>[^\\[\\]]+|\\[\\g<8>\\])*)(\\])|((?:\\S*?\\(\\))|(?:\\S*?))))\t# A default value\n\t\t\t\t\t\t\t)?\n\t\t\t\t\t\t\t\\s*(?=,|\\)|/[/*]|\\#|$) # A closing parentheses (end of argument list) or a comma or a comment\n\t\t\t\t\t\t\t",
696
- "name": "meta.function.argument.array.php"
870
+ }
697
871
  },
698
872
  {
699
- "begin": "(?i)(?=[a-z_0-9\\\\]*[a-z_][a-z_0-9]*\\s*&?\\s*(?:\\.\\.\\.)?\\$)",
700
- "end": "(?=,|\\)|/[/*]|\\#|$)",
701
- "name": "meta.function.argument.typehinted.php",
702
- "patterns": [
703
- {
704
- "include": "#class-name"
873
+ "begin": "(?xi)\n(\\\\?(?:[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*\\\\)*) # Optional namespace\n([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Typehinted class name\n\\s+((&)?\\s*(\\.\\.\\.)?(\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Variable name with possible reference",
874
+ "beginCaptures": {
875
+ "1": {
876
+ "name": "support.other.namespace.php",
877
+ "patterns": [
878
+ {
879
+ "match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
880
+ "name": "storage.type.php"
881
+ },
882
+ {
883
+ "match": "\\\\",
884
+ "name": "punctuation.separator.inheritance.php"
885
+ }
886
+ ]
887
+ },
888
+ "2": {
889
+ "name": "storage.type.php"
890
+ },
891
+ "3": {
892
+ "name": "variable.other.php"
893
+ },
894
+ "4": {
895
+ "name": "storage.modifier.reference.php"
896
+ },
897
+ "5": {
898
+ "name": "keyword.operator.variadic.php"
705
899
  },
900
+ "6": {
901
+ "name": "punctuation.definition.variable.php"
902
+ }
903
+ },
904
+ "end": "(?=,|\\)|/[/*]|\\#)",
905
+ "name": "meta.function.parameter.typehinted.php",
906
+ "patterns": [
706
907
  {
707
- "captures": {
708
- "1": {
709
- "name": "support.class.php"
710
- },
711
- "2": {
712
- "name": "storage.modifier.reference.php"
713
- },
714
- "3": {
715
- "name": "variable.other.php"
716
- },
717
- "4": {
718
- "name": "punctuation.definition.variable.php"
719
- },
720
- "5": {
908
+ "begin": "=",
909
+ "beginCaptures": {
910
+ "0": {
721
911
  "name": "keyword.operator.assignment.php"
722
- },
723
- "6": {
724
- "name": "constant.language.php"
725
- },
726
- "7": {
727
- "name": "invalid.illegal.non-null-typehinted.php"
728
912
  }
729
913
  },
730
- "match": "(?xi)\n \t\t\t\t\t\t\t\\s*([a-z_][a-z_0-9]*)? # Typehinted class name\n \t\t\t\t\t\t\t\\s*(&)? \t\t\t\t\t# Reference\n \t\t\t\t\t\t\t\\s*(((?:\\.\\.\\.)?\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # The variable name\n \t\t\t\t\t\t\t(?:\n \t\t\t\t\t\t\t\t\\s*(?:(=)\\s*(?:(null)|((?:\\S*?\\(\\))|(?:\\S*?))))\t# A default value\n \t\t\t\t\t\t\t)?\n \t\t\t\t\t\t\t\\s*(?=,|\\)|/[/*]|\\#|$) # A closing parentheses (end of argument list) or a comma\n\t\t\t\t\t "
914
+ "end": "(?=,|\\)|/[/*]|\\#)",
915
+ "patterns": [
916
+ {
917
+ "include": "#language"
918
+ }
919
+ ]
731
920
  }
732
921
  ]
733
922
  },
734
923
  {
735
924
  "captures": {
736
925
  "1": {
737
- "name": "storage.modifier.reference.php"
926
+ "name": "variable.other.php"
738
927
  },
739
928
  "2": {
740
- "name": "variable.other.php"
929
+ "name": "storage.modifier.reference.php"
741
930
  },
742
931
  "3": {
932
+ "name": "keyword.operator.variadic.php"
933
+ },
934
+ "4": {
743
935
  "name": "punctuation.definition.variable.php"
744
936
  }
745
937
  },
746
- "match": "(?:\\s*(&))?\\s*(((?:\\.\\.\\.)?\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\\s*(?=,|\\)|/[/*]|\\#)",
747
- "name": "meta.function.argument.no-default.php"
938
+ "match": "(?xi)\n((&)?\\s*(\\.\\.\\.)?(\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Variable name with possible reference\n\\s*(?=,|\\)|/[/*]|\\#|$) # A closing parentheses (end of argument list) or a comma or a comment",
939
+ "name": "meta.function.parameter.no-default.php"
748
940
  },
749
941
  {
750
- "begin": "(?:\\s*(&))?\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(?:\\s*(=)\\s*)\\s*(?:(\\[)((?>[^\\[\\]]+|\\[\\g<6>\\])*)(\\]))?",
751
- "captures": {
942
+ "begin": "(?xi)\n((&)?\\s*(\\.\\.\\.)?(\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Variable name with possible reference\n\\s*(=)\\s*\n(?:(\\[)((?>[^\\[\\]]+|\\[\\g<6>\\])*)(\\]))? # Optional default type",
943
+ "beginCaptures": {
752
944
  "1": {
753
- "name": "storage.modifier.reference.php"
945
+ "name": "variable.other.php"
754
946
  },
755
947
  "2": {
756
- "name": "variable.other.php"
948
+ "name": "storage.modifier.reference.php"
757
949
  },
758
950
  "3": {
759
- "name": "punctuation.definition.variable.php"
951
+ "name": "keyword.operator.variadic.php"
760
952
  },
761
953
  "4": {
762
- "name": "keyword.operator.assignment.php"
954
+ "name": "punctuation.definition.variable.php"
763
955
  },
764
956
  "5": {
765
- "name": "punctuation.section.array.begin.php"
957
+ "name": "keyword.operator.assignment.php"
766
958
  },
767
959
  "6": {
960
+ "name": "punctuation.section.array.begin.php"
961
+ },
962
+ "7": {
768
963
  "patterns": [
769
964
  {
770
965
  "include": "#parameter-default-types"
771
966
  }
772
967
  ]
773
968
  },
774
- "7": {
969
+ "8": {
775
970
  "name": "punctuation.section.array.end.php"
776
971
  }
777
972
  },
778
973
  "end": "(?=,|\\)|/[/*]|\\#)",
779
- "name": "meta.function.argument.default.php",
974
+ "name": "meta.function.parameter.default.php",
780
975
  "patterns": [
781
976
  {
782
977
  "include": "#parameter-default-types"
@@ -788,47 +983,80 @@
788
983
  "function-call": {
789
984
  "patterns": [
790
985
  {
791
- "begin": "(?i)(?=\\\\?[a-z_0-9\\\\]+\\\\[a-z_][a-z0-9_]*\\s*\\()",
792
- "comment": "Functions in a user-defined namespace (overrides any built-ins)",
793
- "end": "(?=\\s*\\()",
986
+ "begin": "(?i)(\\\\?[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*\\\\[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\s*(\\()",
987
+ "beginCaptures": {
988
+ "1": {
989
+ "patterns": [
990
+ {
991
+ "include": "#namespace"
992
+ },
993
+ {
994
+ "match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
995
+ "name": "entity.name.function.php"
996
+ }
997
+ ]
998
+ },
999
+ "2": {
1000
+ "name": "punctuation.definition.arguments.begin.bracket.round.php"
1001
+ }
1002
+ },
1003
+ "end": "\\)",
1004
+ "endCaptures": {
1005
+ "0": {
1006
+ "name": "punctuation.definition.arguments.end.bracket.round.php"
1007
+ }
1008
+ },
1009
+ "name": "meta.function-call.php",
794
1010
  "patterns": [
795
1011
  {
796
- "include": "#user-function-call"
1012
+ "include": "#language"
797
1013
  }
798
1014
  ]
799
1015
  },
800
1016
  {
801
- "match": "(?i)\\b(print|echo)\\b",
802
- "name": "support.function.construct.output.php"
803
- },
804
- {
805
- "begin": "(?i)(\\\\)?(?=\\b[a-z_][a-z_0-9]*\\s*\\()",
1017
+ "begin": "(?i)(\\\\)?\\b([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\s*(\\()",
806
1018
  "beginCaptures": {
807
1019
  "1": {
808
1020
  "name": "punctuation.separator.inheritance.php"
1021
+ },
1022
+ "2": {
1023
+ "patterns": [
1024
+ {
1025
+ "include": "#support"
1026
+ },
1027
+ {
1028
+ "match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
1029
+ "name": "entity.name.function.php"
1030
+ }
1031
+ ]
1032
+ },
1033
+ "3": {
1034
+ "name": "punctuation.definition.arguments.begin.bracket.round.php"
1035
+ }
1036
+ },
1037
+ "end": "\\)",
1038
+ "endCaptures": {
1039
+ "0": {
1040
+ "name": "punctuation.definition.arguments.end.bracket.round.php"
809
1041
  }
810
1042
  },
811
- "comment": "Root namespace function calls (built-in or user)",
812
- "end": "(?=\\s*\\()",
1043
+ "name": "meta.function-call.php",
813
1044
  "patterns": [
814
1045
  {
815
- "match": "(?i)\\b(isset|unset|e(val|mpty)|list)(?=\\s*\\()",
816
- "name": "support.function.construct.php"
817
- },
818
- {
819
- "include": "#support"
820
- },
821
- {
822
- "include": "#user-function-call"
1046
+ "include": "#language"
823
1047
  }
824
1048
  ]
1049
+ },
1050
+ {
1051
+ "match": "(?i)\\b(print|echo)\\b",
1052
+ "name": "support.function.construct.output.php"
825
1053
  }
826
1054
  ]
827
1055
  },
828
1056
  "heredoc": {
829
1057
  "patterns": [
830
1058
  {
831
- "begin": "(?=<<<\\s*(\"?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\1)\\s*$)",
1059
+ "begin": "(?i)(?=<<<\\s*(\"?)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)(\\1)\\s*$)",
832
1060
  "end": "(?!\\G)",
833
1061
  "name": "string.unquoted.heredoc.php",
834
1062
  "patterns": [
@@ -1098,7 +1326,6 @@
1098
1326
  "include": "#interpolation"
1099
1327
  },
1100
1328
  {
1101
- "comment": "Escaped from the regexp – there can also be 2 backslashes (since 1 will escape the first)",
1102
1329
  "match": "(\\\\){1,2}[.$^\\[\\]{}]",
1103
1330
  "name": "constant.character.escape.regex.php"
1104
1331
  },
@@ -1111,7 +1338,7 @@
1111
1338
  "name": "punctuation.definition.arbitrary-repitition.php"
1112
1339
  }
1113
1340
  },
1114
- "match": "(\\{)\\d+(,\\d+)?(\\})",
1341
+ "match": "({)\\d+(,\\d+)?(})",
1115
1342
  "name": "string.regexp.arbitrary-repitition.php"
1116
1343
  },
1117
1344
  {
@@ -1135,14 +1362,13 @@
1135
1362
  "name": "keyword.operator.regexp.php"
1136
1363
  },
1137
1364
  {
1138
- "begin": "(?<=^|\\s)(#)\\s(?=[[a-zA-Z0-9,. \\t?!-][^\\x{00}-\\x{7F}]]*$)",
1365
+ "begin": "(?i)(?<=^|\\s)(#)\\s(?=[[a-z0-9_\\x{7f}-\\x{ff},. \\t?!-][^\\x{00}-\\x{7f}]]*$)",
1139
1366
  "beginCaptures": {
1140
1367
  "1": {
1141
1368
  "name": "punctuation.definition.comment.php"
1142
1369
  }
1143
1370
  },
1144
- "comment": "We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.",
1145
- "end": "$\\n?",
1371
+ "end": "$",
1146
1372
  "endCaptures": {
1147
1373
  "0": {
1148
1374
  "name": "punctuation.definition.comment.php"
@@ -1153,7 +1379,7 @@
1153
1379
  ]
1154
1380
  },
1155
1381
  {
1156
- "begin": "(<<<)\\s*(\"?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\2)(\\s*)",
1382
+ "begin": "(?i)(<<<)\\s*(\"?)([a-z_\\x{7f}-\\x{ff}]+[a-z0-9_\\x{7f}-\\x{ff}]*)(\\2)(\\s*)",
1157
1383
  "beginCaptures": {
1158
1384
  "1": {
1159
1385
  "name": "punctuation.definition.string.php"
@@ -1407,7 +1633,6 @@
1407
1633
  },
1408
1634
  "patterns": [
1409
1635
  {
1410
- "comment": "Escaped from the regexp – there can also be 2 backslashes (since 1 will escape the first)",
1411
1636
  "match": "(\\\\){1,2}[.$^\\[\\]{}]",
1412
1637
  "name": "constant.character.escape.regex.php"
1413
1638
  },
@@ -1420,7 +1645,7 @@
1420
1645
  "name": "punctuation.definition.arbitrary-repitition.php"
1421
1646
  }
1422
1647
  },
1423
- "match": "(\\{)\\d+(,\\d+)?(\\})",
1648
+ "match": "({)\\d+(,\\d+)?(})",
1424
1649
  "name": "string.regexp.arbitrary-repitition.php"
1425
1650
  },
1426
1651
  {
@@ -1444,14 +1669,13 @@
1444
1669
  "name": "keyword.operator.regexp.php"
1445
1670
  },
1446
1671
  {
1447
- "begin": "(?<=^|\\s)(#)\\s(?=[[a-zA-Z0-9,. \\t?!-][^\\x{00}-\\x{7F}]]*$)",
1672
+ "begin": "(?i)(?<=^|\\s)(#)\\s(?=[[a-z0-9_\\x{7f}-\\x{ff},. \\t?!-][^\\x{00}-\\x{7f}]]*$)",
1448
1673
  "beginCaptures": {
1449
1674
  "1": {
1450
1675
  "name": "punctuation.definition.comment.php"
1451
1676
  }
1452
1677
  },
1453
- "comment": "We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.",
1454
- "end": "$\\n?",
1678
+ "end": "$",
1455
1679
  "endCaptures": {
1456
1680
  "0": {
1457
1681
  "name": "punctuation.definition.comment.php"
@@ -1462,7 +1686,7 @@
1462
1686
  ]
1463
1687
  },
1464
1688
  {
1465
- "begin": "(<<<)\\s*'([a-zA-Z_]+[a-zA-Z0-9_]*)'(\\s*)",
1689
+ "begin": "(?i)(<<<)\\s*'([a-z_\\x{7f}-\\x{ff}]+[a-z0-9_\\x{7f}-\\x{ff}]*)'(\\s*)",
1466
1690
  "beginCaptures": {
1467
1691
  "1": {
1468
1692
  "name": "punctuation.definition.string.php"
@@ -1490,10 +1714,10 @@
1490
1714
  "name": "keyword.other.new.php"
1491
1715
  }
1492
1716
  },
1493
- "end": "(?i)(?=[^$a-z0-9_\\\\])",
1717
+ "end": "(?i)(?=[^a-z0-9_\\x{7f}-\\x{ff}\\\\])",
1494
1718
  "patterns": [
1495
1719
  {
1496
- "match": "(parent|static|self)(?=[^a-z0-9_])",
1720
+ "match": "(?i)(parent|static|self)(?![a-z0-9_\\x{7f}-\\x{ff}])",
1497
1721
  "name": "storage.type.php"
1498
1722
  },
1499
1723
  {
@@ -1505,7 +1729,6 @@
1505
1729
  ]
1506
1730
  },
1507
1731
  "interpolation": {
1508
- "comment": "http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing",
1509
1732
  "patterns": [
1510
1733
  {
1511
1734
  "match": "\\\\[0-7]{1,3}",
@@ -1520,15 +1743,15 @@
1520
1743
  "name": "constant.character.escape.php"
1521
1744
  },
1522
1745
  {
1523
- "begin": "(\\{)(?=\\$.*?\\})",
1746
+ "begin": "{(?=\\$.*?})",
1524
1747
  "beginCaptures": {
1525
- "1": {
1748
+ "0": {
1526
1749
  "name": "punctuation.definition.variable.php"
1527
1750
  }
1528
1751
  },
1529
- "end": "(\\})",
1752
+ "end": "}",
1530
1753
  "endCaptures": {
1531
- "1": {
1754
+ "0": {
1532
1755
  "name": "punctuation.definition.variable.php"
1533
1756
  }
1534
1757
  },
@@ -1552,7 +1775,7 @@
1552
1775
  "name": "variable.other.php"
1553
1776
  }
1554
1777
  },
1555
- "match": "(?i)(\\$+)([a-z_][a-z_0-9]*)(?=\\s*\\()",
1778
+ "match": "(?i)(\\$+)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)(?=\\s*\\()",
1556
1779
  "name": "meta.function-call.invoke.php"
1557
1780
  },
1558
1781
  "language": {
@@ -1561,15 +1784,15 @@
1561
1784
  "include": "#comments"
1562
1785
  },
1563
1786
  {
1564
- "match": "\\{",
1787
+ "match": "{",
1565
1788
  "name": "punctuation.section.scope.begin.php"
1566
1789
  },
1567
1790
  {
1568
- "match": "\\}",
1791
+ "match": "}",
1569
1792
  "name": "punctuation.section.scope.end.php"
1570
1793
  },
1571
1794
  {
1572
- "begin": "(?i)^\\s*(interface)\\s+([a-z0-9_]+)\\s*(extends)?\\s*",
1795
+ "begin": "(?i)^\\s*(interface)\\s+([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\s*(extends)?\\s*",
1573
1796
  "beginCaptures": {
1574
1797
  "1": {
1575
1798
  "name": "storage.type.interface.php"
@@ -1581,12 +1804,12 @@
1581
1804
  "name": "storage.modifier.extends.php"
1582
1805
  }
1583
1806
  },
1584
- "end": "((?:[a-zA-Z0-9_]+\\s*,\\s*)*)([a-zA-Z0-9_]+)?\\s*(?:(?=\\{)|$)",
1807
+ "end": "(?i)((?:[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*\\s*,\\s*)*)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?\\s*(?:(?={)|$)",
1585
1808
  "endCaptures": {
1586
1809
  "1": {
1587
1810
  "patterns": [
1588
1811
  {
1589
- "match": "[a-zA-Z0-9_]+",
1812
+ "match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
1590
1813
  "name": "entity.other.inherited-class.php"
1591
1814
  },
1592
1815
  {
@@ -1607,7 +1830,7 @@
1607
1830
  ]
1608
1831
  },
1609
1832
  {
1610
- "begin": "(?i)^\\s*(trait)\\s+([a-z0-9_]+)",
1833
+ "begin": "(?i)^\\s*(trait)\\s+([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)",
1611
1834
  "beginCaptures": {
1612
1835
  "1": {
1613
1836
  "name": "storage.type.trait.php"
@@ -1616,7 +1839,7 @@
1616
1839
  "name": "entity.name.type.trait.php"
1617
1840
  }
1618
1841
  },
1619
- "end": "(?=[{])",
1842
+ "end": "(?={)",
1620
1843
  "name": "meta.trait.php",
1621
1844
  "patterns": [
1622
1845
  {
@@ -1625,14 +1848,14 @@
1625
1848
  ]
1626
1849
  },
1627
1850
  {
1628
- "begin": "(?i)(?:^|(?<=<\\?php))\\s*(namespace)\\b\\s+(?=([a-z0-9_\\\\]+\\s*($|[;{]|(\\/[\\/*])))|$)",
1851
+ "begin": "(?i)(?:^|(?<=<\\?php))\\s*(namespace)\\b\\s+(?=([a-z0-9_\\x{7f}-\\x{ff}\\\\]+\\s*($|[;{]|(/[/*])))|$)",
1629
1852
  "beginCaptures": {
1630
1853
  "1": {
1631
1854
  "name": "keyword.other.namespace.php"
1632
1855
  }
1633
1856
  },
1634
1857
  "contentName": "entity.name.type.namespace.php",
1635
- "end": "(?i)(?=\\s*$|[^a-z0-9_\\\\])",
1858
+ "end": "(?i)(?=\\s*$|[^a-z0-9_\\x{7f}-\\x{ff}\\\\])",
1636
1859
  "name": "meta.namespace.php",
1637
1860
  "patterns": [
1638
1861
  {
@@ -1642,16 +1865,13 @@
1642
1865
  ]
1643
1866
  },
1644
1867
  {
1645
- "begin": "(?i)\\s*\\b(use)\\s+(?:((const)|(function))\\s+)?",
1868
+ "begin": "(?i)\\b(use)\\s+(?:(const|function)\\s+)?",
1646
1869
  "beginCaptures": {
1647
1870
  "1": {
1648
1871
  "name": "keyword.other.use.php"
1649
1872
  },
1650
- "3": {
1651
- "name": "storage.type.const.php"
1652
- },
1653
- "4": {
1654
- "name": "storage.type.function.php"
1873
+ "2": {
1874
+ "name": "storage.type.${2:/downcase}.php"
1655
1875
  }
1656
1876
  },
1657
1877
  "end": "(?=;|(?:^\\s*$))",
@@ -1661,8 +1881,8 @@
1661
1881
  "include": "#comments"
1662
1882
  },
1663
1883
  {
1664
- "begin": "(?i)\\s*(?=[a-z_0-9\\\\])",
1665
- "end": "(?xi)(?:\n \t\t\t (?:\\s*(as)\\b\\s*([a-z_0-9]*)\\s*(?=,|;|$))\n \t\t\t |(?=,|;|$)\n \t\t\t )",
1884
+ "begin": "(?i)\\s*(?=[a-z0-9_\\x{7f}-\\x{ff}\\\\])",
1885
+ "end": "(?i)(?:\\s*(as)\\s+([a-z0-9_\\x{7f}-\\x{ff}]*))?\\s*(?=,|;|$)",
1666
1886
  "endCaptures": {
1667
1887
  "1": {
1668
1888
  "name": "keyword.other.use-as.php"
@@ -1676,7 +1896,7 @@
1676
1896
  "include": "#class-builtin"
1677
1897
  },
1678
1898
  {
1679
- "begin": "(?i)\\s*(?=[\\\\a-z_0-9])",
1899
+ "begin": "(?i)\\s*(?=[a-z0-9_\\x{7f}-\\x{ff}\\\\])",
1680
1900
  "end": "$|(?=[\\s,;])",
1681
1901
  "name": "support.other.namespace.use.php",
1682
1902
  "patterns": [
@@ -1694,10 +1914,10 @@
1694
1914
  ]
1695
1915
  },
1696
1916
  {
1697
- "begin": "(?i)^\\s*(abstract|final)?\\s*(class)\\s+([a-z0-9_]+)\\s*",
1917
+ "begin": "(?i)^\\s*(?:(abstract|final)\\s+)?(class)\\s+([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)",
1698
1918
  "beginCaptures": {
1699
1919
  "1": {
1700
- "name": "storage.modifier.abstract.php"
1920
+ "name": "storage.modifier.${1:/downcase}.php"
1701
1921
  },
1702
1922
  "2": {
1703
1923
  "name": "storage.type.class.php"
@@ -1706,7 +1926,12 @@
1706
1926
  "name": "entity.name.type.class.php"
1707
1927
  }
1708
1928
  },
1709
- "end": "(?=[;{])",
1929
+ "end": "}",
1930
+ "endCaptures": {
1931
+ "0": {
1932
+ "name": "punctuation.definition.class.end.bracket.curly.php"
1933
+ }
1934
+ },
1710
1935
  "name": "meta.class.php",
1711
1936
  "patterns": [
1712
1937
  {
@@ -1720,11 +1945,11 @@
1720
1945
  }
1721
1946
  },
1722
1947
  "contentName": "meta.other.inherited-class.php",
1723
- "end": "(?i)(?=[^a-z_0-9\\\\])",
1948
+ "end": "(?i)(?=[^a-z0-9_\\x{7f}-\\x{ff}\\\\])",
1724
1949
  "patterns": [
1725
1950
  {
1726
- "begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
1727
- "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
1951
+ "begin": "(?i)(?=\\\\?[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*\\\\)",
1952
+ "end": "(?i)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?(?=[^a-z0-9_\\x{7f}-\\x{ff}\\\\])",
1728
1953
  "endCaptures": {
1729
1954
  "1": {
1730
1955
  "name": "entity.other.inherited-class.php"
@@ -1743,7 +1968,7 @@
1743
1968
  "include": "#namespace"
1744
1969
  },
1745
1970
  {
1746
- "match": "(?i)[a-z_][a-z_0-9]*",
1971
+ "match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
1747
1972
  "name": "entity.other.inherited-class.php"
1748
1973
  }
1749
1974
  ]
@@ -1761,13 +1986,13 @@
1761
1986
  "include": "#comments"
1762
1987
  },
1763
1988
  {
1764
- "begin": "(?i)(?=[a-z0-9_\\\\]+)",
1989
+ "begin": "(?i)(?=[a-z0-9_\\x{7f}-\\x{ff}\\\\]+)",
1765
1990
  "contentName": "meta.other.inherited-class.php",
1766
- "end": "(?i)(?:\\s*(?:,|(?=[^a-z0-9_\\\\\\s]))\\s*)",
1991
+ "end": "(?i)(?:\\s*(?:,|(?=[^a-z0-9_\\x{7f}-\\x{ff}\\\\\\s]))\\s*)",
1767
1992
  "patterns": [
1768
1993
  {
1769
- "begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
1770
- "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
1994
+ "begin": "(?i)(?=\\\\?[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*\\\\)",
1995
+ "end": "(?i)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?(?=[^a-z0-9_\\x{7f}-\\x{ff}\\\\])",
1771
1996
  "endCaptures": {
1772
1997
  "1": {
1773
1998
  "name": "entity.other.inherited-class.php"
@@ -1786,31 +2011,45 @@
1786
2011
  "include": "#namespace"
1787
2012
  },
1788
2013
  {
1789
- "match": "(?i)[a-z_][a-z_0-9]*",
2014
+ "match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
1790
2015
  "name": "entity.other.inherited-class.php"
1791
2016
  }
1792
2017
  ]
1793
2018
  }
1794
2019
  ]
2020
+ },
2021
+ {
2022
+ "begin": "{",
2023
+ "beginCaptures": {
2024
+ "0": {
2025
+ "name": "punctuation.definition.class.begin.bracket.curly.php"
2026
+ }
2027
+ },
2028
+ "end": "(?=})",
2029
+ "contentName": "meta.class.body.php",
2030
+ "patterns": [
2031
+ {
2032
+ "include": "#class-body"
2033
+ }
2034
+ ]
1795
2035
  }
1796
2036
  ]
1797
2037
  },
1798
2038
  {
1799
- "captures": {
1800
- "1": {
1801
- "name": "keyword.control.php"
1802
- }
1803
- },
1804
- "match": "\\s*\\b((break|c(ase|ontinue)|d(e(clare|fault)|ie|o)|e(lse(if)?|nd(declare|for(each)?|if|switch|while)|xit)|for(each)?|if|return|switch|use|while|yield))\\b"
2039
+ "include": "#switch_statement"
1805
2040
  },
1806
2041
  {
1807
- "begin": "(?i)\\b((?:require|include)(?:_once)?)\\b\\s*",
2042
+ "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",
2043
+ "name": "keyword.control.php"
2044
+ },
2045
+ {
2046
+ "begin": "(?i)\\b((?:require|include)(?:_once)?)\\s+",
1808
2047
  "beginCaptures": {
1809
2048
  "1": {
1810
2049
  "name": "keyword.control.import.include.php"
1811
2050
  }
1812
2051
  },
1813
- "end": "(?=\\s|;|$)",
2052
+ "end": "(?=\\s|;|$|\\?>)",
1814
2053
  "name": "meta.include.php",
1815
2054
  "patterns": [
1816
2055
  {
@@ -1819,28 +2058,51 @@
1819
2058
  ]
1820
2059
  },
1821
2060
  {
1822
- "begin": "\\b(catch)\\b\\s*\\(\\s*",
2061
+ "begin": "\\b(catch)\\s*(\\()",
1823
2062
  "beginCaptures": {
1824
2063
  "1": {
1825
2064
  "name": "keyword.control.exception.catch.php"
2065
+ },
2066
+ "2": {
2067
+ "name": "punctuation.definition.parameters.begin.bracket.round.php"
1826
2068
  }
1827
2069
  },
1828
- "end": "([A-Za-z_][A-Za-z_0-9]*)\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\\s*\\)",
2070
+ "end": "\\)",
1829
2071
  "endCaptures": {
1830
- "1": {
1831
- "name": "support.class.exception.php"
1832
- },
1833
- "2": {
1834
- "name": "variable.other.php"
1835
- },
1836
- "3": {
1837
- "name": "punctuation.definition.variable.php"
2072
+ "0": {
2073
+ "name": "punctuation.definition.parameters.end.bracket.round.php"
1838
2074
  }
1839
2075
  },
1840
2076
  "name": "meta.catch.php",
1841
2077
  "patterns": [
1842
2078
  {
1843
2079
  "include": "#namespace"
2080
+ },
2081
+ {
2082
+ "match": "(?xi)\n([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Exception class\n((?:\\s*\\|\\s*[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)*) # Optional additional exception classes\n\\s*\n((\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Variable",
2083
+ "captures": {
2084
+ "1": {
2085
+ "name": "support.class.exception.php"
2086
+ },
2087
+ "2": {
2088
+ "patterns": [
2089
+ {
2090
+ "match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*",
2091
+ "name": "support.class.exception.php"
2092
+ },
2093
+ {
2094
+ "match": "\\|",
2095
+ "name": "punctuation.separator.delimiter.php"
2096
+ }
2097
+ ]
2098
+ },
2099
+ "3": {
2100
+ "name": "variable.other.php"
2101
+ },
2102
+ "4": {
2103
+ "name": "punctuation.definition.variable.php"
2104
+ }
2105
+ }
1844
2106
  }
1845
2107
  ]
1846
2108
  },
@@ -1849,35 +2111,32 @@
1849
2111
  "name": "keyword.control.exception.php"
1850
2112
  },
1851
2113
  {
1852
- "begin": "(?i)\\b(function)\\s*(&\\s*)?(?=\\()",
2114
+ "begin": "(?i)\\b(function)\\s*(?=\\()",
1853
2115
  "beginCaptures": {
1854
2116
  "1": {
1855
2117
  "name": "storage.type.function.php"
1856
- },
1857
- "2": {
1858
- "name": "storage.modifier.reference.php"
1859
2118
  }
1860
2119
  },
1861
- "end": "(?=\\{)",
2120
+ "end": "(?={)",
1862
2121
  "name": "meta.function.closure.php",
1863
2122
  "patterns": [
1864
2123
  {
1865
- "begin": "(\\()",
2124
+ "begin": "\\(",
1866
2125
  "beginCaptures": {
1867
- "1": {
1868
- "name": "punctuation.definition.parameters.begin.php"
2126
+ "0": {
2127
+ "name": "punctuation.definition.parameters.begin.bracket.round.php"
1869
2128
  }
1870
2129
  },
1871
- "contentName": "meta.function.arguments.php",
1872
- "end": "(\\))",
2130
+ "contentName": "meta.function.parameters.php",
2131
+ "end": "\\)",
1873
2132
  "endCaptures": {
1874
- "1": {
1875
- "name": "punctuation.definition.parameters.end.php"
2133
+ "0": {
2134
+ "name": "punctuation.definition.parameters.end.bracket.round.php"
1876
2135
  }
1877
2136
  },
1878
2137
  "patterns": [
1879
2138
  {
1880
- "include": "#function-arguments"
2139
+ "include": "#function-parameters"
1881
2140
  }
1882
2141
  ]
1883
2142
  },
@@ -1888,29 +2147,29 @@
1888
2147
  "name": "keyword.other.function.use.php"
1889
2148
  },
1890
2149
  "2": {
1891
- "name": "punctuation.definition.parameters.begin.php"
2150
+ "name": "punctuation.definition.parameters.begin.bracket.round.php"
1892
2151
  }
1893
2152
  },
1894
- "end": "(\\))",
2153
+ "end": "\\)",
1895
2154
  "endCaptures": {
1896
- "1": {
1897
- "name": "punctuation.definition.parameters.end.php"
2155
+ "0": {
2156
+ "name": "punctuation.definition.parameters.end.bracket.round.php"
1898
2157
  }
1899
2158
  },
1900
2159
  "patterns": [
1901
2160
  {
1902
2161
  "captures": {
1903
2162
  "1": {
1904
- "name": "storage.modifier.reference.php"
2163
+ "name": "variable.other.php"
1905
2164
  },
1906
2165
  "2": {
1907
- "name": "variable.other.php"
2166
+ "name": "storage.modifier.reference.php"
1908
2167
  },
1909
2168
  "3": {
1910
2169
  "name": "punctuation.definition.variable.php"
1911
2170
  }
1912
2171
  },
1913
- "match": "(?:\\s*(&))?\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\\s*(?=,|\\))",
2172
+ "match": "(?i)((&)?\\s*(\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\s*(?=,|\\))",
1914
2173
  "name": "meta.function.closure.use.php"
1915
2174
  }
1916
2175
  ]
@@ -1918,7 +2177,7 @@
1918
2177
  ]
1919
2178
  },
1920
2179
  {
1921
- "begin": "(?x)\\s*\n\t\t\t\t\t ((?:(?:final|abstract|public|private|protected|static)\\s+)*)\n\t\t\t\t (function)\n\t\t\t\t (?:\\s+|(\\s*&\\s*))\n\t\t\t\t (?:\n\t\t\t\t (__(?:call|construct|debugInfo|destruct|get|set|isset|unset|tostring|clone|set_state|sleep|wakeup|autoload|invoke|callStatic))\n\t\t\t\t |([a-zA-Z0-9_]+)\n\t\t\t\t )\n\t\t\t\t \\s*\n\t\t\t\t (\\()",
2180
+ "begin": "(?x)\n((?:(?:final|abstract|public|private|protected|static)\\s+)*)\n(function)\\s+\n(?i:\n (__(?:call|construct|debugInfo|destruct|get|set|isset|unset|tostring|\n clone|set_state|sleep|wakeup|autoload|invoke|callStatic))\n |([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n)\n\\s*(\\()",
1922
2181
  "beginCaptures": {
1923
2182
  "1": {
1924
2183
  "patterns": [
@@ -1932,29 +2191,32 @@
1932
2191
  "name": "storage.type.function.php"
1933
2192
  },
1934
2193
  "3": {
1935
- "name": "storage.modifier.reference.php"
1936
- },
1937
- "4": {
1938
2194
  "name": "support.function.magic.php"
1939
2195
  },
1940
- "5": {
2196
+ "4": {
1941
2197
  "name": "entity.name.function.php"
1942
2198
  },
1943
- "6": {
1944
- "name": "punctuation.definition.parameters.begin.php"
2199
+ "5": {
2200
+ "name": "punctuation.definition.parameters.begin.bracket.round.php"
1945
2201
  }
1946
2202
  },
1947
- "contentName": "meta.function.arguments.php",
1948
- "end": "(\\))",
2203
+ "contentName": "meta.function.parameters.php",
2204
+ "end": "(\\))(?:\\s*(:)\\s*([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*))?",
1949
2205
  "endCaptures": {
1950
2206
  "1": {
1951
- "name": "punctuation.definition.parameters.end.php"
2207
+ "name": "punctuation.definition.parameters.end.bracket.round.php"
2208
+ },
2209
+ "2": {
2210
+ "name": "keyword.operator.return-value.php"
2211
+ },
2212
+ "3": {
2213
+ "name": "storage.type.php"
1952
2214
  }
1953
2215
  },
1954
2216
  "name": "meta.function.php",
1955
2217
  "patterns": [
1956
2218
  {
1957
- "include": "#function-arguments"
2219
+ "include": "#function-parameters"
1958
2220
  }
1959
2221
  ]
1960
2222
  },
@@ -1962,37 +2224,7 @@
1962
2224
  "include": "#invoke-call"
1963
2225
  },
1964
2226
  {
1965
- "begin": "(?xi)\\s*(?=\n\t\t\t\t [a-z_0-9$\\\\]+(::)\n (?:\n \t\t\t\t ([a-z_][a-z_0-9]*)\\s*\\(\n \t\t\t\t |\n \t\t\t\t ((\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\n \t\t\t\t |\n \t\t\t\t ([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\n \t\t\t\t)?\n\t\t\t\t )",
1966
- "end": "(?x)(::)\n (?:\n \t\t\t\t ([A-Za-z_][A-Za-z_0-9]*)\\s*\\(\n \t\t\t\t |\n \t\t\t\t ((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n \t\t\t\t |\n \t\t\t\t ([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n \t\t\t\t)?",
1967
- "endCaptures": {
1968
- "1": {
1969
- "name": "keyword.operator.class.php"
1970
- },
1971
- "2": {
1972
- "name": "meta.function-call.static.php"
1973
- },
1974
- "3": {
1975
- "name": "variable.other.class.php"
1976
- },
1977
- "4": {
1978
- "name": "punctuation.definition.variable.php"
1979
- },
1980
- "5": {
1981
- "name": "constant.other.class.php"
1982
- }
1983
- },
1984
- "patterns": [
1985
- {
1986
- "match": "(self|static|parent)\\b",
1987
- "name": "storage.type.php"
1988
- },
1989
- {
1990
- "include": "#class-name"
1991
- },
1992
- {
1993
- "include": "#variable-name"
1994
- }
1995
- ]
2227
+ "include": "#scope-resolution"
1996
2228
  },
1997
2229
  {
1998
2230
  "include": "#variables"
@@ -2006,10 +2238,10 @@
2006
2238
  "name": "support.function.construct.php"
2007
2239
  },
2008
2240
  "2": {
2009
- "name": "punctuation.definition.array.begin.php"
2241
+ "name": "punctuation.definition.array.begin.bracket.round.php"
2010
2242
  },
2011
2243
  "3": {
2012
- "name": "punctuation.definition.array.end.php"
2244
+ "name": "punctuation.definition.array.end.bracket.round.php"
2013
2245
  }
2014
2246
  },
2015
2247
  "match": "(array)(\\()(\\))",
@@ -2022,13 +2254,13 @@
2022
2254
  "name": "support.function.construct.php"
2023
2255
  },
2024
2256
  "2": {
2025
- "name": "punctuation.definition.array.begin.php"
2257
+ "name": "punctuation.definition.array.begin.bracket.round.php"
2026
2258
  }
2027
2259
  },
2028
2260
  "end": "\\)",
2029
2261
  "endCaptures": {
2030
2262
  "0": {
2031
- "name": "punctuation.definition.array.end.php"
2263
+ "name": "punctuation.definition.array.end.bracket.round.php"
2032
2264
  }
2033
2265
  },
2034
2266
  "name": "meta.array.php",
@@ -2039,19 +2271,25 @@
2039
2271
  ]
2040
2272
  },
2041
2273
  {
2274
+ "match": "(?i)(\\()\\s*(array|real|double|float|int(?:eger)?|bool(?:ean)?|string|object|binary|unset)\\s*(\\))",
2042
2275
  "captures": {
2043
2276
  "1": {
2277
+ "name": "punctuation.definition.storage-type.begin.bracket.round.php"
2278
+ },
2279
+ "2": {
2044
2280
  "name": "storage.type.php"
2281
+ },
2282
+ "3": {
2283
+ "name": "punctuation.definition.storage-type.end.bracket.round.php"
2045
2284
  }
2046
- },
2047
- "match": "(?i)\\s*\\(\\s*(array|real|double|float|int(eger)?|bool(ean)?|string|object|binary|unset)\\s*\\)"
2285
+ }
2048
2286
  },
2049
2287
  {
2050
2288
  "match": "(?i)\\b(array|real|double|float|int(eger)?|bool(ean)?|string|class|clone|var|function|interface|trait|parent|self|object)\\b",
2051
2289
  "name": "storage.type.php"
2052
2290
  },
2053
2291
  {
2054
- "match": "(?i)\\b(global|abstract|const|extends|implements|final|p(r(ivate|otected)|ublic)|static)\\b",
2292
+ "match": "(?i)\\b(global|abstract|const|extends|implements|final|private|protected|public|static)\\b",
2055
2293
  "name": "storage.modifier.php"
2056
2294
  },
2057
2295
  {
@@ -2084,14 +2322,14 @@
2084
2322
  "name": "storage.modifier.reference.php"
2085
2323
  }
2086
2324
  },
2087
- "match": "(?:(\\=)(&))|(&(?=[$A-Za-z_]))"
2325
+ "match": "(?i)(\\=)(&)|(&)(?=[$a-z_])"
2088
2326
  },
2089
2327
  {
2090
- "match": "(@)",
2328
+ "match": "@",
2091
2329
  "name": "keyword.operator.error-control.php"
2092
2330
  },
2093
2331
  {
2094
- "match": "(===|==|!==|!=|<>)",
2332
+ "match": "===|==|!==|!=|<>",
2095
2333
  "name": "keyword.operator.comparison.php"
2096
2334
  },
2097
2335
  {
@@ -2099,15 +2337,15 @@
2099
2337
  "name": "keyword.operator.assignment.php"
2100
2338
  },
2101
2339
  {
2102
- "match": "(<=>|<=|>=|<|>)",
2340
+ "match": "<=>|<=|>=|<|>",
2103
2341
  "name": "keyword.operator.comparison.php"
2104
2342
  },
2105
2343
  {
2106
- "match": "(\\-\\-|\\+\\+)",
2344
+ "match": "\\-\\-|\\+\\+",
2107
2345
  "name": "keyword.operator.increment-decrement.php"
2108
2346
  },
2109
2347
  {
2110
- "match": "(\\-|\\+|\\*|/|%)",
2348
+ "match": "\\-|\\+|\\*|/|%",
2111
2349
  "name": "keyword.operator.arithmetic.php"
2112
2350
  },
2113
2351
  {
@@ -2122,13 +2360,13 @@
2122
2360
  "name": "keyword.operator.bitwise.php"
2123
2361
  },
2124
2362
  {
2125
- "begin": "(?i)\\b(instanceof)\\b\\s+(?=[\\\\$a-z_])",
2363
+ "begin": "(?i)\\b(instanceof)\\s+(?=[\\\\$a-z_])",
2126
2364
  "beginCaptures": {
2127
2365
  "1": {
2128
2366
  "name": "keyword.operator.type.php"
2129
2367
  }
2130
2368
  },
2131
- "end": "(?=[^\\\\$A-Za-z_0-9])",
2369
+ "end": "(?=[^\\\\$a-z0-9_\\x{7f}-\\x{ff}])",
2132
2370
  "patterns": [
2133
2371
  {
2134
2372
  "include": "#class-name"
@@ -2153,7 +2391,7 @@
2153
2391
  "name": "support.other.php"
2154
2392
  }
2155
2393
  },
2156
- "match": "(?i)(goto)\\s+([a-z_][a-z_0-9]*)"
2394
+ "match": "(?i)(goto)\\s+([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)"
2157
2395
  },
2158
2396
  {
2159
2397
  "captures": {
@@ -2161,22 +2399,41 @@
2161
2399
  "name": "entity.name.goto-label.php"
2162
2400
  }
2163
2401
  },
2164
- "match": "(?i)^\\s*([a-z_][a-z_0-9]*)\\s*:"
2402
+ "match": "(?i)^\\s*([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\s*:(?!:)"
2165
2403
  },
2166
2404
  {
2167
2405
  "include": "#string-backtick"
2168
2406
  },
2169
2407
  {
2170
- "begin": "\\[",
2408
+ "begin": "\\[",
2409
+ "beginCaptures": {
2410
+ "0": {
2411
+ "name": "punctuation.section.array.begin.php"
2412
+ }
2413
+ },
2414
+ "end": "\\]",
2415
+ "endCaptures": {
2416
+ "0": {
2417
+ "name": "punctuation.section.array.end.php"
2418
+ }
2419
+ },
2420
+ "patterns": [
2421
+ {
2422
+ "include": "#language"
2423
+ }
2424
+ ]
2425
+ },
2426
+ {
2427
+ "begin": "\\(",
2171
2428
  "beginCaptures": {
2172
2429
  "0": {
2173
- "name": "punctuation.section.array.begin.php"
2430
+ "name": "punctuation.definition.begin.bracket.round.php"
2174
2431
  }
2175
2432
  },
2176
- "end": "\\]",
2433
+ "end": "\\)",
2177
2434
  "endCaptures": {
2178
2435
  "0": {
2179
- "name": "punctuation.section.array.end.php"
2436
+ "name": "punctuation.definition.end.bracket.round.php"
2180
2437
  }
2181
2438
  },
2182
2439
  "patterns": [
@@ -2187,11 +2444,15 @@
2187
2444
  },
2188
2445
  {
2189
2446
  "include": "#constants"
2447
+ },
2448
+ {
2449
+ "match": ",",
2450
+ "name": "punctuation.separator.delimiter.php"
2190
2451
  }
2191
2452
  ]
2192
2453
  },
2193
2454
  "namespace": {
2194
- "begin": "(?i)(?:(namespace)|[a-z0-9_]+)?(\\\\)(?=.*?[^a-z_0-9\\\\])",
2455
+ "begin": "(?i)(?:(namespace)|[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?(\\\\)(?=.*?[^a-z0-9_\\x{7f}-\\x{ff}\\\\])",
2195
2456
  "beginCaptures": {
2196
2457
  "1": {
2197
2458
  "name": "variable.language.namespace.php"
@@ -2200,27 +2461,23 @@
2200
2461
  "name": "punctuation.separator.inheritance.php"
2201
2462
  }
2202
2463
  },
2203
- "end": "(?i)(?=[a-z0-9_]*[^a-z0-9_\\\\])",
2464
+ "end": "(?i)(?=[a-z0-9_\\x{7f}-\\x{ff}]*[^a-z0-9_\\x{7f}-\\x{ff}\\\\])",
2204
2465
  "name": "support.other.namespace.php",
2205
2466
  "patterns": [
2206
2467
  {
2207
- "captures": {
2208
- "1": {
2209
- "name": "punctuation.separator.inheritance.php"
2210
- }
2211
- },
2212
- "match": "(?i)(\\\\)"
2468
+ "match": "\\\\",
2469
+ "name": "punctuation.separator.inheritance.php"
2213
2470
  }
2214
2471
  ]
2215
2472
  },
2216
2473
  "numbers": {
2217
- "match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b",
2474
+ "match": "(?i)\\b((0x[0-9a-f]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))(e(\\+|-)?[0-9]+)?)\\b",
2218
2475
  "name": "constant.numeric.php"
2219
2476
  },
2220
2477
  "object": {
2221
2478
  "patterns": [
2222
2479
  {
2223
- "begin": "(->)(\\$?\\{)",
2480
+ "begin": "(->)(\\$?{)",
2224
2481
  "beginCaptures": {
2225
2482
  "1": {
2226
2483
  "name": "keyword.operator.class.php"
@@ -2229,9 +2486,9 @@
2229
2486
  "name": "punctuation.definition.variable.php"
2230
2487
  }
2231
2488
  },
2232
- "end": "(\\})",
2489
+ "end": "}",
2233
2490
  "endCaptures": {
2234
- "1": {
2491
+ "0": {
2235
2492
  "name": "punctuation.definition.variable.php"
2236
2493
  }
2237
2494
  },
@@ -2242,21 +2499,44 @@
2242
2499
  ]
2243
2500
  },
2244
2501
  {
2245
- "captures": {
2502
+ "begin": "(?i)(->)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\s*(\\()",
2503
+ "beginCaptures": {
2246
2504
  "1": {
2247
2505
  "name": "keyword.operator.class.php"
2248
2506
  },
2249
2507
  "2": {
2250
- "name": "meta.function-call.object.php"
2508
+ "name": "entity.name.function.php"
2251
2509
  },
2252
2510
  "3": {
2511
+ "name": "punctuation.definition.arguments.begin.bracket.round.php"
2512
+ }
2513
+ },
2514
+ "end": "\\)",
2515
+ "endCaptures": {
2516
+ "0": {
2517
+ "name": "punctuation.definition.arguments.end.bracket.round.php"
2518
+ }
2519
+ },
2520
+ "name": "meta.method-call.php",
2521
+ "patterns": [
2522
+ {
2523
+ "include": "#language"
2524
+ }
2525
+ ]
2526
+ },
2527
+ {
2528
+ "captures": {
2529
+ "1": {
2530
+ "name": "keyword.operator.class.php"
2531
+ },
2532
+ "2": {
2253
2533
  "name": "variable.other.property.php"
2254
2534
  },
2255
- "4": {
2535
+ "3": {
2256
2536
  "name": "punctuation.definition.variable.php"
2257
2537
  }
2258
2538
  },
2259
- "match": "(?x)(->)\n \t\t\t\t(?:\n \t\t\t\t ([A-Za-z_][A-Za-z_0-9]*)\\s*\\(\n \t\t\t\t |\n \t\t\t\t ((\\$+)?[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n \t\t\t\t)?"
2539
+ "match": "(?i)(->)((\\$+)?[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?"
2260
2540
  }
2261
2541
  ]
2262
2542
  },
@@ -2293,13 +2573,13 @@
2293
2573
  "name": "support.function.construct.php"
2294
2574
  },
2295
2575
  "2": {
2296
- "name": "punctuation.definition.array.begin.php"
2576
+ "name": "punctuation.definition.array.begin.bracket.round.php"
2297
2577
  }
2298
2578
  },
2299
2579
  "end": "\\)",
2300
2580
  "endCaptures": {
2301
2581
  "0": {
2302
- "name": "punctuation.definition.array.end.php"
2582
+ "name": "punctuation.definition.array.end.bracket.round.php"
2303
2583
  }
2304
2584
  },
2305
2585
  "name": "meta.array.php",
@@ -2313,7 +2593,7 @@
2313
2593
  "include": "#instantiation"
2314
2594
  },
2315
2595
  {
2316
- "begin": "(?xi)\\s*(?=\n\t\t\t\t [a-z_0-9\\\\]+(::)\n \t\t\t\t ([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?\n\t\t\t\t )",
2596
+ "begin": "(?xi)\n(?=[a-z0-9_\\x{7f}-\\x{ff}\\\\]+(::)\n ([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?\n)",
2317
2597
  "end": "(?i)(::)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?",
2318
2598
  "endCaptures": {
2319
2599
  "1": {
@@ -2337,8 +2617,7 @@
2337
2617
  "php_doc": {
2338
2618
  "patterns": [
2339
2619
  {
2340
- "comment": "PHPDocumentor only recognises lines with an asterisk as the first non-whitespaces character",
2341
- "match": "^(?!\\s*\\*).*$\\n?",
2620
+ "match": "^(?!\\s*\\*).*?(?:(?=\\*\\/)|$\\n?)",
2342
2621
  "name": "invalid.illegal.missing-asterisk.phpdoc.php"
2343
2622
  },
2344
2623
  {
@@ -2367,7 +2646,28 @@
2367
2646
  "match": "(@xlink)\\s+(.+)\\s*$"
2368
2647
  },
2369
2648
  {
2370
- "match": "\\@(a(pi|bstract|uthor)|c(ategory|opyright)|example|global|internal|li(cense|nk)|method|p(roperty(\\-read|\\-write|)|ackage|aram)|return|s(ee|ince|ource|tatic|ubpackage)|t(hrows|odo)|v(ar|ersion)|uses|deprecated|final|ignore)\\b",
2649
+ "begin": "(@(?:global|param|property(-(read|write))?|return|throws|var))\\s+(?=[A-Za-z_\\x{7f}-\\x{ff}]|\\()",
2650
+ "beginCaptures": {
2651
+ "1": {
2652
+ "name": "keyword.other.phpdoc.php"
2653
+ }
2654
+ },
2655
+ "end": "(?=\\s|\\*/)",
2656
+ "contentName": "meta.other.type.phpdoc.php",
2657
+ "patterns": [
2658
+ {
2659
+ "include": "#php_doc_types_array_multiple"
2660
+ },
2661
+ {
2662
+ "include": "#php_doc_types_array_single"
2663
+ },
2664
+ {
2665
+ "include": "#php_doc_types"
2666
+ }
2667
+ ]
2668
+ },
2669
+ {
2670
+ "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",
2371
2671
  "name": "keyword.other.phpdoc.php"
2372
2672
  },
2373
2673
  {
@@ -2376,13 +2676,80 @@
2376
2676
  "name": "keyword.other.phpdoc.php"
2377
2677
  }
2378
2678
  },
2379
- "match": "\\{(@(link)).+?\\}",
2679
+ "match": "{(@(link|inherit[Dd]oc)).+?}",
2380
2680
  "name": "meta.tag.inline.phpdoc.php"
2381
2681
  }
2382
2682
  ]
2383
2683
  },
2684
+ "php_doc_types": {
2685
+ "match": "(?i)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*(\\|[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)*",
2686
+ "captures": {
2687
+ "0": {
2688
+ "patterns": [
2689
+ {
2690
+ "match": "(?x)\\b\n(string|integer|int|boolean|bool|float|double|object|mixed\n|array|resource|void|null|callback|false|true|self)\\b",
2691
+ "name": "keyword.other.type.php"
2692
+ },
2693
+ {
2694
+ "include": "#class-name"
2695
+ },
2696
+ {
2697
+ "match": "\\|",
2698
+ "name": "punctuation.separator.delimiter.php"
2699
+ }
2700
+ ]
2701
+ }
2702
+ }
2703
+ },
2704
+ "php_doc_types_array_multiple": {
2705
+ "begin": "\\(",
2706
+ "beginCaptures": {
2707
+ "0": {
2708
+ "name": "punctuation.definition.type.begin.bracket.round.phpdoc.php"
2709
+ }
2710
+ },
2711
+ "end": "(\\))(\\[\\])",
2712
+ "endCaptures": {
2713
+ "1": {
2714
+ "name": "punctuation.definition.type.end.bracket.round.phpdoc.php"
2715
+ },
2716
+ "2": {
2717
+ "name": "keyword.other.array.phpdoc.php"
2718
+ }
2719
+ },
2720
+ "patterns": [
2721
+ {
2722
+ "include": "#php_doc_types_array_multiple"
2723
+ },
2724
+ {
2725
+ "include": "#php_doc_types_array_single"
2726
+ },
2727
+ {
2728
+ "include": "#php_doc_types"
2729
+ },
2730
+ {
2731
+ "match": "\\|",
2732
+ "name": "punctuation.separator.delimiter.php"
2733
+ }
2734
+ ]
2735
+ },
2736
+ "php_doc_types_array_single": {
2737
+ "match": "(?i)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)(\\[\\])",
2738
+ "captures": {
2739
+ "1": {
2740
+ "patterns": [
2741
+ {
2742
+ "include": "#php_doc_types"
2743
+ }
2744
+ ]
2745
+ },
2746
+ "2": {
2747
+ "name": "keyword.other.array.phpdoc.php"
2748
+ }
2749
+ }
2750
+ },
2384
2751
  "regex-double-quoted": {
2385
- "begin": "(?x)\"/ (?= (\\\\.|[^\"/])++/[imsxeADSUXu]*\" )",
2752
+ "begin": "\"/(?=(\\\\.|[^\"/])++/[imsxeADSUXu]*\")",
2386
2753
  "beginCaptures": {
2387
2754
  "0": {
2388
2755
  "name": "punctuation.definition.string.begin.php"
@@ -2397,7 +2764,6 @@
2397
2764
  "name": "string.regexp.double-quoted.php",
2398
2765
  "patterns": [
2399
2766
  {
2400
- "comment": "Escaped from the regexp – there can also be 2 backslashes (since 1 will escape the first)",
2401
2767
  "match": "(\\\\){1,2}[.$^\\[\\]{}]",
2402
2768
  "name": "constant.character.escape.regex.php"
2403
2769
  },
@@ -2413,7 +2779,7 @@
2413
2779
  "name": "punctuation.definition.arbitrary-repetition.php"
2414
2780
  }
2415
2781
  },
2416
- "match": "(\\{)\\d+(,\\d+)?(\\})",
2782
+ "match": "({)\\d+(,\\d+)?(})",
2417
2783
  "name": "string.regexp.arbitrary-repetition.php"
2418
2784
  },
2419
2785
  {
@@ -2438,7 +2804,7 @@
2438
2804
  ]
2439
2805
  },
2440
2806
  "regex-single-quoted": {
2441
- "begin": "(?x)'/ (?= ( \\\\ (?: \\\\ (?: \\\\ [\\\\']? | [^'] ) | . ) | [^'/] )++/[imsxeADSUXu]*' )",
2807
+ "begin": "'/(?=(\\\\(?:\\\\(?:\\\\[\\\\']?|[^'])|.)|[^'/])++/[imsxeADSUXu]*')",
2442
2808
  "beginCaptures": {
2443
2809
  "0": {
2444
2810
  "name": "punctuation.definition.string.begin.php"
@@ -2464,7 +2830,7 @@
2464
2830
  "name": "punctuation.definition.arbitrary-repetition.php"
2465
2831
  }
2466
2832
  },
2467
- "match": "(\\{)\\d+(,\\d+)?(\\})",
2833
+ "match": "({)\\d+(,\\d+)?(})",
2468
2834
  "name": "string.regexp.arbitrary-repetition.php"
2469
2835
  },
2470
2836
  {
@@ -2483,13 +2849,89 @@
2483
2849
  }
2484
2850
  ]
2485
2851
  },
2852
+ "scope-resolution": {
2853
+ "patterns": [
2854
+ {
2855
+ "match": "(?i)\\b([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)(?=\\s*::)",
2856
+ "captures": {
2857
+ "1": {
2858
+ "patterns": [
2859
+ {
2860
+ "match": "\\b(self|static|parent)\\b",
2861
+ "name": "storage.type.php"
2862
+ },
2863
+ {
2864
+ "include": "#class-name"
2865
+ },
2866
+ {
2867
+ "include": "#variable-name"
2868
+ }
2869
+ ]
2870
+ }
2871
+ }
2872
+ },
2873
+ {
2874
+ "begin": "(?i)(::)\\s*([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\\s*(\\()",
2875
+ "beginCaptures": {
2876
+ "1": {
2877
+ "name": "keyword.operator.class.php"
2878
+ },
2879
+ "2": {
2880
+ "name": "entity.name.function.php"
2881
+ },
2882
+ "3": {
2883
+ "name": "punctuation.definition.arguments.begin.bracket.round.php"
2884
+ }
2885
+ },
2886
+ "end": "\\)",
2887
+ "endCaptures": {
2888
+ "0": {
2889
+ "name": "punctuation.definition.arguments.end.bracket.round.php"
2890
+ }
2891
+ },
2892
+ "name": "meta.method-call.static.php",
2893
+ "patterns": [
2894
+ {
2895
+ "include": "#language"
2896
+ }
2897
+ ]
2898
+ },
2899
+ {
2900
+ "match": "(?i)(::)\\s*(class)\\b",
2901
+ "captures": {
2902
+ "1": {
2903
+ "name": "keyword.operator.class.php"
2904
+ },
2905
+ "2": {
2906
+ "name": "keyword.other.class.php"
2907
+ }
2908
+ }
2909
+ },
2910
+ {
2911
+ "match": "(?xi)\n(::)\\s*\n(?:\n ((\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Variable\n |\n ([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # Constant\n)?",
2912
+ "captures": {
2913
+ "1": {
2914
+ "name": "keyword.operator.class.php"
2915
+ },
2916
+ "2": {
2917
+ "name": "variable.other.class.php"
2918
+ },
2919
+ "3": {
2920
+ "name": "punctuation.definition.variable.php"
2921
+ },
2922
+ "4": {
2923
+ "name": "constant.other.class.php"
2924
+ }
2925
+ }
2926
+ }
2927
+ ]
2928
+ },
2486
2929
  "single_quote_regex_escape": {
2487
- "comment": "Support both PHP string and regex escaping",
2488
- "match": "(?x) \\\\ (?: \\\\ (?: \\\\ [\\\\']? | [^'] ) | . )",
2930
+ "match": "\\\\(?:\\\\(?:\\\\[\\\\']?|[^'])|.)",
2489
2931
  "name": "constant.character.escape.php"
2490
2932
  },
2491
2933
  "sql-string-double-quoted": {
2492
- "begin": "\"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)",
2934
+ "begin": "\"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND)\\b)",
2493
2935
  "beginCaptures": {
2494
2936
  "0": {
2495
2937
  "name": "punctuation.definition.string.begin.php"
@@ -2505,24 +2947,32 @@
2505
2947
  "name": "string.quoted.double.sql.php",
2506
2948
  "patterns": [
2507
2949
  {
2508
- "match": "#(\\\\\"|[^\"])*(?=\"|$\\n?)",
2509
- "name": "comment.line.number-sign.sql"
2950
+ "match": "(#)(\\\\\"|[^\"])*(?=\"|$)",
2951
+ "name": "comment.line.number-sign.sql",
2952
+ "captures": {
2953
+ "1": {
2954
+ "name": "punctuation.definition.comment.sql"
2955
+ }
2956
+ }
2510
2957
  },
2511
2958
  {
2512
- "match": "--(\\\\\"|[^\"])*(?=\"|$\\n?)",
2513
- "name": "comment.line.double-dash.sql"
2959
+ "match": "(--)(\\\\\"|[^\"])*(?=\"|$)",
2960
+ "name": "comment.line.double-dash.sql",
2961
+ "captures": {
2962
+ "1": {
2963
+ "name": "punctuation.definition.comment.sql"
2964
+ }
2965
+ }
2514
2966
  },
2515
2967
  {
2516
2968
  "match": "\\\\[\\\\\"`']",
2517
2969
  "name": "constant.character.escape.php"
2518
2970
  },
2519
2971
  {
2520
- "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\n\t\t\t\t\tSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
2521
2972
  "match": "'(?=((\\\\')|[^'\"])*(\"|$))",
2522
2973
  "name": "string.quoted.single.unclosed.sql"
2523
2974
  },
2524
2975
  {
2525
- "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\n\t\t\t\t\tSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
2526
2976
  "match": "`(?=((\\\\`)|[^`\"])*(\"|$))",
2527
2977
  "name": "string.quoted.other.backtick.unclosed.sql"
2528
2978
  },
@@ -2555,7 +3005,7 @@
2555
3005
  ]
2556
3006
  },
2557
3007
  "sql-string-single-quoted": {
2558
- "begin": "'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)",
3008
+ "begin": "'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND)\\b)",
2559
3009
  "beginCaptures": {
2560
3010
  "0": {
2561
3011
  "name": "punctuation.definition.string.begin.php"
@@ -2571,24 +3021,32 @@
2571
3021
  "name": "string.quoted.single.sql.php",
2572
3022
  "patterns": [
2573
3023
  {
2574
- "match": "#(\\\\'|[^'])*(?='|$\\n?)",
2575
- "name": "comment.line.number-sign.sql"
3024
+ "match": "(#)(\\\\'|[^'])*(?='|$)",
3025
+ "name": "comment.line.number-sign.sql",
3026
+ "captures": {
3027
+ "1": {
3028
+ "name": "punctuation.definition.comment.sql"
3029
+ }
3030
+ }
2576
3031
  },
2577
3032
  {
2578
- "match": "--(\\\\'|[^'])*(?='|$\\n?)",
2579
- "name": "comment.line.double-dash.sql"
3033
+ "match": "(--)(\\\\'|[^'])*(?='|$)",
3034
+ "name": "comment.line.double-dash.sql",
3035
+ "captures": {
3036
+ "1": {
3037
+ "name": "punctuation.definition.comment.sql"
3038
+ }
3039
+ }
2580
3040
  },
2581
3041
  {
2582
3042
  "match": "\\\\[\\\\'`\"]",
2583
3043
  "name": "constant.character.escape.php"
2584
3044
  },
2585
3045
  {
2586
- "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\n\t\t\t\t\tSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
2587
3046
  "match": "`(?=((\\\\`)|[^`'])*('|$))",
2588
3047
  "name": "string.quoted.other.backtick.unclosed.sql"
2589
3048
  },
2590
3049
  {
2591
- "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\n\t\t\t\t\tSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
2592
3050
  "match": "\"(?=((\\\\\")|[^\"'])*('|$))",
2593
3051
  "name": "string.quoted.double.unclosed.sql"
2594
3052
  },
@@ -2628,8 +3086,6 @@
2628
3086
  "name": "punctuation.definition.string.begin.php"
2629
3087
  }
2630
3088
  },
2631
- "comment": "This contentName is just to allow the usage of “select scope” to select the string contents first, then the string with quotes",
2632
- "contentName": "meta.string-contents.quoted.double.php",
2633
3089
  "end": "\"",
2634
3090
  "endCaptures": {
2635
3091
  "0": {
@@ -2650,7 +3106,6 @@
2650
3106
  "name": "punctuation.definition.string.begin.php"
2651
3107
  }
2652
3108
  },
2653
- "contentName": "meta.string-contents.quoted.single.php",
2654
3109
  "end": "'",
2655
3110
  "endCaptures": {
2656
3111
  "0": {
@@ -2690,19 +3145,19 @@
2690
3145
  "support": {
2691
3146
  "patterns": [
2692
3147
  {
2693
- "match": "(?i)\\bapc_(s(tore|ma_info)|c(ompile_file|lear_cache|a(s|che_info))|inc|de(c|fine_constants|lete(_file)?)|exists|fetch|load_constants|add|bin_(dump(file)?|load(file)?))\\b",
3148
+ "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",
2694
3149
  "name": "support.function.apc.php"
2695
3150
  },
2696
3151
  {
2697
- "match": "(?i)\\b(s(huffle|izeof|ort)|n(ext|at(sort|casesort))|c(o(unt|mpact)|urrent)|in_array|u(sort|ksort|asort)|p(os|rev)|e(nd|ach|xtract)|k(sort|ey(_exists)?|rsort)|list|a(sort|r(sort|ray(_(s(hift|um|plice|earch|lice)|c(h(unk|ange_key_case)|o(unt_values|lumn|mbine))|intersect(_(u(key|assoc)|key|assoc))?|diff(_(u(key|assoc)|key|assoc))?|u(n(shift|ique)|intersect(_(uassoc|assoc))?|diff(_(uassoc|assoc))?)|p(op|ush|ad|roduct)|values|key(s|_exists)|f(il(ter|l(_keys)?)|lip)|walk(_recursive)?|r(e(duce|place(_recursive)?|verse)|and)|m(ultisort|erge(_recursive)?|ap)))?))|r(sort|eset|ange))\\b",
3152
+ "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",
2698
3153
  "name": "support.function.array.php"
2699
3154
  },
2700
3155
  {
2701
- "match": "(?i)\\b(s(how_source|ys_getloadavg|leep)|highlight_(string|file)|con(stant|nection_(status|aborted))|time_(sleep_until|nanosleep)|ignore_user_abort|d(ie|efine(d)?)|u(sleep|n(iqid|pack))|__halt_compiler|p(hp_(strip_whitespace|check_syntax)|ack)|e(val|xit)|get_browser)\\b",
3156
+ "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",
2702
3157
  "name": "support.function.basic_functions.php"
2703
3158
  },
2704
3159
  {
2705
- "match": "(?i)\\bbc(s(cale|ub|qrt)|comp|div|pow(mod)?|add|m(od|ul))\\b",
3160
+ "match": "(?i)\\bbc(scale|sub|sqrt|comp|div|pow(mod)?|add|mod|mul)\\b",
2706
3161
  "name": "support.function.bcmath.php"
2707
3162
  },
2708
3163
  {
@@ -2710,75 +3165,83 @@
2710
3165
  "name": "support.function.blenc.php"
2711
3166
  },
2712
3167
  {
2713
- "match": "(?i)\\bbz(c(ompress|lose)|open|decompress|err(str|no|or)|flush|write|read)\\b",
3168
+ "match": "(?i)\\bbz(compress|close|open|decompress|errstr|errno|error|flush|write|read)\\b",
2714
3169
  "name": "support.function.bz2.php"
2715
3170
  },
2716
3171
  {
2717
- "match": "(?i)\\b(GregorianToJD|cal_(to_jd|info|days_in_month|from_jd)|unixtojd|jdto(unix|jewish)|easter_da(ys|te)|J(ulianToJD|ewishToJD|D(MonthName|To(Gregorian|Julian|French)|DayOfWeek))|FrenchToJD)\\b",
3172
+ "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",
2718
3173
  "name": "support.function.calendar.php"
2719
3174
  },
2720
3175
  {
2721
- "match": "(?i)\\b(c(lass_(exists|alias)|all_user_method(_array)?)|trait_exists|i(s_(subclass_of|a)|nterface_exists)|__autoload|property_exists|get_(c(lass(_(vars|methods))?|alled_class)|object_vars|declared_(classes|traits|interfaces)|parent_class)|method_exists)\\b",
3176
+ "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",
2722
3177
  "name": "support.function.classobj.php"
2723
3178
  },
2724
3179
  {
2725
- "match": "(?i)\\b(com_(create_guid|print_typeinfo|event_sink|load_typelib|get_active_object|message_pump)|variant_(s(ub|et(_type)?)|n(ot|eg)|c(a(st|t)|mp)|i(nt|div|mp)|or|d(iv|ate_(to_timestamp|from_timestamp))|pow|eqv|fix|a(nd|dd|bs)|round|get_type|xor|m(od|ul)))\\b",
3180
+ "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",
2726
3181
  "name": "support.function.com.php"
2727
3182
  },
2728
3183
  {
2729
- "match": "(?i)\\bctype_(space|cntrl|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit)\\b",
3184
+ "begin": "(?i)\\b(isset|unset|eval|empty|list)\\b",
3185
+ "name": "support.function.construct.php"
3186
+ },
3187
+ {
3188
+ "match": "(?i)\\b(print|echo)\\b",
3189
+ "name": "support.function.construct.output.php"
3190
+ },
3191
+ {
3192
+ "match": "(?i)\\bctype_(space|cntrl|digit|upper|punct|print|lower|alnum|alpha|graph|xdigit)\\b",
2730
3193
  "name": "support.function.ctype.php"
2731
3194
  },
2732
3195
  {
2733
- "match": "(?i)\\bcurl_(s(hare_(setopt|close|init)|trerror|etopt(_array)?)|c(opy_handle|lose)|init|unescape|pause|e(scape|rr(no|or)|xec)|version|file_create|reset|getinfo|multi_(s(trerror|e(topt|lect))|close|in(it|fo_read)|exec|add_handle|remove_handle|getcontent))\\b",
3196
+ "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",
2734
3197
  "name": "support.function.curl.php"
2735
3198
  },
2736
3199
  {
2737
- "match": "(?i)\\b(str(totime|ptime|ftime)|checkdate|time(zone_(name_(from_abbr|get)|transitions_get|identifiers_list|o(pen|ffset_get)|version_get|location_get|abbreviations_list))?|idate|date(_(su(n(set|_info|rise)|b)|create(_(immutable(_from_format)?|from_format))?|time(stamp_(set|get)|zone_(set|get)|_set)|i(sodate_set|nterval_(create_from_date_string|format))|offset_get|d(iff|efault_timezone_(set|get)|ate_set)|parse(_from_format)?|format|add|get_last_errors|modify))?|localtime|g(et(timeofday|date)|m(strftime|date|mktime))|m(icrotime|ktime))\\b",
3200
+ "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",
2738
3201
  "name": "support.function.datetime.php"
2739
3202
  },
2740
3203
  {
2741
- "match": "(?i)\\bdba_(sync|handlers|nextkey|close|insert|op(timize|en)|delete|popen|exists|key_split|f(irstkey|etch)|list|replace)\\b",
3204
+ "match": "(?i)\\bdba_(sync|handlers|nextkey|close|insert|optimize|open|delete|popen|exists|key_split|firstkey|fetch|list|replace)\\b",
2742
3205
  "name": "support.function.dba.php"
2743
3206
  },
2744
3207
  {
2745
- "match": "(?i)\\bdbx_(sort|c(o(nnect|mpare)|lose)|e(scape_string|rror)|query|fetch_row)\\b",
3208
+ "match": "(?i)\\bdbx_(sort|connect|compare|close|escape_string|error|query|fetch_row)\\b",
2746
3209
  "name": "support.function.dbx.php"
2747
3210
  },
2748
3211
  {
2749
- "match": "(?i)\\b(scandir|c(h(dir|root)|losedir)|opendir|dir|re(winddir|addir)|getcwd)\\b",
3212
+ "match": "(?i)\\b(scandir|chdir|chroot|closedir|opendir|dir|rewinddir|readdir|getcwd)\\b",
2750
3213
  "name": "support.function.dir.php"
2751
3214
  },
2752
3215
  {
2753
- "match": "(?i)\\beio_(s(y(nc(_file_range|fs)?|mlink)|tat(vfs)?|e(ndfile|t_m(in_parallel|ax_(idle|p(oll_(time|reqs)|arallel)))|ek))|n(threads|op|pending|re(qs|ady))|c(h(own|mod)|ustom|lose|ancel)|truncate|init|open|dup2|u(nlink|time)|poll|event_loop|f(s(ync|tat(vfs)?)|ch(own|mod)|truncate|datasync|utime|allocate)|write|l(stat|ink)|r(e(name|a(d(dir|link|ahead)?|lpath))|mdir)|g(et_(event_stream|last_error)|rp(_(cancel|limit|add))?)|mk(nod|dir)|busy)\\b",
3216
+ "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",
2754
3217
  "name": "support.function.eio.php"
2755
3218
  },
2756
3219
  {
2757
- "match": "(?i)\\benchant_(dict_(s(tore_replacement|uggest)|check|is_in_session|describe|quick_check|add_to_(session|personal)|get_error)|broker_(set_ordering|init|d(ict_exists|escribe)|free(_dict)?|list_dicts|request_(dict|pwl_dict)|get_error))\\b",
3220
+ "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",
2758
3221
  "name": "support.function.enchant.php"
2759
3222
  },
2760
3223
  {
2761
- "match": "(?i)\\b(s(plit(i)?|ql_regcase)|ereg(i(_replace)?|_replace)?)\\b",
3224
+ "match": "(?i)\\bsplit(i)?|sql_regcase|ereg(i)?(_replace)?\\b",
2762
3225
  "name": "support.function.ereg.php"
2763
3226
  },
2764
3227
  {
2765
- "match": "(?i)\\b(set_e(rror_handler|xception_handler)|trigger_error|debug_(print_backtrace|backtrace)|user_error|error_(log|reporting|get_last)|restore_e(rror_handler|xception_handler))\\b",
3228
+ "match": "(?i)\\b((restore|set)_(error_handler|exception_handler)|trigger_error|debug_(print_)?backtrace|user_error|error_(log|reporting|get_last))\\b",
2766
3229
  "name": "support.function.errorfunc.php"
2767
3230
  },
2768
3231
  {
2769
- "match": "(?i)\\b(s(hell_exec|ystem)|p(assthru|roc_(nice|close|terminate|open|get_status))|e(scapeshell(cmd|arg)|xec))\\b",
3232
+ "match": "(?i)\\bshell_exec|system|passthru|proc_(nice|close|terminate|open|get_status)|escapeshell(arg|cmd)|exec\\b",
2770
3233
  "name": "support.function.exec.php"
2771
3234
  },
2772
3235
  {
2773
- "match": "(?i)\\b(exif_(t(humbnail|agname)|imagetype|read_data)|read_exif_data)\\b",
3236
+ "match": "(?i)\\b(exif_(thumbnail|tagname|imagetype|read_data)|read_exif_data)\\b",
2774
3237
  "name": "support.function.exif.php"
2775
3238
  },
2776
3239
  {
2777
- "match": "(?i)\\bfann_(s(huffle_train_data|cale_(train(_data)?|input(_train_data)?|output(_train_data)?)|ubset_train_data|et_(s(caling_params|arprop_(step_error_(shift|threshold_factor)|temperature|weight_decay_shift))|ca(scade_(num_candidate_groups|candidate_(stagnation_epochs|change_fraction|limit)|output_(stagnation_epochs|change_fraction)|weight_multiplier|activation_(steepnesses|functions)|m(in_(cand_epochs|out_epochs)|ax_(cand_epochs|out_epochs)))|llback)|train(ing_algorithm|_(stop_function|error_function))|input_scaling_params|output_scaling_params|error_log|quickprop_(decay|mu)|weight(_array)?|learning_(rate|momentum)|activation_(steepness(_(hidden|output|layer))?|function(_(hidden|output|layer))?)|rprop_(increase_factor|de(crease_factor|lta_(zero|m(in|ax))))|bit_fail_limit)|ave(_train)?)|num_(input_train_data|output_train_data)|c(opy|lear_scaling_params|ascadetrain_on_(data|file)|reate_(s(hortcut(_array)?|tandard(_array)?|parse(_array)?)|train(_from_callback)?|from_file))|t(est(_data)?|rain(_(on_(data|file)|epoch))?)|init_weights|d(uplicate_train_data|es(cale_(train|input|output)|troy(_train)?))|print_error|length_train_data|r(un|e(set_(MSE|err(str|no))|ad_train_from_file)|andomize_weights)|get_(sarprop_(step_error_(shift|threshold_factor)|temperature|weight_decay_shift)|n(um_(input|output|layers)|etwork_type)|MSE|c(onnection_(array|rate)|ascade_(num_candidate(s|_groups)|candidate_(stagnation_epochs|change_fraction|limit)|output_(stagnation_epochs|change_fraction)|weight_multiplier|activation_(steepnesses(_count)?|functions(_count)?)|m(in_(cand_epochs|out_epochs)|ax_(cand_epochs|out_epochs))))|t(otal_(neurons|connections)|rain(ing_algorithm|_(stop_function|error_function)))|err(str|no)|quickprop_(decay|mu)|l(earning_(rate|momentum)|ayer_array)|activation_(steepness|function)|rprop_(increase_factor|de(crease_factor|lta_(zero|m(in|ax))))|bi(t_fail(_limit)?|as_array))|merge_train_data)\\b",
3240
+ "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",
2778
3241
  "name": "support.function.fann.php"
2779
3242
  },
2780
3243
  {
2781
- "match": "(?i)\\b(s(ymlink|tat|et_file_buffer)|c(h(own|grp|mod)|opy|learstatcache)|t(ouch|empnam|mpfile)|is_(dir|uploaded_file|executable|file|writ(eable|able)|link|readable)|d(i(sk(_(total_space|free_space)|freespace)|rname)|elete)|u(nlink|mask)|p(close|open|a(thinfo|rse_ini_(string|file)))|f(s(canf|tat|eek)|nmatch|close|t(ell|runcate)|ile(size|ctime|type|inode|owner|_(put_contents|exists|get_contents)|perms|atime|group|mtime)?|open|p(ut(s|csv)|assthru)|eof|flush|write|lock|read|get(s(s)?|c(sv)?))|l(stat|ch(own|grp)|ink(info)?)|r(e(name|wind|a(d(file|link)|lpath(_cache_(size|get))?))|mdir)|glob|m(ove_uploaded_file|kdir)|basename)\\b",
3244
+ "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",
2782
3245
  "name": "support.function.file.php"
2783
3246
  },
2784
3247
  {
@@ -2786,7 +3249,7 @@
2786
3249
  "name": "support.function.fileinfo.php"
2787
3250
  },
2788
3251
  {
2789
- "match": "(?i)\\bfilter_(has_var|i(nput(_array)?|d)|var(_array)?|list)\\b",
3252
+ "match": "(?i)\\bfilter_(has_var|input(_array)?|id|var(_array)?|list)\\b",
2790
3253
  "name": "support.function.filter.php"
2791
3254
  },
2792
3255
  {
@@ -2794,47 +3257,47 @@
2794
3257
  "name": "support.function.fpm.php"
2795
3258
  },
2796
3259
  {
2797
- "match": "(?i)\\b(c(all_user_func(_array)?|reate_function)|unregister_tick_function|f(orward_static_call(_array)?|unc(tion_exists|_(num_args|get_arg(s)?)))|register_(shutdown_function|tick_function)|get_defined_functions)\\b",
3260
+ "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",
2798
3261
  "name": "support.function.funchand.php"
2799
3262
  },
2800
3263
  {
2801
- "match": "(?i)\\b(ngettext|textdomain|d(ngettext|c(ngettext|gettext)|gettext)|gettext|bind(textdomain|_textdomain_codeset))\\b",
3264
+ "match": "(?i)\\b((n)?gettext|textdomain|d((n)?gettext|c(n)?gettext)|bind(textdomain|_textdomain_codeset))\\b",
2802
3265
  "name": "support.function.gettext.php"
2803
3266
  },
2804
3267
  {
2805
- "match": "(?i)\\bgmp_(s(can(1|0)|trval|ign|ub|etbit|qrt(rem)?)|hamdist|ne(g|xtprime)|c(om|lrbit|mp)|testbit|i(n(tval|it|vert)|mport)|or|div(_(q(r)?|r)|exact)?|jacobi|p(o(pcount|w(m)?)|erfect_square|rob_prime)|export|fact|legendre|a(nd|dd|bs)|r(oot(rem)?|andom(_(range|bits))?)|gcd(ext)?|xor|m(od|ul))\\b",
3268
+ "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",
2806
3269
  "name": "support.function.gmp.php"
2807
3270
  },
2808
3271
  {
2809
- "match": "(?i)\\bhash(_(hmac(_file)?|copy|init|update(_(stream|file))?|pbkdf2|equals|fi(nal|le)|algos))?\\b",
3272
+ "match": "(?i)\\bhash(_(hmac(_file)?|copy|init|update(_(file|stream))?|pbkdf2|equals|file|final|algos))?\\b",
2810
3273
  "name": "support.function.hash.php"
2811
3274
  },
2812
3275
  {
2813
- "match": "(?i)\\b(http_(s(upport|end_(st(atus|ream)|content_(type|disposition)|data|file|last_modified))|head|negotiate_(c(harset|ontent_type)|language)|c(hunked_decode|ache_(etag|last_modified))|throttle|inflate|d(eflate|ate)|p(ost_(data|fields)|ut_(stream|data|file)|ersistent_handles_(c(ount|lean)|ident)|arse_(headers|cookie|params|message))|re(direct|quest(_(method_(name|unregister|exists|register)|body_encode))?)|get(_request_(headers|body(_stream)?))?|match_(etag|request_header|modified)|build_(str|cookie|url))|ob_(inflatehandler|deflatehandler|etaghandler))\\b",
3276
+ "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",
2814
3277
  "name": "support.function.http.php"
2815
3278
  },
2816
3279
  {
2817
- "match": "(?i)\\b(iconv(_(s(tr(pos|len|rpos)|ubstr|et_encoding)|get_encoding|mime_(decode(_headers)?|encode)))?|ob_iconv_handler)\\b",
3280
+ "match": "(?i)\\b(iconv(_(str(pos|len|rpos)|substr|(get|set)_encoding|mime_(decode(_headers)?|encode)))?|ob_iconv_handler)\\b",
2818
3281
  "name": "support.function.iconv.php"
2819
3282
  },
2820
3283
  {
2821
- "match": "(?i)\\biis_(s(t(op_serv(ice|er)|art_serv(ice|er))|et_(s(cript_map|erver_rights)|dir_security|app_settings))|add_server|remove_server|get_(s(cript_map|erv(ice_state|er_(rights|by_(comment|path))))|dir_security))\\b",
3284
+ "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",
2822
3285
  "name": "support.function.iisfunc.php"
2823
3286
  },
2824
3287
  {
2825
- "match": "(?i)\\b(i(ptc(parse|embed)|mage(s(y|cale|tring(up)?|et(style|t(hickness|ile)|interpolation|pixel|brush)|avealpha|x)|c(har(up)?|o(nvolution|py(res(ized|ampled)|merge(gray)?)?|lor(s(total|et|forindex)|closest(hwb|alpha)?|transparent|deallocate|exact(alpha)?|a(t|llocate(alpha)?)|resolve(alpha)?|match))|r(op(auto)?|eate(truecolor|from(string|jpeg|png|w(ebp|bmp)|g(if|d(2(part)?)?)|x(pm|bm)))?))|t(ypes|tf(text|bbox)|ruecolortopalette)|i(struecolor|nterlace)|2wbmp|d(estroy|ashedline)|jpeg|_type_to_(extension|mime_type)|p(s(slantfont|text|e(ncodefont|xtendfont)|freefont|loadfont|bbox)|ng|olygon|alette(copy|totruecolor))|ellipse|f(t(text|bbox)|il(ter|l(toborder|ed(polygon|ellipse|arc|rectangle))?)|ont(height|width)|lip)|w(ebp|bmp)|l(ine|oadfont|ayereffect)|a(ntialias|ffine(matrix(concat|get))?|lphablending|rc)|r(otate|ectangle)|g(if|d(2)?|ammacorrect|rab(screen|window))|xbm))|jpeg2wbmp|png2wbmp|g(d_info|etimagesize(fromstring)?))\\b",
3288
+ "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",
2826
3289
  "name": "support.function.image.php"
2827
3290
  },
2828
3291
  {
2829
- "match": "(?i)\\b(s(ys_get_temp_dir|et_(time_limit|include_path|magic_quotes_runtime))|cli_(set_process_title|get_process_title)|ini_(set|alter|restore|get(_all)?)|zend_(thread_id|version|logo_guid)|dl|p(hp(credits|info|_(sapi_name|ini_(scanned_files|loaded_file)|uname|logo_guid)|version)|utenv)|extension_loaded|version_compare|assert(_options)?|restore_include_path|g(c_(collect_cycles|disable|enable(d)?)|et(opt|_(c(urrent_user|fg_var)|include(d_files|_path)|defined_constants|extension_funcs|loaded_extensions|required_files|magic_quotes_(runtime|gpc))|env|lastmod|rusage|my(inode|uid|pid|gid)))|m(emory_get_(usage|peak_usage)|a(in|gic_quotes_runtime)))\\b",
3292
+ "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",
2830
3293
  "name": "support.function.info.php"
2831
3294
  },
2832
3295
  {
2833
- "match": "(?i)\\bibase_(se(t_event_handler|rv(ice_(detach|attach)|er_info))|n(um_(params|fields)|ame_result)|c(o(nnect|mmit(_ret)?)|lose)|trans|d(elete_user|rop_db|b_info)|p(connect|aram_info|repare)|e(rr(code|msg)|xecute)|query|f(ield_info|etch_(object|assoc|row)|ree_(event_handler|query|result))|wait_event|a(dd_user|ffected_rows)|r(ollback(_ret)?|estore)|gen_id|m(odify_user|aintain_db)|b(lob_(c(lose|ancel|reate)|i(nfo|mport)|open|echo|add|get)|ackup))\\b",
3296
+ "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",
2834
3297
  "name": "support.function.interbase.php"
2835
3298
  },
2836
3299
  {
2837
- "match": "(?i)\\b(n(ormalizer_(normalize|is_normalized)|umfmt_(set_(symbol|text_attribute|pattern|attribute)|create|parse(_currency)?|format(_currency)?|get_(symbol|text_attribute|pattern|error_(code|message)|locale|attribute)))|collator_(s(ort(_with_sort_keys)?|et_(strength|attribute))|c(ompare|reate)|asort|get_(s(trength|ort_key)|error_(code|message)|locale|attribute))|transliterator_(create(_(inverse|from_rules))?|transliterate|list_ids|get_error_(code|message))|i(ntl(cal_get_error_(code|message)|tz_get_error_(code|message)|_(is_failure|error_name|get_error_(code|message)))|dn_to_(u(nicode|tf8)|ascii))|datefmt_(set_(calendar|timezone(_id)?|pattern|lenient)|create|is_lenient|parse|format(_object)?|localtime|get_(calendar(_object)?|time(type|zone(_id)?)|datetype|pattern|error_(code|message)|locale))|locale_(set_default|c(ompose|anonicalize)|parse|filter_matches|lookup|accept_from_http|get_(script|d(isplay_(script|name|variant|language|region)|efault)|primary_language|keywords|all_variants|region))|resourcebundle_(c(ount|reate)|locales|get(_error_(code|message))?)|grapheme_(s(tr(str|i(str|pos)|pos|len|r(ipos|pos))|ubstr)|extract)|msgfmt_(set_pattern|create|parse(_message)?|format(_message)?|get_(pattern|error_(code|message)|locale)))\\b",
3300
+ "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",
2838
3301
  "name": "support.function.intl.php"
2839
3302
  },
2840
3303
  {
@@ -2842,7 +3305,7 @@
2842
3305
  "name": "support.function.json.php"
2843
3306
  },
2844
3307
  {
2845
- "match": "(?i)\\bldap_(s(tart_tls|ort|e(t_(option|rebind_proc)|arch)|asl_bind)|next_(entry|attribute|reference)|c(o(n(nect|trol_paged_result(_response)?)|unt_entries|mpare)|lose)|t61_to_8859|d(n2ufn|elete)|8859_to_t61|unbind|parse_re(sult|ference)|e(scape|rr(no|2str|or)|xplode_dn)|f(irst_(entry|attribute|reference)|ree_result)|list|add|re(name|ad)|get_(option|dn|entries|values(_len)?|attributes)|mod(ify(_batch)?|_(del|add|replace))|bind)\\b",
3308
+ "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",
2846
3309
  "name": "support.function.ldap.php"
2847
3310
  },
2848
3311
  {
@@ -2854,15 +3317,15 @@
2854
3317
  "name": "support.function.mail.php"
2855
3318
  },
2856
3319
  {
2857
- "match": "(?i)\\b(s(in(h)?|qrt|rand)|h(ypot|exdec)|c(os(h)?|eil)|tan(h)?|is_(nan|infinite|finite)|octdec|de(c(hex|oct|bin)|g2rad)|p(i|ow)|exp(m1)?|f(loor|mod)|l(cg_value|og(1(p|0))?)|a(sin(h)?|cos(h)?|tan(h|2)?|bs)|r(ound|a(nd|d2deg))|getrandmax|m(t_(srand|rand|getrandmax)|in|ax)|b(indec|ase_convert))\\b",
3320
+ "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",
2858
3321
  "name": "support.function.math.php"
2859
3322
  },
2860
3323
  {
2861
- "match": "(?i)\\bmb_(s(tr(str|cut|to(upper|lower)|i(str|pos|mwidth)|pos|width|len|r(chr|i(chr|pos)|pos))|ubst(itute_character|r(_count)?)|plit|end_mail)|http_(input|output)|c(heck_encoding|onvert_(case|encoding|variables|kana))|internal_encoding|output_handler|de(code_(numericentity|mimeheader)|tect_(order|encoding))|p(arse_str|referred_mime_name)|e(ncod(ing_aliases|e_(numericentity|mimeheader))|reg(i(_replace)?|_(search(_(setpos|init|pos|regs|get(pos|regs)))?|replace(_callback)?|match))?)|l(ist_encodings|anguage)|regex_(set_options|encoding)|get_info)\\b",
3324
+ "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",
2862
3325
  "name": "support.function.mbstring.php"
2863
3326
  },
2864
3327
  {
2865
- "match": "(?i)\\bm(crypt_(c(fb|reate_iv|bc)|ofb|decrypt|e(nc(_(self_test|is_block_(algorithm(_mode)?|mode)|get_(supported_key_sizes|iv_size|key_size|algorithms_name|modes_name|block_size))|rypt)|cb)|list_(algorithms|modes)|ge(neric(_(init|deinit|end))?|t_(cipher_name|iv_size|key_size|block_size))|module_(self_test|close|is_block_(algorithm(_mode)?|mode)|open|get_(supported_key_sizes|algo_(key_size|block_size))))|decrypt_generic)\\b",
3328
+ "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",
2866
3329
  "name": "support.function.mcrypt.php"
2867
3330
  },
2868
3331
  {
@@ -2878,11 +3341,11 @@
2878
3341
  "name": "support.function.mongo.php"
2879
3342
  },
2880
3343
  {
2881
- "match": "(?i)\\bmysql_(s(tat|e(t_charset|lect_db))|num_(fields|rows)|c(onnect|l(ient_encoding|ose)|reate_db)|t(hread_id|ablename)|in(sert_id|fo)|d(ata_seek|rop_db|b_(name|query))|unbuffered_query|p(connect|ing)|e(scape_string|rr(no|or))|query|f(ield_(seek|name|t(ype|able)|flags|len)|etch_(object|field|lengths|a(ssoc|rray)|row)|ree_result)|list_(tables|dbs|processes|fields)|affected_rows|re(sult|al_escape_string)|get_(server_info|host_info|client_info|proto_info))\\b",
3344
+ "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",
2882
3345
  "name": "support.function.mysql.php"
2883
3346
  },
2884
3347
  {
2885
- "match": "(?i)\\bmysqli_(s(sl_set|t(ore_result|at|mt_(s(tore_result|end_long_data)|next_result|close|init|data_seek|prepare|execute|f(etch|ree_result)|attr_(set|get)|res(ult_metadata|et)|get_(warnings|result)|more_results|bind_(param|result)))|e(nd_(query|long_data)|t_(charset|opt|local_infile_(handler|default))|lect_db)|lave_query|avepoint)|next_result|c(ha(nge_user|racter_set_name)|o(nnect|mmit)|l(ient_encoding|ose))|thread_safe|init|options|d(isable_r(pl_parse|eads_from_master)|ump_debug_info|ebug|ata_seek)|use_result|p(ing|oll|aram_count|repare)|e(scape_string|nable_r(pl_parse|eads_from_master)|xecute|mbedded_server_(start|end))|kill|query|f(ield_seek|etch(_(object|field(s|_direct)?|a(ssoc|ll|rray)|row))?|ree_result)|autocommit|r(ollback|pl_(p(arse_enabled|robe)|query_type)|e(port|fresh|lease_savepoint|a(p_async_query|l_(connect|escape_string|query))))|get_(c(harset|onnection_stats|lient_(stats|info|version)|ache_stats)|warnings|links_stats|metadata)|m(ore_results|ulti_query|aster_query)|b(ind_(param|result)|egin_transaction))\\b",
3348
+ "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",
2886
3349
  "name": "support.function.mysqli.php"
2887
3350
  },
2888
3351
  {
@@ -2894,23 +3357,23 @@
2894
3357
  "name": "support.function.mysqlnd-ms.php"
2895
3358
  },
2896
3359
  {
2897
- "match": "(?i)\\bmysqlnd_qc_(set_(storage_handler|cache_condition|is_select|user_handlers)|clear_cache|get_(normalized_query_trace_log|c(ore_stats|ache_info)|query_trace_log|available_handlers))\\b",
3360
+ "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",
2898
3361
  "name": "support.function.mysqlnd-qc.php"
2899
3362
  },
2900
3363
  {
2901
- "match": "(?i)\\bmysqlnd_uh_(set_(statement_proxy|connection_proxy)|convert_to_mysqlnd)\\b",
3364
+ "match": "(?i)\\bmysqlnd_uh_(set_(statement|connection)_proxy|convert_to_mysqlnd)\\b",
2902
3365
  "name": "support.function.mysqlnd-uh.php"
2903
3366
  },
2904
3367
  {
2905
- "match": "(?i)\\b(s(yslog|ocket_(set_(timeout|blocking)|get_status)|et(cookie|rawcookie))|h(ttp_response_code|eader(s_(sent|list)|_re(gister_callback|move))?)|c(heckdnsrr|loselog)|i(net_(ntop|pton)|p2long)|openlog|d(ns_(check_record|get_(record|mx))|efine_syslog_variables)|pfsockopen|fsockopen|long2ip|get(servby(name|port)|host(name|by(name(l)?|addr))|protobyn(umber|ame)|mxrr))\\b",
3368
+ "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",
2906
3369
  "name": "support.function.network.php"
2907
3370
  },
2908
3371
  {
2909
- "match": "(?i)\\bnsapi_(virtual|re(sponse_headers|quest_headers))\\b",
3372
+ "match": "(?i)\\bnsapi_(virtual|response_headers|request_headers)\\b",
2910
3373
  "name": "support.function.nsapi.php"
2911
3374
  },
2912
3375
  {
2913
- "match": "(?i)\\boci(s(tatementtype|e(tprefetch|rverversion)|avelob(file)?)|n(umcols|ew(c(ollection|ursor)|descriptor)|logon)|c(o(l(umn(s(cale|ize)|name|type(raw)?|isnull|precision)|l(size|trim|a(ssign(elem)?|ppend)|getelem|max))|mmit)|loselob|ancel)|internaldebug|definebyname|_(s(tatement_type|e(t_(client_i(nfo|dentifier)|prefetch|edition|action|module_name)|rver_version))|n(um_(fields|rows)|ew_(c(o(nnect|llection)|ursor)|descriptor))|c(o(nnect|mmit)|l(ient_version|ose)|ancel)|internal_debug|define_by_name|p(connect|a(ssword_change|rse))|e(rror|xecute)|f(ield_(s(cale|ize)|name|type(_raw)?|is_null|precision)|etch(_(object|a(ssoc|ll|rray)|row))?|ree_(statement|descriptor))|lob_(copy|is_equal)|r(ollback|esult)|get_implicit_resultset|bind_(array_by_name|by_name))|p(logon|arse)|e(rror|xecute)|f(etch(statement|into)?|ree(statement|c(ollection|ursor)|desc))|write(temporarylob|lobtofile)|lo(adlob|go(n|ff))|r(o(wcount|llback)|esult)|bindbyname)\\b",
3376
+ "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",
2914
3377
  "name": "support.function.oci8.php"
2915
3378
  },
2916
3379
  {
@@ -2918,11 +3381,11 @@
2918
3381
  "name": "support.function.opcache.php"
2919
3382
  },
2920
3383
  {
2921
- "match": "(?i)\\bopenssl_(s(ign|pki_(new|export(_challenge)?|verify)|eal)|c(sr_(sign|new|export(_to_file)?|get_(subject|public_key))|ipher_iv_length)|open|d(h_compute_key|igest|ecrypt)|p(ublic_(decrypt|encrypt)|k(cs(12_(export(_to_file)?|read)|7_(sign|decrypt|encrypt|verify))|ey_(new|export(_to_file)?|free|get_(details|p(ublic|rivate))))|rivate_(decrypt|encrypt)|bkdf2)|e(ncrypt|rror_string)|verify|free_key|random_pseudo_bytes|get_(c(ipher_methods|ert_locations)|p(ublickey|rivatekey)|md_methods)|x509_(check(_private_key|purpose)|parse|export(_to_file)?|f(ingerprint|ree)|read))\\b",
3384
+ "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",
2922
3385
  "name": "support.function.openssl.php"
2923
3386
  },
2924
3387
  {
2925
- "match": "(?i)\\b(o(utput_(add_rewrite_var|reset_rewrite_vars)|b_(start|clean|implicit_flush|end_(clean|flush)|flush|list_handlers|g(zhandler|et_(status|c(ontents|lean)|flush|le(ngth|vel)))))|flush)\\b",
3388
+ "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",
2926
3389
  "name": "support.function.output.php"
2927
3390
  },
2928
3391
  {
@@ -2930,15 +3393,15 @@
2930
3393
  "name": "support.function.password.php"
2931
3394
  },
2932
3395
  {
2933
- "match": "(?i)\\bpcntl_(s(trerror|ig(nal(_dispatch)?|timedwait|procmask|waitinfo)|etpriority)|e(rrno|xec)|fork|w(stopsig|termsig|if(s(topped|ignaled)|exited)|exitstatus|ait(pid)?)|alarm|get(_last_error|priority))\\b",
3396
+ "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",
2934
3397
  "name": "support.function.pcntl.php"
2935
3398
  },
2936
3399
  {
2937
- "match": "(?i)\\bpg_(s(ocket|e(nd_(prepare|execute|query(_params)?)|t_(client_encoding|error_verbosity)|lect))|host|num_(fields|rows)|c(o(n(sume_input|nect(ion_(status|reset|busy)|_poll)?|vert)|py_(to|from))|l(ient_encoding|ose)|ancel_query)|t(ty|ra(nsaction_status|ce))|insert|options|d(elete|bname)|u(n(trace|escape_bytea)|pdate)|p(connect|ing|ort|ut_line|arameter_status|repare)|e(scape_(string|identifier|literal|bytea)|nd_copy|xecute)|version|query(_params)?|f(ield_(size|n(um|ame)|t(ype(_oid)?|able)|is_null|prtlen)|etch_(object|a(ssoc|ll(_columns)?|rray)|r(ow|esult))|lush|ree_result)|l(o_(seek|c(lose|reate)|t(ell|runcate)|import|open|unlink|export|write|read(_all)?)|ast_(notice|oid|error))|affected_rows|result_(s(tatus|eek)|error(_field)?)|get_(notify|pid|result)|meta_data)\\b",
3400
+ "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",
2938
3401
  "name": "support.function.pgsql.php"
2939
3402
  },
2940
3403
  {
2941
- "match": "(?i)\\b(virtual|apache_(setenv|note|child_terminate|lookup_uri|re(s(ponse_headers|et_timeout)|quest_headers)|get(_(version|modules)|env))|getallheaders)\\b",
3404
+ "match": "(?i)\\b(virtual|getallheaders|apache_((get|set)env|note|child_terminate|lookup_uri|response_headers|reset_timeout|request_headers|get_(version|modules)))\\b",
2942
3405
  "name": "support.function.php_apache.php"
2943
3406
  },
2944
3407
  {
@@ -2946,19 +3409,19 @@
2946
3409
  "name": "support.function.php_dom.php"
2947
3410
  },
2948
3411
  {
2949
- "match": "(?i)\\bftp_(s(sl_connect|ystype|i(te|ze)|et_option)|n(list|b_(continue|put|f(put|get)|get))|c(h(dir|mod)|onnect|dup|lose)|delete|p(ut|wd|asv)|exec|quit|f(put|get)|login|alloc|r(ename|aw(list)?|mdir)|get(_option)?|m(dtm|kdir))\\b",
3412
+ "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",
2950
3413
  "name": "support.function.php_ftp.php"
2951
3414
  },
2952
3415
  {
2953
- "match": "(?i)\\bimap_(s(can(mailbox)?|tatus|ort|ubscribe|e(t(_quota|flag_full|acl)|arch)|avebody)|header(s|info)?|num_(recent|msg)|c(heck|l(ose|earflag_full)|reate(mailbox)?)|t(hread|imeout)|open|delete(mailbox)?|8bit|u(n(subscribe|delete)|tf(7_(decode|encode)|8)|id)|ping|e(rrors|xpunge)|qprint|fetch(structure|header|text|_overview|mime|body)|l(sub|ist(s(can|ubscribed)|mailbox)?|ast_error)|a(ppend|lerts)|r(e(name(mailbox)?|open)|fc822_(parse_(headers|adrlist)|write_address))|g(c|et(subscribed|_quota(root)?|acl|mailboxes))|m(sgno|ime_header_decode|ail(_(co(py|mpose)|move)|boxmsginfo)?)|b(inary|ody(struct)?|ase64))\\b",
3416
+ "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",
2954
3417
  "name": "support.function.php_imap.php"
2955
3418
  },
2956
3419
  {
2957
- "match": "(?i)\\bmssql_(select_db|n(um_(fields|rows)|ext_result)|c(onnect|lose)|init|data_seek|pconnect|execute|query|f(ield_(seek|name|type|length)|etch_(object|field|a(ssoc|rray)|row|batch)|ree_(statement|result))|r(ows_affected|esult)|g(uid_string|et_last_message)|min_(error_severity|message_severity)|bind)\\b",
3420
+ "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",
2958
3421
  "name": "support.function.php_mssql.php"
2959
3422
  },
2960
3423
  {
2961
- "match": "(?i)\\bodbc_(s(tatistics|pecialcolumns|etoption)|n(um_(fields|rows)|ext_result)|c(o(nnect|lumn(s|privileges)|mmit)|ursor|lose(_all)?)|table(s|privileges)|d(o|ata_source)|p(connect|r(imarykeys|ocedure(s|columns)|epare))|e(rror(msg)?|xec(ute)?)|f(ield_(scale|n(um|ame)|type|precision|len)|oreignkeys|etch_(into|object|array|row)|ree_result)|longreadlen|autocommit|r(ollback|esult(_all)?)|gettypeinfo|binmode)\\b",
3424
+ "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",
2962
3425
  "name": "support.function.php_odbc.php"
2963
3426
  },
2964
3427
  {
@@ -2970,23 +3433,23 @@
2970
3433
  "name": "support.function.php_spl.php"
2971
3434
  },
2972
3435
  {
2973
- "match": "(?i)\\bzip_(close|open|entry_(name|c(ompress(ionmethod|edsize)|lose)|open|filesize|read)|read)\\b",
3436
+ "match": "(?i)\\bzip_(close|open|entry_(name|compressionmethod|compressedsize|close|open|filesize|read)|read)\\b",
2974
3437
  "name": "support.function.php_zip.php"
2975
3438
  },
2976
3439
  {
2977
- "match": "(?i)\\bposix_(s(trerror|et(sid|uid|pgid|e(uid|gid)|gid))|ctermid|t(tyname|imes)|i(satty|nitgroups)|uname|errno|kill|access|get(sid|cwd|uid|_last_error|p(id|pid|w(nam|uid)|g(id|rp))|e(uid|gid)|login|rlimit|g(id|r(nam|oups|gid)))|mk(nod|fifo))\\b",
3440
+ "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",
2978
3441
  "name": "support.function.posix.php"
2979
3442
  },
2980
3443
  {
2981
- "match": "(?i)\\bset(threadtitle|proctitle)\\b",
3444
+ "match": "(?i)\\bset(thread|proc)title\\b",
2982
3445
  "name": "support.function.proctitle.php"
2983
3446
  },
2984
3447
  {
2985
- "match": "(?i)\\bpspell_(s(tore_replacement|uggest|ave_wordlist)|new(_(config|personal))?|c(heck|onfig_(save_repl|create|ignore|d(ict_dir|ata_dir)|personal|r(untogether|epl)|mode)|lear_session)|add_to_(session|personal))\\b",
3448
+ "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",
2986
3449
  "name": "support.function.pspell.php"
2987
3450
  },
2988
3451
  {
2989
- "match": "(?i)\\breadline(_(c(ompletion_function|lear_history|allback_(handler_(install|remove)|read_char))|info|on_new_line|write_history|list_history|add_history|re(display|ad_history)))?\\b",
3452
+ "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",
2990
3453
  "name": "support.function.readline.php"
2991
3454
  },
2992
3455
  {
@@ -2994,15 +3457,15 @@
2994
3457
  "name": "support.function.recode.php"
2995
3458
  },
2996
3459
  {
2997
- "match": "(?i)\\brrd(c_disconnect|_(create|tune|info|update|error|version|f(irst|etch)|last(update)?|restore|graph|xport))\\b",
3460
+ "match": "(?i)\\brrd(c_disconnect|_(create|tune|info|update|error|version|first|fetch|last(update)?|restore|graph|xport))\\b",
2998
3461
  "name": "support.function.rrd.php"
2999
3462
  },
3000
3463
  {
3001
- "match": "(?i)\\b(s(hm_(has_var|detach|put_var|attach|remove(_var)?|get_var)|em_(acquire|re(lease|move)|get))|ftok|msg_(s(tat_queue|e(nd|t_queue))|queue_exists|re(ceive|move_queue)|get_queue))\\b",
3464
+ "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",
3002
3465
  "name": "support.function.sem.php"
3003
3466
  },
3004
3467
  {
3005
- "match": "(?i)\\bsession_(s(ta(tus|rt)|et_(save_handler|cookie_params)|ave_path)|name|c(ommit|ache_(expire|limiter))|i(s_registered|d)|de(stroy|code)|un(set|register)|encode|write_close|abort|re(set|g(ister(_shutdown)?|enerate_id))|get_cookie_params|module_name)\\b",
3468
+ "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",
3006
3469
  "name": "support.function.session.php"
3007
3470
  },
3008
3471
  {
@@ -3014,7 +3477,7 @@
3014
3477
  "name": "support.function.simplexml.php"
3015
3478
  },
3016
3479
  {
3017
- "match": "(?i)\\bsnmp(set|2_(set|walk|real_walk|get(next)?)|_(set_(oid_(numeric_print|output_format)|enum_print|valueretrieval|quick_print)|read_mib|get_(valueretrieval|quick_print))|3_(set|walk|real_walk|get(next)?)|walk(oid)?|realwalk|get(next)?)\\b",
3480
+ "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",
3018
3481
  "name": "support.function.snmp.php"
3019
3482
  },
3020
3483
  {
@@ -3022,31 +3485,31 @@
3022
3485
  "name": "support.function.soap.php"
3023
3486
  },
3024
3487
  {
3025
- "match": "(?i)\\bsocket_(s(hutdown|trerror|e(nd(to|msg)?|t_(nonblock|option|block)|lect))|c(onnect|l(ose|ear_error)|reate(_(pair|listen))?|msg_space)|import_stream|write|l(isten|ast_error)|accept|re(cv(from|msg)?|ad)|get(sockname|_option|peername)|bind)\\b",
3488
+ "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",
3026
3489
  "name": "support.function.sockets.php"
3027
3490
  },
3028
3491
  {
3029
- "match": "(?i)\\bsqlite_(s(ingle_query|eek)|has_(prev|more)|n(um_(fields|rows)|ext)|c(hanges|olumn|urrent|lose|reate_(function|aggregate))|open|u(nbuffered_query|df_(decode_binary|encode_binary))|p(open|rev)|e(scape_string|rror_string|xec)|valid|key|query|f(ield_name|etch_(s(tring|ingle)|column_types|object|a(ll|rray))|actory)|l(ib(encoding|version)|ast_(insert_rowid|error))|array_query|rewind|busy_timeout)\\b",
3492
+ "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",
3030
3493
  "name": "support.function.sqlite.php"
3031
3494
  },
3032
3495
  {
3033
- "match": "(?i)\\bsqlsrv_(se(nd_stream_data|rver_info)|has_rows|n(um_(fields|rows)|ext_result)|c(o(n(nect|figure)|mmit)|l(ient_info|ose)|ancel)|prepare|e(rrors|xecute)|query|f(ield_metadata|etch(_(object|array))?|ree_stmt)|ro(ws_affected|llback)|get_(config|field)|begin_transaction)\\b",
3496
+ "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",
3034
3497
  "name": "support.function.sqlsrv.php"
3035
3498
  },
3036
3499
  {
3037
- "match": "(?i)\\bstats_(s(ta(ndard_deviation|t_(noncentral_t|correlation|in(nerproduct|dependent_t)|p(owersum|ercentile|aired_t)|gennch|binomial_coef))|kew)|harmonic_mean|c(ovariance|df_(n(oncentral_(chisquare|f)|egative_binomial)|c(hisquare|auchy)|t|uniform|poisson|exponential|f|weibull|l(ogistic|aplace)|gamma|b(inomial|eta)))|den(s_(n(ormal|egative_binomial)|c(hisquare|auchy)|t|pmf_(hypergeometric|poisson|binomial)|exponential|f|weibull|l(ogistic|aplace)|gamma|beta)|_uniform)|variance|kurtosis|absolute_deviation|rand_(setall|phrase_to_seeds|ranf|ge(n_(no(ncen(tral_(t|f)|ral_chisquare)|rmal)|chisquare|t|i(nt|uniform|poisson|binomial(_negative)?)|exponential|f(uniform)?|gamma|beta)|t_seeds)))\\b",
3500
+ "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",
3038
3501
  "name": "support.function.stats.php"
3039
3502
  },
3040
3503
  {
3041
- "match": "(?i)\\bs(tream_(s(ocket_(s(hutdown|e(ndto|rver))|client|pair|enable_crypto|accept|recvfrom|get_name)|upports_lock|e(t_(chunk_size|timeout|write_buffer|read_buffer|blocking)|lect))|notification_callback|co(ntext_(set_(option|default|params)|create|get_(options|default|params))|py_to_stream)|is_local|encoding|filter_(prepend|append|re(gister|move))|wrapper_(unregister|re(store|gister))|re(solve_include_path|gister_wrapper)|get_(contents|transports|filters|wrappers|line|meta_data)|bucket_(new|prepend|append|make_writeable))|et_socket_blocking)\\b",
3504
+ "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",
3042
3505
  "name": "support.function.streamsfuncs.php"
3043
3506
  },
3044
3507
  {
3045
- "match": "(?i)\\b(s(scanf|ha1(_file)?|tr(s(tr|pn)|n(c(asecmp|mp)|atc(asecmp|mp))|c(spn|hr|oll|asecmp|mp)|t(o(upper|k|lower)|r)|i(str|p(slashes|cslashes|os|_tags))|_(s(huffle|plit)|ireplace|pad|word_count|r(ot13|ep(eat|lace))|getcsv)|p(os|brk)|len|r(chr|ipos|pos|ev))|imilar_text|oundex|ubstr(_(co(unt|mpare)|replace))?|printf|etlocale)|h(tml(specialchars(_decode)?|_entity_decode|entities)|e(x2bin|brev(c)?))|n(umber_format|l(2br|_langinfo))|c(h(op|unk_split|r)|o(nvert_(cyr_string|uu(decode|encode))|unt_chars)|r(ypt|c32))|trim|implode|ord|uc(first|words)|join|p(arse_str|rint(f)?)|e(cho|xplode)|v(sprintf|printf|fprintf)|quote(d_printable_(decode|encode)|meta)|fprintf|wordwrap|l(cfirst|trim|ocaleconv|evenshtein)|add(slashes|cslashes)|rtrim|get_html_translation_table|m(oney_format|d5(_file)?|etaphone)|bin2hex)\\b",
3508
+ "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",
3046
3509
  "name": "support.function.string.php"
3047
3510
  },
3048
3511
  {
3049
- "match": "(?i)\\bsybase_(se(t_message_handler|lect_db)|num_(fields|rows)|c(onnect|lose)|d(eadlock_retry_count|ata_seek)|unbuffered_query|pconnect|query|f(ield_seek|etch_(object|field|a(ssoc|rray)|row)|ree_result)|affected_rows|result|get_last_message|min_(server_severity|client_severity|error_severity|message_severity))\\b",
3512
+ "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",
3050
3513
  "name": "support.function.sybase.php"
3051
3514
  },
3052
3515
  {
@@ -3054,7 +3517,7 @@
3054
3517
  "name": "support.function.taint.php"
3055
3518
  },
3056
3519
  {
3057
- "match": "(?i)\\b(tidy_(s(et(opt|_encoding)|ave_config)|c(onfig_count|lean_repair)|is_x(html|ml)|diagnose|parse_(string|file)|error_count|warning_count|load_config|access_count|re(set_config|pair_(string|file))|get(opt|_(status|h(tml(_ver)?|ead)|config|o(utput|pt_doc)|r(oot|elease)|body)))|ob_tidyhandler)\\b",
3520
+ "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",
3058
3521
  "name": "support.function.tidy.php"
3059
3522
  },
3060
3523
  {
@@ -3062,43 +3525,43 @@
3062
3525
  "name": "support.function.tokenizer.php"
3063
3526
  },
3064
3527
  {
3065
- "match": "(?i)\\btrader_(s(t(och(f|rsi)?|ddev)|in(h)?|u(m|b)|et_(compat|unstable_period)|qrt|ar(ext)?|ma)|ht_(sine|trend(line|mode)|dcp(hase|eriod)|phasor)|natr|c(ci|o(s(h)?|rrel)|dl(s(ho(otingstar|rtline)|t(icksandwich|alledpattern)|pinningtop|eparatinglines)|h(i(kkake(mod)?|ghwave)|omingpigeon|a(ngingman|rami(cross)?|mmer))|c(o(ncealbabyswall|unterattack)|losingmarubozu)|t(hrusting|a(sukigap|kuri)|ristar)|i(n(neck|vertedhammer)|dentical3crows)|2crows|onneck|d(oji(star)?|arkcloudcover|ragonflydoji)|u(nique3river|psidegap2crows)|3(starsinsouth|inside|outside|whitesoldiers|linestrike|blackcrows)|piercing|e(ngulfing|vening(star|dojistar))|kicking(bylength)?|l(ongl(ine|eggeddoji)|adderbottom)|a(dvanceblock|bandonedbaby)|ri(sefall3methods|ckshawman)|g(apsidesidewhite|ravestonedoji)|xsidegap3methods|m(orning(star|dojistar)|a(t(hold|chinglow)|rubozu))|b(elthold|reakaway))|eil|mo)|t(sf|ypprice|3|ema|an(h)?|r(i(x|ma)|ange))|obv|d(iv|ema|x)|ultosc|p(po|lus_d(i|m))|e(rrno|xp|ma)|var|kama|floor|w(clprice|illr|ma)|l(n|inearreg(_(slope|intercept|angle))?|og10)|a(sin|cos|t(an|r)|d(osc|d|x(r)?)?|po|vgprice|roon(osc)?)|r(si|oc(p|r(100)?)?)|get_(compat|unstable_period)|m(i(n(index|us_d(i|m)|max(index)?)?|dp(oint|rice))|om|ult|edprice|fi|a(cd(ext|fix)?|vp|x(index)?|ma)?)|b(op|eta|bands))\\b",
3528
+ "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",
3066
3529
  "name": "support.function.trader.php"
3067
3530
  },
3068
3531
  {
3069
- "match": "(?i)\\buopz_(co(py|mpose)|implement|overload|delete|undefine|extend|f(unction|lags)|re(store|name|define)|backup)\\b",
3532
+ "match": "(?i)\\buopz_(copy|compose|implement|overload|delete|undefine|extend|function|flags|restore|rename|redefine|backup)\\b",
3070
3533
  "name": "support.function.uopz.php"
3071
3534
  },
3072
3535
  {
3073
- "match": "(?i)\\b(http_build_query|url(decode|encode)|parse_url|rawurl(decode|encode)|get_(headers|meta_tags)|base64_(decode|encode))\\b",
3536
+ "match": "(?i)\\b(http_build_query|(raw)?url(decode|encode)|parse_url|get_(headers|meta_tags)|base64_(decode|encode))\\b",
3074
3537
  "name": "support.function.url.php"
3075
3538
  },
3076
3539
  {
3077
- "match": "(?i)\\b(s(trval|e(ttype|rialize))|i(s(set|_(s(calar|tring)|nu(ll|meric)|callable|int(eger)?|object|double|float|long|array|re(source|al)|bool))|ntval|mport_request_variables)|d(oubleval|ebug_zval_dump)|unse(t|rialize)|print_r|empty|var_(dump|export)|floatval|get(type|_(defined_vars|resource_type))|boolval)\\b",
3540
+ "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",
3078
3541
  "name": "support.function.var.php"
3079
3542
  },
3080
3543
  {
3081
- "match": "(?i)\\bwddx_(serialize_va(lue|rs)|deserialize|packet_(start|end)|add_vars)\\b",
3544
+ "match": "(?i)\\bwddx_(serialize_(value|vars)|deserialize|packet_(start|end)|add_vars)\\b",
3082
3545
  "name": "support.function.wddx.php"
3083
3546
  },
3084
3547
  {
3085
- "match": "(?i)\\bxhprof_(sample_(disable|enable)|disable|enable)\\b",
3548
+ "match": "(?i)\\bxhprof_(sample_)?(disable|enable)\\b",
3086
3549
  "name": "support.function.xhprof.php"
3087
3550
  },
3088
3551
  {
3089
- "match": "(?i)\\b(utf8_(decode|encode)|xml_(set_(start_namespace_decl_handler|notation_decl_handler|character_data_handler|object|default_handler|unparsed_entity_decl_handler|processing_instruction_handler|e(nd_namespace_decl_handler|lement_handler|xternal_entity_ref_handler))|parse(_into_struct|r_(set_option|create(_ns)?|free|get_option))?|error_string|get_(current_(column_number|line_number|byte_index)|error_code)))\\b",
3552
+ "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",
3090
3553
  "name": "support.function.xml.php"
3091
3554
  },
3092
3555
  {
3093
- "match": "(?i)\\bxmlrpc_(se(t_type|rver_(c(all_method|reate)|destroy|add_introspection_data|register_(introspection_callback|method)))|is_fault|decode(_request)?|parse_method_descriptions|encode(_request)?|get_type)\\b",
3556
+ "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",
3094
3557
  "name": "support.function.xmlrpc.php"
3095
3558
  },
3096
3559
  {
3097
- "match": "(?i)\\bxmlwriter_(s(tart_(c(omment|data)|d(td(_(e(ntity|lement)|attlist))?|ocument)|pi|element(_ns)?|attribute(_ns)?)|et_indent(_string)?)|text|o(utput_memory|pen_(uri|memory))|end_(c(omment|data)|d(td(_(e(ntity|lement)|attlist))?|ocument)|pi|element|attribute)|f(ull_end_element|lush)|write_(c(omment|data)|dtd(_(e(ntity|lement)|attlist))?|pi|element(_ns)?|attribute(_ns)?|raw))\\b",
3560
+ "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",
3098
3561
  "name": "support.function.xmlwriter.php"
3099
3562
  },
3100
3563
  {
3101
- "match": "(?i)\\b(zlib_(decode|encode|get_coding_type)|readgzfile|gz(seek|c(ompress|lose)|tell|inflate|open|de(code|flate)|uncompress|p(uts|assthru)|e(ncode|of)|file|write|re(wind|ad)|get(s(s)?|c)))\\b",
3564
+ "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",
3102
3565
  "name": "support.function.zlib.php"
3103
3566
  },
3104
3567
  {
@@ -3107,13 +3570,87 @@
3107
3570
  }
3108
3571
  ]
3109
3572
  },
3110
- "user-function-call": {
3111
- "begin": "(?i)(?=[a-z_0-9\\\\]*[a-z_][a-z0-9_]*\\s*\\()",
3112
- "end": "(?i)[a-z_][a-z_0-9]*(?=\\s*\\()",
3113
- "name": "meta.function-call.php",
3573
+ "switch_statement": {
3114
3574
  "patterns": [
3115
3575
  {
3116
- "include": "#namespace"
3576
+ "begin": "\\bswitch\\b(?!\\s*\\(.*\\)\\s*:)",
3577
+ "beginCaptures": {
3578
+ "0": {
3579
+ "name": "keyword.control.switch.php"
3580
+ }
3581
+ },
3582
+ "end": "}",
3583
+ "endCaptures": {
3584
+ "0": {
3585
+ "name": "punctuation.definition.section.switch-block.end.bracket.curly.php"
3586
+ }
3587
+ },
3588
+ "name": "meta.switch-statement.php",
3589
+ "patterns": [
3590
+ {
3591
+ "begin": "\\(",
3592
+ "beginCaptures": {
3593
+ "0": {
3594
+ "name": "punctuation.definition.switch-expression.begin.bracket.round.php"
3595
+ }
3596
+ },
3597
+ "end": "\\)",
3598
+ "endCaptures": {
3599
+ "0": {
3600
+ "name": "punctuation.definition.switch-expression.end.bracket.round.php"
3601
+ }
3602
+ },
3603
+ "patterns": [
3604
+ {
3605
+ "include": "#language"
3606
+ }
3607
+ ]
3608
+ },
3609
+ {
3610
+ "begin": "{",
3611
+ "beginCaptures": {
3612
+ "0": {
3613
+ "name": "punctuation.definition.section.switch-block.begin.bracket.curly.php"
3614
+ }
3615
+ },
3616
+ "end": "(?=})",
3617
+ "patterns": [
3618
+ {
3619
+ "begin": "\\bcase\\b",
3620
+ "beginCaptures": {
3621
+ "0": {
3622
+ "name": "keyword.control.case.php"
3623
+ }
3624
+ },
3625
+ "end": ":",
3626
+ "endCaptures": {
3627
+ "0": {
3628
+ "name": "punctuation.terminator.statement.php"
3629
+ }
3630
+ },
3631
+ "patterns": [
3632
+ {
3633
+ "include": "#language"
3634
+ }
3635
+ ]
3636
+ },
3637
+ {
3638
+ "match": "(?:^\\s*)?\\b(default)\\s*(:)",
3639
+ "captures": {
3640
+ "1": {
3641
+ "name": "keyword.control.default.php"
3642
+ },
3643
+ "2": {
3644
+ "name": "punctuation.terminator.statement.php"
3645
+ }
3646
+ }
3647
+ },
3648
+ {
3649
+ "include": "#language"
3650
+ }
3651
+ ]
3652
+ }
3653
+ ]
3117
3654
  }
3118
3655
  ]
3119
3656
  },
@@ -3125,7 +3662,7 @@
3125
3662
  "name": "punctuation.definition.variable.php"
3126
3663
  }
3127
3664
  },
3128
- "match": "(?x)\n \t\t\t (\\$+)[a-zA-Z_\\x{7f}-\\x{ff}]\n \t\t\t [a-zA-Z0-9_\\x{7f}-\\x{ff}]*?\\b",
3665
+ "match": "(?i)(\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*\\b",
3129
3666
  "name": "variable.other.php"
3130
3667
  }
3131
3668
  ]
@@ -3148,6 +3685,15 @@
3148
3685
  "match": "(\\$)((GLOBALS|_(ENV|SERVER|SESSION)))",
3149
3686
  "name": "variable.other.global.safer.php"
3150
3687
  },
3688
+ "var_language": {
3689
+ "match": "(\\$)this\\b",
3690
+ "name": "variable.language.this.php",
3691
+ "captures": {
3692
+ "1": {
3693
+ "name": "punctuation.definition.variable.php"
3694
+ }
3695
+ }
3696
+ },
3151
3697
  "variable-name": {
3152
3698
  "patterns": [
3153
3699
  {
@@ -3189,8 +3735,7 @@
3189
3735
  "name": "punctuation.section.array.end.php"
3190
3736
  }
3191
3737
  },
3192
- "comment": "Simple syntax: $foo, $foo[0], $foo[$bar], $foo->bar",
3193
- "match": "(?x)\n\t\t\t\t\t\t((\\$)(?<name>[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*))\n\t\t\t\t\t\t(?:\n\t\t\t\t\t\t\t(->)(\\g<name>)\n\t\t\t\t\t\t\t|\n\t\t\t\t\t\t\t(\\[)\n\t\t\t\t\t\t\t\t(?:(\\d+)|((\\$)\\g<name>)|(\\w+))\n\t\t\t\t\t\t\t(\\])\n\t\t\t\t\t\t)?\n\t\t\t\t\t\t"
3738
+ "match": "(?xi)\n((\\$)(?<name>[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*))\n(?:\n (->)(\\g<name>)\n |\n (\\[)(?:(\\d+)|((\\$)\\g<name>)|([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*))(\\])\n)?"
3194
3739
  },
3195
3740
  {
3196
3741
  "captures": {
@@ -3204,13 +3749,15 @@
3204
3749
  "name": "punctuation.definition.variable.php"
3205
3750
  }
3206
3751
  },
3207
- "comment": "Simple syntax with braces: \"foo${bar}baz\"",
3208
- "match": "(?x)\n\t\t\t\t\t\t((\\$\\{)(?<name>[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(\\}))\n\t\t\t\t\t\t"
3752
+ "match": "(?i)((\\${)(?<name>[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)(}))"
3209
3753
  }
3210
3754
  ]
3211
3755
  },
3212
3756
  "variables": {
3213
3757
  "patterns": [
3758
+ {
3759
+ "include": "#var_language"
3760
+ },
3214
3761
  {
3215
3762
  "include": "#var_global"
3216
3763
  },
@@ -3221,15 +3768,15 @@
3221
3768
  "include": "#var_basic"
3222
3769
  },
3223
3770
  {
3224
- "begin": "(\\$\\{)(?=.*?\\})",
3771
+ "begin": "\\${(?=.*?})",
3225
3772
  "beginCaptures": {
3226
- "1": {
3773
+ "0": {
3227
3774
  "name": "punctuation.definition.variable.php"
3228
3775
  }
3229
3776
  },
3230
- "end": "(\\})",
3777
+ "end": "}",
3231
3778
  "endCaptures": {
3232
- "1": {
3779
+ "0": {
3233
3780
  "name": "punctuation.definition.variable.php"
3234
3781
  }
3235
3782
  },