github-linguist 5.3.3 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (460) hide show
  1. checksums.yaml +4 -4
  2. data/bin/git-linguist +5 -2
  3. data/ext/linguist/linguist.c +18 -7
  4. data/grammars/annotation.liquidhaskell.haskell.json +969 -862
  5. data/grammars/config.xcompose.json +22 -25
  6. data/grammars/file.lasso.json +296 -309
  7. data/grammars/hint.haskell.json +867 -766
  8. data/grammars/hint.message.haskell.json +867 -766
  9. data/grammars/hint.type.haskell.json +867 -766
  10. data/grammars/objdump.x86asm.json +20 -24
  11. data/grammars/source.Kotlin.json +220 -225
  12. data/grammars/source.LS.json +36 -55
  13. data/grammars/source.MCPOST.json +24 -38
  14. data/grammars/source.MOD.json +26 -41
  15. data/grammars/source.SASLog.json +9 -16
  16. data/grammars/source.abap.json +48 -56
  17. data/grammars/source.abl.json +8 -14
  18. data/grammars/source.abnf.json +88 -98
  19. data/grammars/source.actionscript.3.json +398 -429
  20. data/grammars/source.acucobol.json +5 -8
  21. data/grammars/source.ada.json +46 -53
  22. data/grammars/source.afm.json +548 -554
  23. data/grammars/source.agc.json +34 -37
  24. data/grammars/source.agda.json +79 -91
  25. data/grammars/source.ahk.json +62 -66
  26. data/grammars/source.alloy.json +16 -20
  27. data/grammars/source.ampl.json +41 -47
  28. data/grammars/source.angelscript.json +71 -80
  29. data/grammars/source.antlr.json +131 -136
  30. data/grammars/source.apache-config.json +93 -99
  31. data/grammars/source.apache-config.mod_perl.json +19 -24
  32. data/grammars/source.apl.json +1038 -1029
  33. data/grammars/source.applescript.json +501 -523
  34. data/grammars/source.apt.json +9 -16
  35. data/grammars/source.asn.json +27 -31
  36. data/grammars/source.asp.json +61 -67
  37. data/grammars/source.aspectj.json +385 -391
  38. data/grammars/source.assembly.json +49 -55
  39. data/grammars/source.ats.json +45 -121
  40. data/grammars/source.autoit.json +64 -69
  41. data/grammars/source.awk.json +172 -176
  42. data/grammars/source.ballerina.json +48 -395
  43. data/grammars/source.batchfile.json +269 -269
  44. data/grammars/source.befunge.json +17 -21
  45. data/grammars/source.bf.json +5 -11
  46. data/grammars/source.bison.json +10 -14
  47. data/grammars/source.blitzmax.json +300 -305
  48. data/grammars/source.boo.json +189 -193
  49. data/grammars/source.brightauthorproject.json +8 -13
  50. data/grammars/source.brightscript.json +37 -47
  51. data/grammars/source.bro.json +134 -140
  52. data/grammars/source.bsl.json +152 -193
  53. data/grammars/source.bsv.json +96 -102
  54. data/grammars/source.c++.json +176 -193
  55. data/grammars/source.c++.qt.json +13 -21
  56. data/grammars/source.c.ec.json +15 -21
  57. data/grammars/source.c.json +237 -251
  58. data/grammars/source.c.platform.json +153 -159
  59. data/grammars/source.c2hs.json +3 -6
  60. data/grammars/source.cabal.json +17 -20
  61. data/grammars/source.cache.cmake.json +18 -23
  62. data/grammars/source.cake.json +4 -7
  63. data/grammars/source.camlp4.ocaml.json +24 -27
  64. data/grammars/source.capnp.json +33 -38
  65. data/grammars/source.ceylon.json +44 -50
  66. data/grammars/source.cfscript.cfc.json +78 -86
  67. data/grammars/source.cfscript.json +513 -520
  68. data/grammars/source.changelogs.rpm-spec.json +8 -16
  69. data/grammars/source.chapel.json +109 -87
  70. data/grammars/source.cirru.json +25 -30
  71. data/grammars/source.clarion.json +41 -54
  72. data/grammars/source.clean.json +90 -95
  73. data/grammars/source.click.json +25 -28
  74. data/grammars/source.clips.json +10 -23
  75. data/grammars/source.clojure.json +151 -168
  76. data/grammars/source.cm.json +14 -19
  77. data/grammars/source.cmake.json +53 -61
  78. data/grammars/source.cobol.json +165 -180
  79. data/grammars/source.coffee.json +454 -462
  80. data/grammars/source.cool.json +36 -43
  81. data/grammars/source.coq.json +17 -21
  82. data/grammars/source.crystal.json +889 -983
  83. data/grammars/source.cs.json +739 -740
  84. data/grammars/source.csound-document.json +69 -73
  85. data/grammars/source.csound-score.json +52 -55
  86. data/grammars/source.csound.json +167 -171
  87. data/grammars/source.css.json +683 -688
  88. data/grammars/source.css.less.json +211 -511
  89. data/grammars/source.css.mss.json +94 -101
  90. data/grammars/source.css.postcss.sugarss.json +260 -0
  91. data/grammars/source.csx.json +4 -7
  92. data/grammars/source.cuda-c++.json +47 -81
  93. data/grammars/source.cwl.json +103 -0
  94. data/grammars/source.cython.json +536 -582
  95. data/grammars/source.d.json +243 -252
  96. data/grammars/source.dart.json +161 -166
  97. data/grammars/source.data-weave.json +901 -905
  98. data/grammars/source.desktop.json +29 -33
  99. data/grammars/source.diff.json +43 -52
  100. data/grammars/source.disasm.json +15 -16
  101. data/grammars/source.ditroff.desc.json +73 -84
  102. data/grammars/source.ditroff.json +60 -61
  103. data/grammars/source.dm.json +202 -213
  104. data/grammars/source.dmf.json +44 -47
  105. data/grammars/source.dockerfile.json +29 -34
  106. data/grammars/source.dot.json +46 -55
  107. data/grammars/source.dylan.json +63 -68
  108. data/grammars/source.ebnf.json +55 -62
  109. data/grammars/source.eiffel.json +57 -62
  110. data/grammars/source.elixir.json +321 -366
  111. data/grammars/source.emacs.lisp.json +458 -249
  112. data/grammars/source.erazor.json +49 -57
  113. data/grammars/source.erlang.json +508 -515
  114. data/grammars/source.essl.json +17 -30
  115. data/grammars/source.factor.json +85 -91
  116. data/grammars/source.fan.json +92 -96
  117. data/grammars/source.fancy.json +93 -118
  118. data/grammars/source.fish.json +74 -98
  119. data/grammars/source.fontforge.json +142 -146
  120. data/grammars/source.forth.json +42 -57
  121. data/grammars/source.fortran.json +193 -231
  122. data/grammars/source.fortran.modern.json +77 -103
  123. data/grammars/source.fsharp.fsi.json +1 -6
  124. data/grammars/source.fsharp.fsl.json +1 -6
  125. data/grammars/source.fsharp.fsx.json +1 -6
  126. data/grammars/source.fsharp.json +148 -153
  127. data/grammars/source.gap.json +60 -70
  128. data/grammars/source.gcode.json +9 -16
  129. data/grammars/source.gdb.json +63 -79
  130. data/grammars/source.gdb.session.json +27 -28
  131. data/grammars/source.gdbregs.json +7 -8
  132. data/grammars/source.gdscript.json +92 -96
  133. data/grammars/source.gerber.json +38 -56
  134. data/grammars/source.gfm.json +447 -462
  135. data/grammars/source.glsl.json +58 -83
  136. data/grammars/source.gn.json +188 -193
  137. data/grammars/source.gnuplot.json +104 -120
  138. data/grammars/source.go.json +169 -181
  139. data/grammars/source.golo.json +82 -87
  140. data/grammars/source.gosu.2.json +58 -68
  141. data/grammars/source.grace.json +266 -270
  142. data/grammars/source.graphql.json +586 -596
  143. data/grammars/source.groovy.gradle.json +18 -22
  144. data/grammars/source.groovy.json +422 -433
  145. data/grammars/source.harbour.json +129 -173
  146. data/grammars/source.haskell.json +871 -772
  147. data/grammars/source.haxe.2.json +402 -413
  148. data/grammars/source.hlsl.json +6 -16
  149. data/grammars/source.hsc2hs.json +1 -4
  150. data/grammars/source.hsig.json +871 -770
  151. data/grammars/source.hss.1.json +122 -144
  152. data/grammars/source.httpspec.json +119 -123
  153. data/grammars/source.hxml.json +8 -15
  154. data/grammars/source.ideal.json +125 -125
  155. data/grammars/source.idl-dlm.json +25 -32
  156. data/grammars/source.idl.json +59 -80
  157. data/grammars/source.idris.json +171 -185
  158. data/grammars/source.inform7.json +117 -121
  159. data/grammars/source.ini.json +37 -43
  160. data/grammars/source.io.json +65 -73
  161. data/grammars/source.ioke.json +72 -78
  162. data/grammars/source.isabelle.root.json +26 -30
  163. data/grammars/source.isabelle.theory.json +46 -50
  164. data/grammars/source.j.json +18 -21
  165. data/grammars/source.jasmin.json +45 -50
  166. data/grammars/source.java-properties.json +31 -41
  167. data/grammars/source.java.json +333 -342
  168. data/grammars/source.jcl.json +15 -18
  169. data/grammars/source.jflex.json +166 -172
  170. data/grammars/source.jison.json +331 -334
  171. data/grammars/source.jisonlex-injection.json +1 -2
  172. data/grammars/source.jisonlex.json +148 -151
  173. data/grammars/source.jolie.json +37 -43
  174. data/grammars/source.jq.json +80 -87
  175. data/grammars/source.js.json +798 -818
  176. data/grammars/source.js.jsx.json +2115 -2225
  177. data/grammars/source.js.objj.json +167 -172
  178. data/grammars/source.js.regexp.json +50 -50
  179. data/grammars/source.js.regexp.replacement.json +7 -7
  180. data/grammars/source.jsdoc.json +94 -94
  181. data/grammars/source.json.json +61 -71
  182. data/grammars/source.julia.console.json +5 -6
  183. data/grammars/source.julia.json +237 -234
  184. data/grammars/source.lean.json +55 -67
  185. data/grammars/source.lid.json +6 -10
  186. data/grammars/source.lilypond.json +181 -195
  187. data/grammars/source.lisp.json +40 -50
  188. data/grammars/source.litcoffee.json +169 -183
  189. data/grammars/source.livescript.json +207 -220
  190. data/grammars/source.llvm.json +28 -38
  191. data/grammars/source.logos.json +7 -14
  192. data/grammars/source.logtalk.json +136 -141
  193. data/grammars/source.loomscript.json +77 -83
  194. data/grammars/source.lsl.json +90 -106
  195. data/grammars/source.lua.json +100 -109
  196. data/grammars/source.makefile.json +181 -188
  197. data/grammars/source.makegen.json +3 -7
  198. data/grammars/source.mask.json +260 -265
  199. data/grammars/source.mata.json +38 -46
  200. data/grammars/source.mathematica.json +155 -167
  201. data/grammars/source.matlab.json +407 -684
  202. data/grammars/source.maxscript.json +293 -281
  203. data/grammars/source.mercury.json +179 -184
  204. data/grammars/source.meson.json +52 -58
  205. data/grammars/source.meta-info.json +64 -74
  206. data/grammars/source.ml.json +107 -113
  207. data/grammars/source.modelica.json +51 -59
  208. data/grammars/source.modula2.json +33 -42
  209. data/grammars/source.monkey.json +234 -241
  210. data/grammars/source.moonscript.json +51 -56
  211. data/grammars/source.mql5.json +74 -101
  212. data/grammars/source.mupad.json +30 -72
  213. data/grammars/source.ncl.json +1 -14
  214. data/grammars/source.ne.json +39 -42
  215. data/grammars/source.nemerle.json +58 -63
  216. data/grammars/source.nesc.json +9 -15
  217. data/grammars/source.netlinx.erb.json +13 -25
  218. data/grammars/source.netlinx.json +231 -292
  219. data/grammars/source.nextflow-groovy.json +1360 -0
  220. data/grammars/source.nextflow.json +74 -0
  221. data/grammars/source.nginx.json +274 -287
  222. data/grammars/source.nim.json +442 -483
  223. data/grammars/source.nim_filter.json +6 -26
  224. data/grammars/source.nimcfg.json +38 -51
  225. data/grammars/source.ninja.json +64 -70
  226. data/grammars/source.nit.json +60 -64
  227. data/grammars/source.nix.json +269 -273
  228. data/grammars/source.nmml.json +31 -37
  229. data/grammars/source.nsis.json +66 -72
  230. data/grammars/source.nu.json +129 -139
  231. data/grammars/source.nut.json +129 -133
  232. data/grammars/source.objc++.json +3 -10
  233. data/grammars/source.objc.json +303 -314
  234. data/grammars/source.objc.platform.json +145 -151
  235. data/grammars/source.ocaml.json +506 -514
  236. data/grammars/source.ocamllex.json +108 -115
  237. data/grammars/source.ocamlyacc.json +116 -123
  238. data/grammars/source.ooc.json +148 -155
  239. data/grammars/source.opa.json +39 -49
  240. data/grammars/source.opal.json +84 -89
  241. data/grammars/source.opalsysdefs.json +9 -13
  242. data/grammars/source.opencobol.json +22 -25
  243. data/grammars/source.opentype.json +148 -152
  244. data/grammars/source.ox.json +36 -44
  245. data/grammars/source.oz.json +31 -38
  246. data/grammars/source.p4.json +49 -59
  247. data/grammars/source.pan.json +273 -278
  248. data/grammars/source.papyrus.skyrim.json +705 -781
  249. data/grammars/source.parrot.pir.json +59 -65
  250. data/grammars/source.pascal.json +54 -61
  251. data/grammars/source.pawn.json +835 -849
  252. data/grammars/source.pcb.board.json +153 -158
  253. data/grammars/source.pcb.schematic.json +134 -138
  254. data/grammars/source.pcb.sexp.json +64 -74
  255. data/grammars/source.pep8.json +28 -32
  256. data/grammars/source.perl.6.json +83 -92
  257. data/grammars/source.perl.json +711 -737
  258. data/grammars/source.perl6fe.json +1204 -1218
  259. data/grammars/source.php.zephir.json +80 -89
  260. data/grammars/source.pic.json +137 -142
  261. data/grammars/source.pig_latin.json +76 -80
  262. data/grammars/source.pike.json +23 -36
  263. data/grammars/source.po.json +74 -84
  264. data/grammars/source.pogoscript.json +23 -29
  265. data/grammars/source.pony.json +98 -108
  266. data/grammars/source.postcss.json +370 -0
  267. data/grammars/source.postscript.json +88 -97
  268. data/grammars/source.pov-ray sdl.json +36 -42
  269. data/grammars/source.powershell.json +175 -197
  270. data/grammars/source.processing.json +236 -249
  271. data/grammars/source.prolog.eclipse.json +33 -38
  272. data/grammars/source.prolog.json +66 -72
  273. data/grammars/source.protobuf.json +88 -94
  274. data/grammars/source.puppet.json +144 -151
  275. data/grammars/source.purescript.json +268 -289
  276. data/grammars/source.pyjade.json +256 -281
  277. data/grammars/source.python.django.json +13 -18
  278. data/grammars/source.python.json +3319 -3367
  279. data/grammars/source.python.salt.json +3 -7
  280. data/grammars/source.qmake.json +83 -90
  281. data/grammars/source.qml.json +57 -78
  282. data/grammars/source.quoting.perl6fe.json +666 -669
  283. data/grammars/source.r.json +75 -84
  284. data/grammars/source.racket.json +17 -38
  285. data/grammars/source.rascal.json +77 -80
  286. data/grammars/source.reason.hover.type.json +1 -1
  287. data/grammars/source.reason.json +1025 -1080
  288. data/grammars/source.rebol.json +167 -177
  289. data/grammars/source.red.json +169 -177
  290. data/grammars/source.regexp.babel.json +74 -77
  291. data/grammars/source.regexp.extended.json +4 -5
  292. data/grammars/source.regexp.json +260 -264
  293. data/grammars/source.regexp.perl6fe.json +108 -111
  294. data/grammars/source.regexp.python.json +210 -215
  295. data/grammars/source.regexp.spin.json +63 -72
  296. data/grammars/source.renpy.json +617 -687
  297. data/grammars/source.rexx.json +25 -32
  298. data/grammars/source.ring.json +84 -114
  299. data/grammars/source.rpm-spec.json +392 -401
  300. data/grammars/source.ruby.gemfile.json +9 -12
  301. data/grammars/source.ruby.json +862 -952
  302. data/grammars/source.ruby.rspec.cucumber.steps.json +90 -103
  303. data/grammars/source.rust.json +223 -281
  304. data/grammars/source.sas.json +88 -105
  305. data/grammars/source.sass.json +100 -108
  306. data/grammars/source.sbt.json +16 -23
  307. data/grammars/source.scad.json +60 -67
  308. data/grammars/source.scala.json +215 -228
  309. data/grammars/source.scaml.json +120 -135
  310. data/grammars/source.scheme.json +119 -136
  311. data/grammars/source.scilab.json +40 -47
  312. data/grammars/source.scss.json +369 -403
  313. data/grammars/source.sdbl.json +14 -25
  314. data/grammars/source.shaderlab.json +24 -27
  315. data/grammars/source.shell.json +409 -440
  316. data/grammars/source.shen.json +75 -94
  317. data/grammars/source.smali.json +232 -293
  318. data/grammars/source.smalltalk.json +60 -75
  319. data/grammars/source.smt.json +67 -82
  320. data/grammars/source.solidity.json +35 -54
  321. data/grammars/source.sp.json +40 -45
  322. data/grammars/source.sparql.json +3 -8
  323. data/grammars/source.spin.json +277 -297
  324. data/grammars/source.sqf.json +34 -44
  325. data/grammars/source.sql.json +142 -156
  326. data/grammars/source.stan.json +201 -160
  327. data/grammars/source.stata.json +57 -68
  328. data/grammars/source.strings.json +26 -30
  329. data/grammars/source.stylus.json +558 -565
  330. data/grammars/source.supercollider.json +33 -40
  331. data/grammars/source.swift.json +999 -1077
  332. data/grammars/source.systemverilog.json +351 -365
  333. data/grammars/source.tcl.json +77 -94
  334. data/grammars/source.tea.json +61 -67
  335. data/grammars/source.terra.json +25 -32
  336. data/grammars/source.terraform.json +68 -88
  337. data/grammars/source.thrift.json +300 -306
  338. data/grammars/source.tl.json +112 -117
  339. data/grammars/source.tla.json +65 -69
  340. data/grammars/source.toc.json +21 -25
  341. data/grammars/source.toml.json +117 -122
  342. data/grammars/source.ts.json +2838 -2774
  343. data/grammars/source.tsx.json +180 -184
  344. data/grammars/source.turing.json +970 -974
  345. data/grammars/source.turtle.json +124 -140
  346. data/grammars/source.txl.json +23 -37
  347. data/grammars/source.ucfconstraints.json +16 -21
  348. data/grammars/source.ur.json +15 -27
  349. data/grammars/source.vala.json +221 -235
  350. data/grammars/source.varnish.vcl.json +117 -129
  351. data/grammars/source.vbnet.json +69 -106
  352. data/grammars/source.verilog.json +101 -107
  353. data/grammars/source.vhdl.json +437 -445
  354. data/grammars/source.viml.json +540 -550
  355. data/grammars/source.wavefront.mtl.json +274 -277
  356. data/grammars/source.wavefront.obj.json +781 -784
  357. data/grammars/source.wdl.json +66 -46
  358. data/grammars/source.webassembly.json +97 -102
  359. data/grammars/source.webidl.json +311 -326
  360. data/grammars/source.x10.json +28 -32
  361. data/grammars/source.x86asm.json +21 -26
  362. data/grammars/source.xc.json +164 -172
  363. data/grammars/source.xq.json +81 -92
  364. data/grammars/source.xtend.json +199 -208
  365. data/grammars/source.yaml-ext.json +118 -124
  366. data/grammars/source.yaml.json +155 -174
  367. data/grammars/source.yaml.salt.json +113 -116
  368. data/grammars/source.yang.json +10 -13
  369. data/grammars/source.yara.json +98 -0
  370. data/grammars/text.bibtex.json +95 -100
  371. data/grammars/text.cfml.basic.json +403 -404
  372. data/grammars/text.elixir.json +18 -23
  373. data/grammars/text.error-list.json +15 -16
  374. data/grammars/text.find-refs.json +487 -488
  375. data/grammars/text.gherkin.feature.json +45 -53
  376. data/grammars/text.haml.json +176 -189
  377. data/grammars/text.hamlc.json +82 -88
  378. data/grammars/text.html.abl.json +16 -21
  379. data/grammars/text.html.asciidoc.json +139 -153
  380. data/grammars/text.html.asdoc.json +145 -155
  381. data/grammars/text.html.asp.json +23 -28
  382. data/grammars/text.html.basic.json +323 -338
  383. data/grammars/text.html.cfm.json +316 -325
  384. data/grammars/text.html.creole.json +177 -189
  385. data/grammars/text.html.django.json +27 -33
  386. data/grammars/text.html.ecr.json +21 -25
  387. data/grammars/text.html.elixir.json +3 -9
  388. data/grammars/text.html.erb.json +81 -85
  389. data/grammars/text.html.erlang.yaws.json +24 -29
  390. data/grammars/text.html.factor.json +5 -11
  391. data/grammars/text.html.ftl.json +16 -25
  392. data/grammars/text.html.handlebars.json +579 -598
  393. data/grammars/text.html.javadoc.json +426 -0
  394. data/grammars/text.html.js.json +11 -17
  395. data/grammars/text.html.jsp.json +377 -384
  396. data/grammars/text.html.liquid.json +8 -18
  397. data/grammars/text.html.mako.json +257 -275
  398. data/grammars/text.html.markdown.source.gfm.apib.json +419 -427
  399. data/grammars/text.html.markdown.source.gfm.mson.json +405 -414
  400. data/grammars/text.html.mediawiki.json +318 -344
  401. data/grammars/text.html.php.blade.json +2134 -2140
  402. data/grammars/text.html.php.json +980 -1013
  403. data/grammars/text.html.slash.json +101 -107
  404. data/grammars/text.html.smarty.json +75 -83
  405. data/grammars/text.html.soy.json +250 -253
  406. data/grammars/text.html.ssp.json +18 -24
  407. data/grammars/text.html.tcl.json +17 -24
  408. data/grammars/text.html.twig.json +712 -718
  409. data/grammars/text.idl-idldoc.json +5 -9
  410. data/grammars/text.jade.json +213 -235
  411. data/grammars/text.junit-test-report.json +25 -28
  412. data/grammars/text.log.latex.json +44 -46
  413. data/grammars/text.marko.json +370 -401
  414. data/grammars/text.python.console.json +3 -7
  415. data/grammars/text.python.traceback.json +2 -5
  416. data/grammars/text.rdoc.json +15 -19
  417. data/grammars/text.restructuredtext.clean.json +8 -11
  418. data/grammars/text.restructuredtext.json +886 -873
  419. data/grammars/text.robot.json +26 -36
  420. data/grammars/text.roff.json +2852 -2915
  421. data/grammars/text.runoff.json +56 -69
  422. data/grammars/text.sfd.json +151 -155
  423. data/grammars/text.shell-session.json +5 -8
  424. data/grammars/text.slim.json +184 -210
  425. data/grammars/text.srt.json +54 -57
  426. data/grammars/text.tex.json +98 -105
  427. data/grammars/text.tex.latex.beamer.json +14 -20
  428. data/grammars/text.tex.latex.haskell.json +883 -782
  429. data/grammars/text.tex.latex.json +281 -291
  430. data/grammars/text.tex.latex.memoir.json +39 -46
  431. data/grammars/text.tex.latex.rd.json +32 -38
  432. data/grammars/text.xml.ant.json +62 -69
  433. data/grammars/text.xml.flex-config.json +1009 -1013
  434. data/grammars/text.xml.genshi.json +10 -16
  435. data/grammars/text.xml.json +117 -130
  436. data/grammars/text.xml.pom.json +235 -240
  437. data/grammars/text.xml.xsl.json +31 -37
  438. data/grammars/text.zone_file.json +24 -29
  439. data/lib/linguist/blob.rb +10 -1
  440. data/lib/linguist/blob_helper.rb +4 -1
  441. data/lib/linguist/file_blob.rb +5 -0
  442. data/lib/linguist/generated.rb +16 -0
  443. data/lib/linguist/heuristics.rb +23 -11
  444. data/lib/linguist/language.rb +3 -6
  445. data/lib/linguist/languages.json +1 -1
  446. data/lib/linguist/languages.yml +74 -12
  447. data/lib/linguist/lazy_blob.rb +15 -1
  448. data/lib/linguist/linguist.bundle +0 -0
  449. data/lib/linguist/samples.json +1666 -3381
  450. data/lib/linguist/shebang.rb +2 -0
  451. data/lib/linguist/strategy/modeline.rb +2 -0
  452. data/lib/linguist/vendor.yml +5 -6
  453. data/lib/linguist/version.rb +1 -1
  454. metadata +12 -11
  455. data/grammars/source.elm.json +0 -381
  456. data/grammars/source.nant-build.json +0 -86
  457. data/grammars/source.octave.json +0 -451
  458. data/grammars/text.html.mediawiki.elm-build-output.json +0 -111
  459. data/grammars/text.html.mediawiki.elm-documentation.json +0 -22
  460. data/grammars/text.html.vue.json +0 -936
@@ -1,140 +1,6 @@
1
1
  {
2
- "comment": "TODO:\n• Try to improve parameters list syntax – scope numbers, ‘=’, ‘,’ and possibly be intelligent about entity ordering\n• Is meta.function-call the correct scope? I've added it to my theme but by default it's not highlighted",
3
- "fileTypes": [
4
- "php",
5
- "php3",
6
- "php4",
7
- "php5",
8
- "phpt",
9
- "phtml",
10
- "aw",
11
- "ctp"
12
- ],
13
- "firstLineMatch": "^#!.*(?<!-)php[0-9]{0,1}\\b|<\\?php",
14
- "foldingStartMarker": "(/\\*|\\{\\s*$|<<<HTML)",
15
- "foldingStopMarker": "(\\*/|^\\s*\\}|^HTML;)",
16
- "injections": {
17
- "^text.html - (meta.embedded | meta.tag), L:^text.html meta.tag, L:text.html.php source.js": {
18
- "patterns": [
19
- {
20
- "begin": "(^\\s*)(?=<\\?(?![^?]*\\?>))",
21
- "beginCaptures": {
22
- "0": {
23
- "name": "punctuation.whitespace.embedded.leading.php"
24
- }
25
- },
26
- "end": "(?!\\G)(\\s*$\\n)?",
27
- "endCaptures": {
28
- "0": {
29
- "name": "punctuation.whitespace.embedded.trailing.php"
30
- }
31
- },
32
- "patterns": [
33
- {
34
- "begin": "<\\?(?i:php|=)?",
35
- "beginCaptures": {
36
- "0": {
37
- "name": "punctuation.section.embedded.begin.php"
38
- }
39
- },
40
- "contentName": "source.php",
41
- "end": "(\\?)>",
42
- "endCaptures": {
43
- "0": {
44
- "name": "punctuation.section.embedded.end.php"
45
- },
46
- "1": {
47
- "name": "source.php"
48
- }
49
- },
50
- "name": "meta.embedded.block.php",
51
- "patterns": [
52
- {
53
- "include": "#language"
54
- }
55
- ]
56
- }
57
- ]
58
- },
59
- {
60
- "begin": "<\\?(?i:php|=)?(?![^?]*\\?>)",
61
- "beginCaptures": {
62
- "0": {
63
- "name": "punctuation.section.embedded.begin.php"
64
- }
65
- },
66
- "contentName": "source.php",
67
- "end": "(\\?)>",
68
- "endCaptures": {
69
- "0": {
70
- "name": "punctuation.section.embedded.end.php"
71
- },
72
- "1": {
73
- "name": "source.php"
74
- }
75
- },
76
- "name": "meta.embedded.block.php",
77
- "patterns": [
78
- {
79
- "include": "#language"
80
- }
81
- ]
82
- },
83
- {
84
- "begin": "<\\?(?i:php|=)?",
85
- "beginCaptures": {
86
- "0": {
87
- "name": "punctuation.section.embedded.begin.php"
88
- }
89
- },
90
- "end": ">",
91
- "endCaptures": {
92
- "0": {
93
- "name": "punctuation.section.embedded.end.php"
94
- }
95
- },
96
- "name": "meta.embedded.line.php",
97
- "patterns": [
98
- {
99
- "captures": {
100
- "1": {
101
- "name": "source.php"
102
- },
103
- "2": {
104
- "name": "punctuation.section.embedded.end.php"
105
- },
106
- "3": {
107
- "name": "source.php"
108
- }
109
- },
110
- "match": "\\G(\\s*)((\\?))(?=>)",
111
- "name": "meta.special.empty-tag.php"
112
- },
113
- {
114
- "begin": "\\G",
115
- "contentName": "source.php",
116
- "end": "(\\?)(?=>)",
117
- "endCaptures": {
118
- "0": {
119
- "name": "punctuation.section.embedded.end.php"
120
- },
121
- "1": {
122
- "name": "source.php"
123
- }
124
- },
125
- "patterns": [
126
- {
127
- "include": "#language"
128
- }
129
- ]
130
- }
131
- ]
132
- }
133
- ]
134
- }
135
- },
136
- "keyEquivalent": "^~P",
137
2
  "name": "PHP",
3
+ "scopeName": "text.html.php",
138
4
  "patterns": [
139
5
  {
140
6
  "include": "text.html.basic"
@@ -144,13 +10,13 @@
144
10
  "class-builtin": {
145
11
  "patterns": [
146
12
  {
13
+ "name": "support.class.builtin.php",
14
+ "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(Generator|Method|Class|Type|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(Interface|Exception)?|lient)|Timestamp|I(n(sertBatch|t(32|64))|d)|D(B(Ref|\\\\(BSON\\\\(Regex|M(inKey|axKey)|Binary|Serializable|Timestamp|ObjectID|Decimal128|U(nserializable|TCDateTime)|Javascript)|Driver\\\\(Read(Concern|Preference)|Manager|BulkWrite|Server|C(ommand|ursor(Id)?)|Exception\\\\WriteException|Query|Write(Result|Concern(Error)?|Error))))?|eleteBatch|ate)|UpdateBatch|Pool|Write(Batch|ConcernException)|Log)?|u(tex|ltipleIterator)|e(ssageFormatter|mcache(d)?))|Bad(MethodCallException|FunctionCallException)|tidy(Node)?|S(ync(ReaderWriter|Mutex|S(haredMemory|emaphore)|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)|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(har|odePointBreakIterator|alendar)|TimeZone|Iterator|DateFormatter|PartsIterator)|validArgumentException|finiteIterator)|terator(Iterator|Aggregate)?|magick(Draw|Pixel(Iterator)?|Kernel)?)|php_user_filter|Z(MQ(Socket|Context|Device|Poll)?|ipArchive|ookeeper)|O(CI\\-(Collection|Lob)|ut(erIterator|Of(RangeException|BoundsException))|verflowException)|D(s\\\\(Map|S(tack|e(t|quence))|Hashable|Collection|Deque|P(air|riorityQueue)|Vector|Queue)|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|I\\\\(Menu(Item)?|Size|Control(s\\\\(Radio|Gr(id|oup)|MultilineEntry|B(ox|utton)|S(pin|eparator|lider)|C(heck|o(lorButton|mbo))|Tab|P(icker|rogress)|E(ntry|ditableCombo)|Form|Label))?|Draw\\\\(Matrix|Brush(\\\\(RadialGradient|Gradient|LinearGradient))?|Stroke|Color|Text\\\\(Font(\\\\Descriptor)?|Layout)|P(en|ath))|Point|Executor|Window|Area))|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|PC(Iterator|UIterator)|rray(Iterator|Object|Access)))\\b",
147
15
  "captures": {
148
16
  "1": {
149
17
  "name": "punctuation.separator.inheritance.php"
150
18
  }
151
- },
152
- "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(Generator|Method|Class|Type|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(Interface|Exception)?|lient)|Timestamp|I(n(sertBatch|t(32|64))|d)|D(B(Ref|\\\\(BSON\\\\(Regex|M(inKey|axKey)|Binary|Serializable|Timestamp|ObjectID|Decimal128|U(nserializable|TCDateTime)|Javascript)|Driver\\\\(Read(Concern|Preference)|Manager|BulkWrite|Server|C(ommand|ursor(Id)?)|Exception\\\\WriteException|Query|Write(Result|Concern(Error)?|Error))))?|eleteBatch|ate)|UpdateBatch|Pool|Write(Batch|ConcernException)|Log)?|u(tex|ltipleIterator)|e(ssageFormatter|mcache(d)?))|Bad(MethodCallException|FunctionCallException)|tidy(Node)?|S(ync(ReaderWriter|Mutex|S(haredMemory|emaphore)|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)|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(har|odePointBreakIterator|alendar)|TimeZone|Iterator|DateFormatter|PartsIterator)|validArgumentException|finiteIterator)|terator(Iterator|Aggregate)?|magick(Draw|Pixel(Iterator)?|Kernel)?)|php_user_filter|Z(MQ(Socket|Context|Device|Poll)?|ipArchive|ookeeper)|O(CI\\-(Collection|Lob)|ut(erIterator|Of(RangeException|BoundsException))|verflowException)|D(s\\\\(Map|S(tack|e(t|quence))|Hashable|Collection|Deque|P(air|riorityQueue)|Vector|Queue)|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|I\\\\(Menu(Item)?|Size|Control(s\\\\(Radio|Gr(id|oup)|MultilineEntry|B(ox|utton)|S(pin|eparator|lider)|C(heck|o(lorButton|mbo))|Tab|P(icker|rogress)|E(ntry|ditableCombo)|Form|Label))?|Draw\\\\(Matrix|Brush(\\\\(RadialGradient|Gradient|LinearGradient))?|Stroke|Color|Text\\\\(Font(\\\\Descriptor)?|Layout)|P(en|ath))|Point|Executor|Window|Area))|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|PC(Iterator|UIterator)|rray(Iterator|Object|Access)))\\b",
153
- "name": "support.class.builtin.php"
19
+ }
154
20
  }
155
21
  ]
156
22
  },
@@ -159,16 +25,16 @@
159
25
  {
160
26
  "begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
161
27
  "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
162
- "endCaptures": {
163
- "1": {
164
- "name": "support.class.php"
165
- }
166
- },
167
28
  "patterns": [
168
29
  {
169
30
  "include": "#namespace"
170
31
  }
171
- ]
32
+ ],
33
+ "endCaptures": {
34
+ "1": {
35
+ "name": "support.class.php"
36
+ }
37
+ }
172
38
  },
173
39
  {
174
40
  "include": "#class-builtin"
@@ -176,88 +42,87 @@
176
42
  {
177
43
  "begin": "(?=[\\\\a-zA-Z_])",
178
44
  "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
179
- "endCaptures": {
180
- "1": {
181
- "name": "support.class.php"
182
- }
183
- },
184
45
  "patterns": [
185
46
  {
186
47
  "include": "#namespace"
187
48
  }
188
- ]
49
+ ],
50
+ "endCaptures": {
51
+ "1": {
52
+ "name": "support.class.php"
53
+ }
54
+ }
189
55
  }
190
56
  ]
191
57
  },
192
58
  "comments": {
193
59
  "patterns": [
194
60
  {
61
+ "name": "comment.block.documentation.phpdoc.php",
195
62
  "begin": "/\\*\\*(?:#@\\+)?\\s*$",
196
- "captures": {
197
- "0": {
198
- "name": "punctuation.definition.comment.php"
199
- }
200
- },
201
- "comment": "This now only highlights a docblock if the first line contains only /**\n\t\t\t\t\t\t\t\t- this is to stop highlighting everything as invalid when people do comment banners with /******** ...\n\t\t\t\t\t\t\t\t- Now matches /**#@+ too - used for docblock templates: http://manual.phpdoc.org/HTMLframesConverter/default/phpDocumentor/tutorial_phpDocumentor.howto.pkg.html#basics.docblocktemplate",
202
63
  "end": "\\*/",
203
- "name": "comment.block.documentation.phpdoc.php",
204
64
  "patterns": [
205
65
  {
206
66
  "include": "#php_doc"
207
67
  }
208
- ]
68
+ ],
69
+ "captures": {
70
+ "0": {
71
+ "name": "punctuation.definition.comment.php"
72
+ }
73
+ }
209
74
  },
210
75
  {
76
+ "name": "comment.block.php",
211
77
  "begin": "/\\*",
78
+ "end": "\\*/",
212
79
  "captures": {
213
80
  "0": {
214
81
  "name": "punctuation.definition.comment.php"
215
82
  }
216
- },
217
- "end": "\\*/",
218
- "name": "comment.block.php"
83
+ }
219
84
  },
220
85
  {
221
86
  "begin": "(^[ \\t]+)?(?=//)",
222
- "beginCaptures": {
223
- "1": {
224
- "name": "punctuation.whitespace.comment.leading.php"
225
- }
226
- },
227
87
  "end": "(?!\\G)",
228
88
  "patterns": [
229
89
  {
90
+ "name": "comment.line.double-slash.php",
230
91
  "begin": "//",
92
+ "end": "\\n|(?=\\?\u003e)",
231
93
  "beginCaptures": {
232
94
  "0": {
233
95
  "name": "punctuation.definition.comment.php"
234
96
  }
235
- },
236
- "end": "\\n|(?=\\?>)",
237
- "name": "comment.line.double-slash.php"
97
+ }
238
98
  }
239
- ]
240
- },
241
- {
242
- "begin": "(^[ \\t]+)?(?=#)",
99
+ ],
243
100
  "beginCaptures": {
244
101
  "1": {
245
102
  "name": "punctuation.whitespace.comment.leading.php"
246
103
  }
247
- },
104
+ }
105
+ },
106
+ {
107
+ "begin": "(^[ \\t]+)?(?=#)",
248
108
  "end": "(?!\\G)",
249
109
  "patterns": [
250
110
  {
111
+ "name": "comment.line.number-sign.php",
251
112
  "begin": "#",
113
+ "end": "\\n|(?=\\?\u003e)",
252
114
  "beginCaptures": {
253
115
  "0": {
254
116
  "name": "punctuation.definition.comment.php"
255
117
  }
256
- },
257
- "end": "\\n|(?=\\?>)",
258
- "name": "comment.line.number-sign.php"
118
+ }
259
119
  }
260
- ]
120
+ ],
121
+ "beginCaptures": {
122
+ "1": {
123
+ "name": "punctuation.whitespace.comment.leading.php"
124
+ }
125
+ }
261
126
  }
262
127
  ]
263
128
  },
@@ -266,65 +131,64 @@
266
131
  {
267
132
  "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\\\\])",
268
133
  "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
269
- "endCaptures": {
270
- "1": {
271
- "name": "constant.other.php"
272
- }
273
- },
274
134
  "patterns": [
275
135
  {
276
136
  "include": "#namespace"
277
137
  }
278
- ]
138
+ ],
139
+ "endCaptures": {
140
+ "1": {
141
+ "name": "constant.other.php"
142
+ }
143
+ }
279
144
  },
280
145
  {
281
146
  "begin": "(?=\\\\?[a-zA-Z_\\x{7f}-\\x{ff}])",
282
147
  "end": "(?=[^\\\\a-zA-Z_\\x{7f}-\\x{ff}])",
283
148
  "patterns": [
284
149
  {
285
- "match": "(?i)\\b(TRUE|FALSE|NULL|__(FILE|DIR|FUNCTION|CLASS|METHOD|LINE|NAMESPACE)__|ON|OFF|YES|NO|NL|BR|TAB)\\b",
286
- "name": "constant.language.php"
150
+ "name": "constant.language.php",
151
+ "match": "(?i)\\b(TRUE|FALSE|NULL|__(FILE|DIR|FUNCTION|CLASS|METHOD|LINE|NAMESPACE)__|ON|OFF|YES|NO|NL|BR|TAB)\\b"
287
152
  },
288
153
  {
154
+ "name": "support.constant.core.php",
155
+ "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",
289
156
  "captures": {
290
157
  "1": {
291
158
  "name": "punctuation.separator.inheritance.php"
292
159
  }
293
- },
294
- "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",
295
- "name": "support.constant.core.php"
160
+ }
296
161
  },
297
162
  {
163
+ "name": "support.constant.std.php",
164
+ "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",
298
165
  "captures": {
299
166
  "1": {
300
167
  "name": "punctuation.separator.inheritance.php"
301
168
  }
302
- },
303
- "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",
304
- "name": "support.constant.std.php"
169
+ }
305
170
  },
306
171
  {
172
+ "name": "support.constant.ext.php",
173
+ "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",
307
174
  "captures": {
308
175
  "1": {
309
176
  "name": "punctuation.separator.inheritance.php"
310
177
  }
311
- },
312
- "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",
313
- "name": "support.constant.ext.php"
178
+ }
314
179
  },
315
180
  {
181
+ "name": "support.constant.parser-token.php",
182
+ "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",
316
183
  "captures": {
317
184
  "1": {
318
185
  "name": "punctuation.separator.inheritance.php"
319
186
  }
320
- },
321
- "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",
322
- "name": "support.constant.parser-token.php"
187
+ }
323
188
  },
324
189
  {
325
- "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.",
326
- "match": "[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*",
327
- "name": "constant.other.php"
190
+ "name": "constant.other.php",
191
+ "match": "[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*"
328
192
  }
329
193
  ]
330
194
  }
@@ -336,7 +200,21 @@
336
200
  "include": "#comments"
337
201
  },
338
202
  {
339
- "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",
203
+ "name": "meta.function.argument.array.php",
204
+ "contentName": "meta.array.php",
205
+ "begin": "(?xi)\n\t\t\t\t\t\t\t\\s*(array) # Typehint\n\t\t\t\t\t\t\t\\s*(\u0026)? \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",
206
+ "end": "\\)",
207
+ "patterns": [
208
+ {
209
+ "include": "#comments"
210
+ },
211
+ {
212
+ "include": "#strings"
213
+ },
214
+ {
215
+ "include": "#numbers"
216
+ }
217
+ ],
340
218
  "beginCaptures": {
341
219
  "1": {
342
220
  "name": "storage.type.php"
@@ -360,27 +238,15 @@
360
238
  "name": "punctuation.definition.array.begin.php"
361
239
  }
362
240
  },
363
- "contentName": "meta.array.php",
364
- "end": "\\)",
365
241
  "endCaptures": {
366
242
  "0": {
367
243
  "name": "punctuation.definition.array.end.php"
368
244
  }
369
- },
370
- "name": "meta.function.argument.array.php",
371
- "patterns": [
372
- {
373
- "include": "#comments"
374
- },
375
- {
376
- "include": "#strings"
377
- },
378
- {
379
- "include": "#numbers"
380
- }
381
- ]
245
+ }
382
246
  },
383
247
  {
248
+ "name": "meta.function.argument.array.php",
249
+ "match": "(?xi)\n\t\t\t\t\t\t\t\\s*(array) # Typehint\n\t\t\t\t\t\t\t\\s*(\u0026)? \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*?\\(\\))|(?:\\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",
384
250
  "captures": {
385
251
  "1": {
386
252
  "name": "storage.type.php"
@@ -409,19 +275,18 @@
409
275
  "9": {
410
276
  "name": "invalid.illegal.non-null-typehinted.php"
411
277
  }
412
- },
413
- "match": "(?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-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*?\\(\\))|(?:\\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",
414
- "name": "meta.function.argument.array.php"
278
+ }
415
279
  },
416
280
  {
417
- "begin": "(?i)(?=[a-z_0-9\\\\]*[a-z_][a-z_0-9]*\\s*&?\\s*\\$)",
418
- "end": "(?=,|\\)|/[/*]|\\#|$)",
419
281
  "name": "meta.function.argument.typehinted.php",
282
+ "begin": "(?i)(?=[a-z_0-9\\\\]*[a-z_][a-z_0-9]*\\s*\u0026?\\s*\\$)",
283
+ "end": "(?=,|\\)|/[/*]|\\#|$)",
420
284
  "patterns": [
421
285
  {
422
286
  "include": "#class-name"
423
287
  },
424
288
  {
289
+ "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*(\u0026)? \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 ",
425
290
  "captures": {
426
291
  "1": {
427
292
  "name": "support.class.php"
@@ -444,12 +309,13 @@
444
309
  "7": {
445
310
  "name": "invalid.illegal.non-null-typehinted.php"
446
311
  }
447
- },
448
- "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 "
312
+ }
449
313
  }
450
314
  ]
451
315
  },
452
316
  {
317
+ "name": "meta.function.argument.no-default.php",
318
+ "match": "(?:\\s*(\u0026))?\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\\s*(?=,|\\)|/[/*]|\\#)",
453
319
  "captures": {
454
320
  "1": {
455
321
  "name": "storage.modifier.reference.php"
@@ -460,12 +326,17 @@
460
326
  "3": {
461
327
  "name": "punctuation.definition.variable.php"
462
328
  }
463
- },
464
- "match": "(?:\\s*(&))?\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\\s*(?=,|\\)|/[/*]|\\#)",
465
- "name": "meta.function.argument.no-default.php"
329
+ }
466
330
  },
467
331
  {
468
- "begin": "(?:\\s*(&))?\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(?:\\s*(=)\\s*)\\s*",
332
+ "name": "meta.function.argument.default.php",
333
+ "begin": "(?:\\s*(\u0026))?\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(?:\\s*(=)\\s*)\\s*",
334
+ "end": "(?=,|\\)|/[/*]|\\#)",
335
+ "patterns": [
336
+ {
337
+ "include": "#parameter-default-types"
338
+ }
339
+ ],
469
340
  "captures": {
470
341
  "1": {
471
342
  "name": "storage.modifier.reference.php"
@@ -479,14 +350,7 @@
479
350
  "4": {
480
351
  "name": "keyword.operator.assignment.php"
481
352
  }
482
- },
483
- "end": "(?=,|\\)|/[/*]|\\#)",
484
- "name": "meta.function.argument.default.php",
485
- "patterns": [
486
- {
487
- "include": "#parameter-default-types"
488
- }
489
- ]
353
+ }
490
354
  }
491
355
  ]
492
356
  },
@@ -494,7 +358,6 @@
494
358
  "patterns": [
495
359
  {
496
360
  "begin": "(?i)(?=\\\\?[a-z_0-9\\\\]+\\\\[a-z_][a-z0-9_]*\\s*\\()",
497
- "comment": "Functions in a user-defined namespace (overrides any built-ins)",
498
361
  "end": "(?=\\s*\\()",
499
362
  "patterns": [
500
363
  {
@@ -503,22 +366,16 @@
503
366
  ]
504
367
  },
505
368
  {
506
- "match": "(?i)\\b(print|echo)\\b",
507
- "name": "support.function.construct.php"
369
+ "name": "support.function.construct.php",
370
+ "match": "(?i)\\b(print|echo)\\b"
508
371
  },
509
372
  {
510
373
  "begin": "(?i)(\\\\)?(?=\\b[a-z_][a-z_0-9]*\\s*\\()",
511
- "beginCaptures": {
512
- "1": {
513
- "name": "punctuation.separator.inheritance.php"
514
- }
515
- },
516
- "comment": "Root namespace function calls (built-in or user)",
517
374
  "end": "(?=\\s*\\()",
518
375
  "patterns": [
519
376
  {
520
- "match": "(?i)\\b(isset|unset|e(val|mpty)|list)(?=\\s*\\()",
521
- "name": "support.function.construct.php"
377
+ "name": "support.function.construct.php",
378
+ "match": "(?i)\\b(isset|unset|e(val|mpty)|list)(?=\\s*\\()"
522
379
  },
523
380
  {
524
381
  "include": "#support"
@@ -526,15 +383,26 @@
526
383
  {
527
384
  "include": "#user-function-call"
528
385
  }
529
- ]
386
+ ],
387
+ "beginCaptures": {
388
+ "1": {
389
+ "name": "punctuation.separator.inheritance.php"
390
+ }
391
+ }
530
392
  }
531
393
  ]
532
394
  },
533
395
  "heredoc": {
534
396
  "patterns": [
535
397
  {
536
- "begin": "(?=<<<\\s*(\"?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\1)\\s*$)",
398
+ "name": "string.unquoted.heredoc.php",
399
+ "begin": "(?=\u003c\u003c\u003c\\s*(\"?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\1)\\s*$)",
537
400
  "end": "(?!\\G)",
401
+ "patterns": [
402
+ {
403
+ "include": "#heredoc_interior"
404
+ }
405
+ ],
538
406
  "injections": {
539
407
  "*": {
540
408
  "patterns": [
@@ -543,18 +411,12 @@
543
411
  }
544
412
  ]
545
413
  }
546
- },
547
- "name": "string.unquoted.heredoc.php",
548
- "patterns": [
549
- {
550
- "include": "#heredoc_interior"
551
- }
552
- ]
414
+ }
553
415
  },
554
416
  {
555
- "begin": "(?=<<<\\s*('?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\1)\\s*$)",
556
- "end": "(?!\\G)",
557
417
  "name": "string.unquoted.heredoc.nowdoc.php",
418
+ "begin": "(?=\u003c\u003c\u003c\\s*('?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\1)\\s*$)",
419
+ "end": "(?!\\G)",
558
420
  "patterns": [
559
421
  {
560
422
  "include": "#heredoc_interior"
@@ -566,37 +428,15 @@
566
428
  "heredoc_interior": {
567
429
  "patterns": [
568
430
  {
569
- "begin": "(<<<)\\s*(['\"]?)(HTML)(\\2)\\s*$\\n?",
570
- "beginCaptures": {
571
- "0": {
572
- "name": "punctuation.section.embedded.begin.php"
573
- },
574
- "1": {
575
- "name": "punctuation.definition.string.php"
576
- },
577
- "3": {
578
- "name": "keyword.operator.heredoc.php"
579
- }
580
- },
431
+ "name": "meta.embedded.html",
581
432
  "contentName": "text.html",
433
+ "begin": "(\u003c\u003c\u003c)\\s*(['\"]?)(HTML)(\\2)\\s*$\\n?",
582
434
  "end": "^(\\3)\\b",
583
- "endCaptures": {
584
- "0": {
585
- "name": "punctuation.section.embedded.end.php"
586
- },
587
- "1": {
588
- "name": "keyword.operator.heredoc.php"
589
- }
590
- },
591
- "name": "meta.embedded.html",
592
435
  "patterns": [
593
436
  {
594
437
  "include": "text.html.basic"
595
438
  }
596
- ]
597
- },
598
- {
599
- "begin": "(<<<)\\s*(['\"]?)(XML)(\\2)\\s*$\\n?",
439
+ ],
600
440
  "beginCaptures": {
601
441
  "0": {
602
442
  "name": "punctuation.section.embedded.begin.php"
@@ -608,8 +448,6 @@
608
448
  "name": "keyword.operator.heredoc.php"
609
449
  }
610
450
  },
611
- "contentName": "text.xml",
612
- "end": "^(\\3)\\b",
613
451
  "endCaptures": {
614
452
  "0": {
615
453
  "name": "punctuation.section.embedded.end.php"
@@ -617,16 +455,18 @@
617
455
  "1": {
618
456
  "name": "keyword.operator.heredoc.php"
619
457
  }
620
- },
458
+ }
459
+ },
460
+ {
621
461
  "name": "meta.embedded.xml",
462
+ "contentName": "text.xml",
463
+ "begin": "(\u003c\u003c\u003c)\\s*(['\"]?)(XML)(\\2)\\s*$\\n?",
464
+ "end": "^(\\3)\\b",
622
465
  "patterns": [
623
466
  {
624
467
  "include": "text.xml"
625
468
  }
626
- ]
627
- },
628
- {
629
- "begin": "(<<<)\\s*(['\"]?)(SQL)(\\2)\\s*$\\n?",
469
+ ],
630
470
  "beginCaptures": {
631
471
  "0": {
632
472
  "name": "punctuation.section.embedded.begin.php"
@@ -638,8 +478,6 @@
638
478
  "name": "keyword.operator.heredoc.php"
639
479
  }
640
480
  },
641
- "contentName": "source.sql",
642
- "end": "^(\\3)\\b",
643
481
  "endCaptures": {
644
482
  "0": {
645
483
  "name": "punctuation.section.embedded.end.php"
@@ -647,16 +485,18 @@
647
485
  "1": {
648
486
  "name": "keyword.operator.heredoc.php"
649
487
  }
650
- },
488
+ }
489
+ },
490
+ {
651
491
  "name": "meta.embedded.sql",
492
+ "contentName": "source.sql",
493
+ "begin": "(\u003c\u003c\u003c)\\s*(['\"]?)(SQL)(\\2)\\s*$\\n?",
494
+ "end": "^(\\3)\\b",
652
495
  "patterns": [
653
496
  {
654
497
  "include": "source.sql"
655
498
  }
656
- ]
657
- },
658
- {
659
- "begin": "(<<<)\\s*(['\"]?)(JAVASCRIPT)(\\2)\\s*$\\n?",
499
+ ],
660
500
  "beginCaptures": {
661
501
  "0": {
662
502
  "name": "punctuation.section.embedded.begin.php"
@@ -668,8 +508,6 @@
668
508
  "name": "keyword.operator.heredoc.php"
669
509
  }
670
510
  },
671
- "contentName": "source.js",
672
- "end": "^(\\3)\\b",
673
511
  "endCaptures": {
674
512
  "0": {
675
513
  "name": "punctuation.section.embedded.end.php"
@@ -677,16 +515,18 @@
677
515
  "1": {
678
516
  "name": "keyword.operator.heredoc.php"
679
517
  }
680
- },
518
+ }
519
+ },
520
+ {
681
521
  "name": "meta.embedded.js",
522
+ "contentName": "source.js",
523
+ "begin": "(\u003c\u003c\u003c)\\s*(['\"]?)(JAVASCRIPT)(\\2)\\s*$\\n?",
524
+ "end": "^(\\3)\\b",
682
525
  "patterns": [
683
526
  {
684
527
  "include": "source.js"
685
528
  }
686
- ]
687
- },
688
- {
689
- "begin": "(<<<)\\s*(['\"]?)(JSON)(\\2)\\s*$\\n?",
529
+ ],
690
530
  "beginCaptures": {
691
531
  "0": {
692
532
  "name": "punctuation.section.embedded.begin.php"
@@ -698,8 +538,6 @@
698
538
  "name": "keyword.operator.heredoc.php"
699
539
  }
700
540
  },
701
- "contentName": "source.json",
702
- "end": "^(\\3)\\b",
703
541
  "endCaptures": {
704
542
  "0": {
705
543
  "name": "punctuation.section.embedded.end.php"
@@ -707,16 +545,18 @@
707
545
  "1": {
708
546
  "name": "keyword.operator.heredoc.php"
709
547
  }
710
- },
548
+ }
549
+ },
550
+ {
711
551
  "name": "meta.embedded.json",
552
+ "contentName": "source.json",
553
+ "begin": "(\u003c\u003c\u003c)\\s*(['\"]?)(JSON)(\\2)\\s*$\\n?",
554
+ "end": "^(\\3)\\b",
712
555
  "patterns": [
713
556
  {
714
557
  "include": "source.json"
715
558
  }
716
- ]
717
- },
718
- {
719
- "begin": "(<<<)\\s*(['\"]?)(CSS)(\\2)\\s*$\\n?",
559
+ ],
720
560
  "beginCaptures": {
721
561
  "0": {
722
562
  "name": "punctuation.section.embedded.begin.php"
@@ -728,8 +568,6 @@
728
568
  "name": "keyword.operator.heredoc.php"
729
569
  }
730
570
  },
731
- "contentName": "source.css",
732
- "end": "^(\\3)\\b",
733
571
  "endCaptures": {
734
572
  "0": {
735
573
  "name": "punctuation.section.embedded.end.php"
@@ -737,16 +575,18 @@
737
575
  "1": {
738
576
  "name": "keyword.operator.heredoc.php"
739
577
  }
740
- },
578
+ }
579
+ },
580
+ {
741
581
  "name": "meta.embedded.css",
582
+ "contentName": "source.css",
583
+ "begin": "(\u003c\u003c\u003c)\\s*(['\"]?)(CSS)(\\2)\\s*$\\n?",
584
+ "end": "^(\\3)\\b",
742
585
  "patterns": [
743
586
  {
744
587
  "include": "source.css"
745
588
  }
746
- ]
747
- },
748
- {
749
- "begin": "(<<<)\\s*(['\"]?)(REGEX)(\\2)\\s*$\\n?",
589
+ ],
750
590
  "beginCaptures": {
751
591
  "0": {
752
592
  "name": "punctuation.section.embedded.begin.php"
@@ -758,8 +598,6 @@
758
598
  "name": "keyword.operator.heredoc.php"
759
599
  }
760
600
  },
761
- "contentName": "string.regexp.heredoc.php",
762
- "end": "^(\\3)\\b",
763
601
  "endCaptures": {
764
602
  "0": {
765
603
  "name": "punctuation.section.embedded.end.php"
@@ -767,14 +605,20 @@
767
605
  "1": {
768
606
  "name": "keyword.operator.heredoc.php"
769
607
  }
770
- },
608
+ }
609
+ },
610
+ {
611
+ "contentName": "string.regexp.heredoc.php",
612
+ "begin": "(\u003c\u003c\u003c)\\s*(['\"]?)(REGEX)(\\2)\\s*$\\n?",
613
+ "end": "^(\\3)\\b",
771
614
  "patterns": [
772
615
  {
773
- "comment": "Escaped from the regexp – there can also be 2 backslashes (since 1 will escape the first)",
774
- "match": "(\\\\){1,2}[.$^\\[\\]{}]",
775
- "name": "constant.character.escape.regex.php"
616
+ "name": "constant.character.escape.regex.php",
617
+ "match": "(\\\\){1,2}[.$^\\[\\]{}]"
776
618
  },
777
619
  {
620
+ "name": "string.regexp.arbitrary-repitition.php",
621
+ "match": "(\\{)\\d+(,\\d+)?(\\})",
778
622
  "captures": {
779
623
  "1": {
780
624
  "name": "punctuation.definition.arbitrary-repitition.php"
@@ -782,50 +626,67 @@
782
626
  "3": {
783
627
  "name": "punctuation.definition.arbitrary-repitition.php"
784
628
  }
785
- },
786
- "match": "(\\{)\\d+(,\\d+)?(\\})",
787
- "name": "string.regexp.arbitrary-repitition.php"
629
+ }
788
630
  },
789
631
  {
632
+ "name": "string.regexp.character-class.php",
790
633
  "begin": "\\[(?:\\^?\\])?",
791
- "captures": {
792
- "0": {
793
- "name": "punctuation.definition.character-class.php"
794
- }
795
- },
796
634
  "end": "\\]",
797
- "name": "string.regexp.character-class.php",
798
635
  "patterns": [
799
636
  {
800
- "match": "\\\\[\\\\'\\[\\]]",
801
- "name": "constant.character.escape.php"
637
+ "name": "constant.character.escape.php",
638
+ "match": "\\\\[\\\\'\\[\\]]"
802
639
  }
803
- ]
640
+ ],
641
+ "captures": {
642
+ "0": {
643
+ "name": "punctuation.definition.character-class.php"
644
+ }
645
+ }
804
646
  },
805
647
  {
806
- "match": "[$^+*]",
807
- "name": "keyword.operator.regexp.php"
648
+ "name": "keyword.operator.regexp.php",
649
+ "match": "[$^+*]"
808
650
  },
809
651
  {
810
- "begin": "(?<=^|\\s)(#)\\s(?=[[a-zA-Z0-9,. \\t?!-][^\\x{00}-\\x{7F}]]*$)",
652
+ "name": "comment.line.number-sign.php",
653
+ "begin": "(?\u003c=^|\\s)(#)\\s(?=[[a-zA-Z0-9,. \\t?!-][^\\x{00}-\\x{7F}]]*$)",
654
+ "end": "$\\n?",
811
655
  "beginCaptures": {
812
656
  "1": {
813
657
  "name": "punctuation.definition.comment.php"
814
658
  }
815
659
  },
816
- "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.",
817
- "end": "$\\n?",
818
660
  "endCaptures": {
819
661
  "0": {
820
662
  "name": "punctuation.definition.comment.php"
821
663
  }
822
- },
823
- "name": "comment.line.number-sign.php"
664
+ }
824
665
  }
825
- ]
666
+ ],
667
+ "beginCaptures": {
668
+ "0": {
669
+ "name": "punctuation.section.embedded.begin.php"
670
+ },
671
+ "1": {
672
+ "name": "punctuation.definition.string.php"
673
+ },
674
+ "3": {
675
+ "name": "keyword.operator.heredoc.php"
676
+ }
677
+ },
678
+ "endCaptures": {
679
+ "0": {
680
+ "name": "punctuation.section.embedded.end.php"
681
+ },
682
+ "1": {
683
+ "name": "keyword.operator.heredoc.php"
684
+ }
685
+ }
826
686
  },
827
687
  {
828
- "begin": "(<<<)\\s*(['\"]?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\2)",
688
+ "begin": "(\u003c\u003c\u003c)\\s*(['\"]?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\2)",
689
+ "end": "^(\\3)\\b",
829
690
  "beginCaptures": {
830
691
  "1": {
831
692
  "name": "punctuation.definition.string.php"
@@ -834,7 +695,6 @@
834
695
  "name": "keyword.operator.heredoc.php"
835
696
  }
836
697
  },
837
- "end": "^(\\3)\\b",
838
698
  "endCaptures": {
839
699
  "1": {
840
700
  "name": "keyword.operator.heredoc.php"
@@ -847,16 +707,11 @@
847
707
  },
848
708
  "instantiation": {
849
709
  "begin": "(?i)(new)\\s+",
850
- "beginCaptures": {
851
- "1": {
852
- "name": "keyword.other.new.php"
853
- }
854
- },
855
710
  "end": "(?i)(?=[^$a-z0-9_\\\\])",
856
711
  "patterns": [
857
712
  {
858
- "match": "(parent|static|self)(?=[^a-z0-9_])",
859
- "name": "storage.type.php"
713
+ "name": "storage.type.php",
714
+ "match": "(parent|static|self)(?=[^a-z0-9_])"
860
715
  },
861
716
  {
862
717
  "include": "#class-name"
@@ -864,41 +719,45 @@
864
719
  {
865
720
  "include": "#variable-name"
866
721
  }
867
- ]
722
+ ],
723
+ "beginCaptures": {
724
+ "1": {
725
+ "name": "keyword.other.new.php"
726
+ }
727
+ }
868
728
  },
869
729
  "interpolation": {
870
- "comment": "http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing",
871
730
  "patterns": [
872
731
  {
873
- "match": "\\\\[0-7]{1,3}",
874
- "name": "constant.numeric.octal.php"
732
+ "name": "constant.numeric.octal.php",
733
+ "match": "\\\\[0-7]{1,3}"
875
734
  },
876
735
  {
877
- "match": "\\\\x[0-9A-Fa-f]{1,2}",
878
- "name": "constant.numeric.hex.php"
736
+ "name": "constant.numeric.hex.php",
737
+ "match": "\\\\x[0-9A-Fa-f]{1,2}"
879
738
  },
880
739
  {
881
- "match": "\\\\[enrt\\\\\\$\\\"]",
882
- "name": "constant.character.escape.php"
740
+ "name": "constant.character.escape.php",
741
+ "match": "\\\\[enrt\\\\\\$\\\"]"
883
742
  },
884
743
  {
885
744
  "begin": "(\\{)(?=\\$.*?\\})",
745
+ "end": "(\\})",
746
+ "patterns": [
747
+ {
748
+ "include": "#language"
749
+ }
750
+ ],
886
751
  "beginCaptures": {
887
752
  "1": {
888
753
  "name": "punctuation.definition.variable.php"
889
754
  }
890
755
  },
891
- "end": "(\\})",
892
756
  "endCaptures": {
893
757
  "1": {
894
758
  "name": "punctuation.definition.variable.php"
895
759
  }
896
- },
897
- "patterns": [
898
- {
899
- "include": "#language"
900
- }
901
- ]
760
+ }
902
761
  },
903
762
  {
904
763
  "include": "#variable-name"
@@ -906,6 +765,8 @@
906
765
  ]
907
766
  },
908
767
  "invoke-call": {
768
+ "name": "meta.function-call.invoke.php",
769
+ "match": "(?i)(\\$+)([a-z_][a-z_0-9]*)(?=\\s*\\()",
909
770
  "captures": {
910
771
  "1": {
911
772
  "name": "punctuation.definition.variable.php"
@@ -913,9 +774,7 @@
913
774
  "2": {
914
775
  "name": "variable.other.php"
915
776
  }
916
- },
917
- "match": "(?i)(\\$+)([a-z_][a-z_0-9]*)(?=\\s*\\()",
918
- "name": "meta.function-call.invoke.php"
777
+ }
919
778
  },
920
779
  "language": {
921
780
  "patterns": [
@@ -923,15 +782,22 @@
923
782
  "include": "#comments"
924
783
  },
925
784
  {
926
- "match": "\\{",
927
- "name": "punctuation.section.scope.begin.php"
785
+ "name": "punctuation.section.scope.begin.php",
786
+ "match": "\\{"
928
787
  },
929
788
  {
930
- "match": "\\}",
931
- "name": "punctuation.section.scope.end.php"
789
+ "name": "punctuation.section.scope.end.php",
790
+ "match": "\\}"
932
791
  },
933
792
  {
793
+ "name": "meta.interface.php",
934
794
  "begin": "(?i)^\\s*(interface)\\s+([a-z0-9_]+)\\s*(extends)?\\s*",
795
+ "end": "((?:[a-zA-Z0-9_]+\\s*,\\s*)*)([a-zA-Z0-9_]+)?\\s*(?:(?=\\{)|$)",
796
+ "patterns": [
797
+ {
798
+ "include": "#namespace"
799
+ }
800
+ ],
935
801
  "beginCaptures": {
936
802
  "1": {
937
803
  "name": "storage.type.interface.php"
@@ -943,63 +809,45 @@
943
809
  "name": "storage.modifier.extends.php"
944
810
  }
945
811
  },
946
- "end": "((?:[a-zA-Z0-9_]+\\s*,\\s*)*)([a-zA-Z0-9_]+)?\\s*(?:(?=\\{)|$)",
947
812
  "endCaptures": {
948
813
  "1": {
949
814
  "patterns": [
950
815
  {
951
- "match": "[a-zA-Z0-9_]+",
952
- "name": "entity.other.inherited-class.php"
816
+ "name": "entity.other.inherited-class.php",
817
+ "match": "[a-zA-Z0-9_]+"
953
818
  },
954
819
  {
955
- "match": ",",
956
- "name": "punctuation.separator.classes.php"
820
+ "name": "punctuation.separator.classes.php",
821
+ "match": ","
957
822
  }
958
823
  ]
959
824
  },
960
825
  "2": {
961
826
  "name": "entity.other.inherited-class.php"
962
827
  }
963
- },
964
- "name": "meta.interface.php",
965
- "patterns": [
966
- {
967
- "include": "#namespace"
968
- }
969
- ]
828
+ }
970
829
  },
971
830
  {
972
- "begin": "(?i)(?:^|(?<=<\\?php))\\s*(namespace)\\b\\s+(?=([a-z0-9_\\\\]+\\s*($|[;{]|(\\/[\\/*])))|$)",
973
- "beginCaptures": {
974
- "1": {
975
- "name": "keyword.other.namespace.php"
976
- }
977
- },
831
+ "name": "meta.namespace.php",
978
832
  "contentName": "entity.name.type.namespace.php",
833
+ "begin": "(?i)(?:^|(?\u003c=\u003c\\?php))\\s*(namespace)\\b\\s+(?=([a-z0-9_\\\\]+\\s*($|[;{]|(\\/[\\/*])))|$)",
979
834
  "end": "(?i)(?=\\s*$|[^a-z0-9_\\\\])",
980
- "name": "meta.namespace.php",
981
835
  "patterns": [
982
836
  {
983
- "match": "\\\\",
984
- "name": "punctuation.separator.inheritance.php"
837
+ "name": "punctuation.separator.inheritance.php",
838
+ "match": "\\\\"
985
839
  }
986
- ]
987
- },
988
- {
989
- "begin": "(?i)\\s*\\b(use)\\s+(?:((const)|(function))\\s+)?",
840
+ ],
990
841
  "beginCaptures": {
991
842
  "1": {
992
- "name": "keyword.other.use.php"
993
- },
994
- "3": {
995
- "name": "storage.type.const.php"
996
- },
997
- "4": {
998
- "name": "storage.type.function.php"
843
+ "name": "keyword.other.namespace.php"
999
844
  }
1000
- },
1001
- "end": "(?=;|(?:^\\s*$))",
845
+ }
846
+ },
847
+ {
1002
848
  "name": "meta.use.php",
849
+ "begin": "(?i)\\s*\\b(use)\\s+(?:((const)|(function))\\s+)?",
850
+ "end": "(?=;|(?:^\\s*$))",
1003
851
  "patterns": [
1004
852
  {
1005
853
  "include": "#comments"
@@ -1007,38 +855,51 @@
1007
855
  {
1008
856
  "begin": "(?i)\\s*(?=[a-z_0-9\\\\])",
1009
857
  "end": "(?xi)(?:\n \t\t\t (?:\\s*(as)\\b\\s*([a-z_0-9]*)\\s*(?=,|;|$))\n \t\t\t |(?=,|;|$)\n \t\t\t )",
1010
- "endCaptures": {
1011
- "1": {
1012
- "name": "keyword.other.use-as.php"
1013
- },
1014
- "2": {
1015
- "name": "support.other.namespace.use-as.php"
1016
- }
1017
- },
1018
858
  "patterns": [
1019
859
  {
1020
860
  "include": "#class-builtin"
1021
861
  },
1022
862
  {
863
+ "name": "support.other.namespace.use.php",
1023
864
  "begin": "(?i)\\s*(?=[\\\\a-z_0-9])",
1024
865
  "end": "$|(?=[\\s,;])",
1025
- "name": "support.other.namespace.use.php",
1026
866
  "patterns": [
1027
867
  {
1028
- "match": "\\\\",
1029
- "name": "punctuation.separator.inheritance.php"
868
+ "name": "punctuation.separator.inheritance.php",
869
+ "match": "\\\\"
1030
870
  }
1031
871
  ]
1032
872
  }
1033
- ]
873
+ ],
874
+ "endCaptures": {
875
+ "1": {
876
+ "name": "keyword.other.use-as.php"
877
+ },
878
+ "2": {
879
+ "name": "support.other.namespace.use-as.php"
880
+ }
881
+ }
1034
882
  },
1035
883
  {
1036
884
  "match": "\\s*,\\s*"
1037
885
  }
1038
- ]
886
+ ],
887
+ "beginCaptures": {
888
+ "1": {
889
+ "name": "keyword.other.use.php"
890
+ },
891
+ "3": {
892
+ "name": "storage.type.const.php"
893
+ },
894
+ "4": {
895
+ "name": "storage.type.function.php"
896
+ }
897
+ }
1039
898
  },
1040
899
  {
900
+ "name": "meta.trait.php",
1041
901
  "begin": "(?i)^\\s*(trait)\\s+([a-zA-Z0-9_]+)",
902
+ "end": "(?=\\{)",
1042
903
  "beginCaptures": {
1043
904
  "1": {
1044
905
  "name": "storage.type.trait.php"
@@ -1046,52 +907,34 @@
1046
907
  "2": {
1047
908
  "name": "entity.name.type.trait.php"
1048
909
  }
1049
- },
1050
- "end": "(?=\\{)",
1051
- "name": "meta.trait.php"
910
+ }
1052
911
  },
1053
912
  {
913
+ "name": "meta.class.php",
1054
914
  "begin": "(?i)^\\s*(abstract|final)?\\s*(class)\\s+([a-z0-9_]+)\\s*",
1055
- "beginCaptures": {
1056
- "1": {
1057
- "name": "storage.modifier.abstract.php"
1058
- },
1059
- "2": {
1060
- "name": "storage.type.class.php"
1061
- },
1062
- "3": {
1063
- "name": "entity.name.type.class.php"
1064
- }
1065
- },
1066
915
  "end": "(?=[;{])",
1067
- "name": "meta.class.php",
1068
916
  "patterns": [
1069
917
  {
1070
918
  "include": "#comments"
1071
919
  },
1072
920
  {
1073
- "begin": "(?i)(extends)\\s+",
1074
- "beginCaptures": {
1075
- "1": {
1076
- "name": "storage.modifier.extends.php"
1077
- }
1078
- },
1079
921
  "contentName": "meta.other.inherited-class.php",
922
+ "begin": "(?i)(extends)\\s+",
1080
923
  "end": "(?i)(?=[^a-z_0-9\\\\])",
1081
924
  "patterns": [
1082
925
  {
1083
926
  "begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
1084
927
  "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
1085
- "endCaptures": {
1086
- "1": {
1087
- "name": "entity.other.inherited-class.php"
1088
- }
1089
- },
1090
928
  "patterns": [
1091
929
  {
1092
930
  "include": "#namespace"
1093
931
  }
1094
- ]
932
+ ],
933
+ "endCaptures": {
934
+ "1": {
935
+ "name": "entity.other.inherited-class.php"
936
+ }
937
+ }
1095
938
  },
1096
939
  {
1097
940
  "include": "#class-builtin"
@@ -1100,41 +943,41 @@
1100
943
  "include": "#namespace"
1101
944
  },
1102
945
  {
1103
- "match": "(?i)[a-z_][a-z_0-9]*",
1104
- "name": "entity.other.inherited-class.php"
946
+ "name": "entity.other.inherited-class.php",
947
+ "match": "(?i)[a-z_][a-z_0-9]*"
1105
948
  }
1106
- ]
1107
- },
1108
- {
1109
- "begin": "(?i)(implements)\\s+",
949
+ ],
1110
950
  "beginCaptures": {
1111
951
  "1": {
1112
- "name": "storage.modifier.implements.php"
952
+ "name": "storage.modifier.extends.php"
1113
953
  }
1114
- },
954
+ }
955
+ },
956
+ {
957
+ "begin": "(?i)(implements)\\s+",
1115
958
  "end": "(?i)(?=[;{])",
1116
959
  "patterns": [
1117
960
  {
1118
961
  "include": "#comments"
1119
962
  },
1120
963
  {
1121
- "begin": "(?i)(?=[a-z0-9_\\\\]+)",
1122
964
  "contentName": "meta.other.inherited-class.php",
965
+ "begin": "(?i)(?=[a-z0-9_\\\\]+)",
1123
966
  "end": "(?i)(?:\\s*(?:,|(?=[^a-z0-9_\\\\\\s]))\\s*)",
1124
967
  "patterns": [
1125
968
  {
1126
969
  "begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
1127
970
  "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
1128
- "endCaptures": {
1129
- "1": {
1130
- "name": "entity.other.inherited-class.php"
1131
- }
1132
- },
1133
971
  "patterns": [
1134
972
  {
1135
973
  "include": "#namespace"
1136
974
  }
1137
- ]
975
+ ],
976
+ "endCaptures": {
977
+ "1": {
978
+ "name": "entity.other.inherited-class.php"
979
+ }
980
+ }
1138
981
  },
1139
982
  {
1140
983
  "include": "#class-builtin"
@@ -1143,46 +986,68 @@
1143
986
  "include": "#namespace"
1144
987
  },
1145
988
  {
1146
- "match": "(?i)[a-z_][a-z_0-9]*",
1147
- "name": "entity.other.inherited-class.php"
989
+ "name": "entity.other.inherited-class.php",
990
+ "match": "(?i)[a-z_][a-z_0-9]*"
1148
991
  }
1149
992
  ]
1150
993
  }
1151
- ]
994
+ ],
995
+ "beginCaptures": {
996
+ "1": {
997
+ "name": "storage.modifier.implements.php"
998
+ }
999
+ }
1152
1000
  }
1153
- ]
1001
+ ],
1002
+ "beginCaptures": {
1003
+ "1": {
1004
+ "name": "storage.modifier.abstract.php"
1005
+ },
1006
+ "2": {
1007
+ "name": "storage.type.class.php"
1008
+ },
1009
+ "3": {
1010
+ "name": "entity.name.type.class.php"
1011
+ }
1012
+ }
1154
1013
  },
1155
1014
  {
1015
+ "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",
1156
1016
  "captures": {
1157
1017
  "1": {
1158
1018
  "name": "keyword.control.php"
1159
1019
  }
1160
- },
1161
- "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"
1020
+ }
1162
1021
  },
1163
1022
  {
1023
+ "name": "meta.include.php",
1164
1024
  "begin": "(?i)\\b((?:require|include)(?:_once)?)\\b\\s*",
1165
- "beginCaptures": {
1166
- "1": {
1167
- "name": "keyword.control.import.include.php"
1168
- }
1169
- },
1170
1025
  "end": "(?=\\s|;|$)",
1171
- "name": "meta.include.php",
1172
1026
  "patterns": [
1173
1027
  {
1174
1028
  "include": "#language"
1175
1029
  }
1176
- ]
1030
+ ],
1031
+ "beginCaptures": {
1032
+ "1": {
1033
+ "name": "keyword.control.import.include.php"
1034
+ }
1035
+ }
1177
1036
  },
1178
1037
  {
1038
+ "name": "meta.catch.php",
1179
1039
  "begin": "\\b(catch)\\b\\s*\\(\\s*",
1040
+ "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*\\)",
1041
+ "patterns": [
1042
+ {
1043
+ "include": "#namespace"
1044
+ }
1045
+ ],
1180
1046
  "beginCaptures": {
1181
1047
  "1": {
1182
1048
  "name": "keyword.control.exception.catch.php"
1183
1049
  }
1184
1050
  },
1185
- "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*\\)",
1186
1051
  "endCaptures": {
1187
1052
  "1": {
1188
1053
  "name": "support.class.exception.php"
@@ -1193,69 +1058,44 @@
1193
1058
  "3": {
1194
1059
  "name": "punctuation.definition.variable.php"
1195
1060
  }
1196
- },
1197
- "name": "meta.catch.php",
1198
- "patterns": [
1199
- {
1200
- "include": "#namespace"
1201
- }
1202
- ]
1061
+ }
1203
1062
  },
1204
1063
  {
1205
- "match": "\\b(catch|try|throw|exception|finally)\\b",
1206
- "name": "keyword.control.exception.php"
1064
+ "name": "keyword.control.exception.php",
1065
+ "match": "\\b(catch|try|throw|exception|finally)\\b"
1207
1066
  },
1208
1067
  {
1209
- "begin": "(?i)\\b(function)\\s*(&\\s*)?(?=\\()",
1210
- "beginCaptures": {
1211
- "1": {
1212
- "name": "storage.type.function.php"
1213
- },
1214
- "2": {
1215
- "name": "storage.modifier.reference.php"
1216
- }
1217
- },
1218
- "end": "\\{",
1219
1068
  "name": "meta.function.closure.php",
1069
+ "begin": "(?i)\\b(function)\\s*(\u0026\\s*)?(?=\\()",
1070
+ "end": "\\{",
1220
1071
  "patterns": [
1221
1072
  {
1222
- "begin": "(\\()",
1223
- "beginCaptures": {
1224
- "1": {
1225
- "name": "punctuation.definition.parameters.begin.php"
1226
- }
1227
- },
1228
1073
  "contentName": "meta.function.arguments.php",
1074
+ "begin": "(\\()",
1229
1075
  "end": "(\\))",
1230
- "endCaptures": {
1231
- "1": {
1232
- "name": "punctuation.definition.parameters.end.php"
1233
- }
1234
- },
1235
1076
  "patterns": [
1236
1077
  {
1237
1078
  "include": "#function-arguments"
1238
1079
  }
1239
- ]
1240
- },
1241
- {
1242
- "begin": "(?i)(use)\\s*(\\()",
1080
+ ],
1243
1081
  "beginCaptures": {
1244
1082
  "1": {
1245
- "name": "keyword.other.function.use.php"
1246
- },
1247
- "2": {
1248
1083
  "name": "punctuation.definition.parameters.begin.php"
1249
1084
  }
1250
1085
  },
1251
- "end": "(\\))",
1252
1086
  "endCaptures": {
1253
1087
  "1": {
1254
1088
  "name": "punctuation.definition.parameters.end.php"
1255
1089
  }
1256
- },
1090
+ }
1091
+ },
1092
+ {
1093
+ "begin": "(?i)(use)\\s*(\\()",
1094
+ "end": "(\\))",
1257
1095
  "patterns": [
1258
1096
  {
1097
+ "name": "meta.function.closure.use.php",
1098
+ "match": "(?:\\s*(\u0026))?\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\\s*(?=,|\\))",
1259
1099
  "captures": {
1260
1100
  "1": {
1261
1101
  "name": "storage.modifier.reference.php"
@@ -1266,22 +1106,49 @@
1266
1106
  "3": {
1267
1107
  "name": "punctuation.definition.variable.php"
1268
1108
  }
1269
- },
1270
- "match": "(?:\\s*(&))?\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\\s*(?=,|\\))",
1271
- "name": "meta.function.closure.use.php"
1109
+ }
1272
1110
  }
1273
- ]
1111
+ ],
1112
+ "beginCaptures": {
1113
+ "1": {
1114
+ "name": "keyword.other.function.use.php"
1115
+ },
1116
+ "2": {
1117
+ "name": "punctuation.definition.parameters.begin.php"
1118
+ }
1119
+ },
1120
+ "endCaptures": {
1121
+ "1": {
1122
+ "name": "punctuation.definition.parameters.end.php"
1123
+ }
1124
+ }
1274
1125
  }
1275
- ]
1126
+ ],
1127
+ "beginCaptures": {
1128
+ "1": {
1129
+ "name": "storage.type.function.php"
1130
+ },
1131
+ "2": {
1132
+ "name": "storage.modifier.reference.php"
1133
+ }
1134
+ }
1276
1135
  },
1277
1136
  {
1278
- "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 (\\()",
1137
+ "name": "meta.function.php",
1138
+ "contentName": "meta.function.arguments.php",
1139
+ "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*\u0026\\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 (\\()",
1140
+ "end": "(\\))",
1141
+ "patterns": [
1142
+ {
1143
+ "include": "#function-arguments"
1144
+ }
1145
+ ],
1279
1146
  "beginCaptures": {
1280
1147
  "1": {
1281
1148
  "patterns": [
1282
1149
  {
1283
- "match": "final|abstract|public|private|protected|static",
1284
- "name": "storage.modifier.php"
1150
+ "name": "storage.modifier.php",
1151
+ "match": "final|abstract|public|private|protected|static"
1285
1152
  }
1286
1153
  ]
1287
1154
  },
@@ -1301,19 +1168,11 @@
1301
1168
  "name": "punctuation.definition.parameters.begin.php"
1302
1169
  }
1303
1170
  },
1304
- "contentName": "meta.function.arguments.php",
1305
- "end": "(\\))",
1306
1171
  "endCaptures": {
1307
1172
  "1": {
1308
1173
  "name": "punctuation.definition.parameters.end.php"
1309
1174
  }
1310
- },
1311
- "name": "meta.function.php",
1312
- "patterns": [
1313
- {
1314
- "include": "#function-arguments"
1315
- }
1316
- ]
1175
+ }
1317
1176
  },
1318
1177
  {
1319
1178
  "include": "#invoke-call"
@@ -1321,6 +1180,18 @@
1321
1180
  {
1322
1181
  "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 )",
1323
1182
  "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)?",
1183
+ "patterns": [
1184
+ {
1185
+ "name": "storage.type.php",
1186
+ "match": "(self|static|parent)\\b"
1187
+ },
1188
+ {
1189
+ "include": "#class-name"
1190
+ },
1191
+ {
1192
+ "include": "#variable-name"
1193
+ }
1194
+ ],
1324
1195
  "endCaptures": {
1325
1196
  "1": {
1326
1197
  "name": "keyword.operator.class.php"
@@ -1337,19 +1208,7 @@
1337
1208
  "5": {
1338
1209
  "name": "constant.other.class.php"
1339
1210
  }
1340
- },
1341
- "patterns": [
1342
- {
1343
- "match": "(self|static|parent)\\b",
1344
- "name": "storage.type.php"
1345
- },
1346
- {
1347
- "include": "#class-name"
1348
- },
1349
- {
1350
- "include": "#variable-name"
1351
- }
1352
- ]
1211
+ }
1353
1212
  },
1354
1213
  {
1355
1214
  "include": "#variables"
@@ -1358,6 +1217,8 @@
1358
1217
  "include": "#strings"
1359
1218
  },
1360
1219
  {
1220
+ "name": "meta.array.empty.php",
1221
+ "match": "(array)(\\()(\\))",
1361
1222
  "captures": {
1362
1223
  "1": {
1363
1224
  "name": "support.function.construct.php"
@@ -1368,12 +1229,17 @@
1368
1229
  "3": {
1369
1230
  "name": "punctuation.definition.array.end.php"
1370
1231
  }
1371
- },
1372
- "match": "(array)(\\()(\\))",
1373
- "name": "meta.array.empty.php"
1232
+ }
1374
1233
  },
1375
1234
  {
1235
+ "name": "meta.array.php",
1376
1236
  "begin": "(array)(\\()",
1237
+ "end": "\\)",
1238
+ "patterns": [
1239
+ {
1240
+ "include": "#language"
1241
+ }
1242
+ ],
1377
1243
  "beginCaptures": {
1378
1244
  "1": {
1379
1245
  "name": "support.function.construct.php"
@@ -1382,54 +1248,48 @@
1382
1248
  "name": "punctuation.definition.array.begin.php"
1383
1249
  }
1384
1250
  },
1385
- "end": "\\)",
1386
1251
  "endCaptures": {
1387
1252
  "0": {
1388
1253
  "name": "punctuation.definition.array.end.php"
1389
1254
  }
1390
- },
1391
- "name": "meta.array.php",
1392
- "patterns": [
1393
- {
1394
- "include": "#language"
1395
- }
1396
- ]
1255
+ }
1397
1256
  },
1398
1257
  {
1258
+ "match": "(?i)\\s*\\(\\s*(array|real|double|float|int(eger)?|bool(ean)?|string|object|binary|unset)\\s*\\)",
1399
1259
  "captures": {
1400
1260
  "1": {
1401
1261
  "name": "storage.type.php"
1402
1262
  }
1403
- },
1404
- "match": "(?i)\\s*\\(\\s*(array|real|double|float|int(eger)?|bool(ean)?|string|object|binary|unset)\\s*\\)"
1263
+ }
1405
1264
  },
1406
1265
  {
1407
- "match": "(?i)\\b(array|real|double|float|int(eger)?|bool(ean)?|string|class|clone|var|function|interface|parent|self|object)\\b",
1408
- "name": "storage.type.php"
1266
+ "name": "storage.type.php",
1267
+ "match": "(?i)\\b(array|real|double|float|int(eger)?|bool(ean)?|string|class|clone|var|function|interface|parent|self|object)\\b"
1409
1268
  },
1410
1269
  {
1411
- "match": "(?i)\\b(global|abstract|const|extends|implements|final|p(r(ivate|otected)|ublic)|static)\\b",
1412
- "name": "storage.modifier.php"
1270
+ "name": "storage.modifier.php",
1271
+ "match": "(?i)\\b(global|abstract|const|extends|implements|final|p(r(ivate|otected)|ublic)|static)\\b"
1413
1272
  },
1414
1273
  {
1415
1274
  "include": "#object"
1416
1275
  },
1417
1276
  {
1418
- "match": ";",
1419
- "name": "punctuation.terminator.expression.php"
1277
+ "name": "punctuation.terminator.expression.php",
1278
+ "match": ";"
1420
1279
  },
1421
1280
  {
1422
1281
  "include": "#heredoc"
1423
1282
  },
1424
1283
  {
1425
- "match": "\\.=?",
1426
- "name": "keyword.operator.string.php"
1284
+ "name": "keyword.operator.string.php",
1285
+ "match": "\\.=?"
1427
1286
  },
1428
1287
  {
1429
- "match": "=>",
1430
- "name": "keyword.operator.key.php"
1288
+ "name": "keyword.operator.key.php",
1289
+ "match": "=\u003e"
1431
1290
  },
1432
1291
  {
1292
+ "match": "(?:(\\=)(\u0026))|(\u0026(?=[$A-Za-z_]))",
1433
1293
  "captures": {
1434
1294
  "1": {
1435
1295
  "name": "keyword.operator.assignment.php"
@@ -1440,47 +1300,41 @@
1440
1300
  "3": {
1441
1301
  "name": "storage.modifier.reference.php"
1442
1302
  }
1443
- },
1444
- "match": "(?:(\\=)(&))|(&(?=[$A-Za-z_]))"
1303
+ }
1445
1304
  },
1446
1305
  {
1447
- "match": "(@)",
1448
- "name": "keyword.operator.error-control.php"
1306
+ "name": "keyword.operator.error-control.php",
1307
+ "match": "(@)"
1449
1308
  },
1450
1309
  {
1451
- "match": "(\\-\\-|\\+\\+)",
1452
- "name": "keyword.operator.increment-decrement.php"
1310
+ "name": "keyword.operator.increment-decrement.php",
1311
+ "match": "(\\-\\-|\\+\\+)"
1453
1312
  },
1454
1313
  {
1455
- "match": "(\\-|\\+|\\*|/|%)",
1456
- "name": "keyword.operator.arithmetic.php"
1314
+ "name": "keyword.operator.arithmetic.php",
1315
+ "match": "(\\-|\\+|\\*|/|%)"
1457
1316
  },
1458
1317
  {
1459
- "match": "(?i)(!|&&|\\|\\|)|\\b(and|or|xor|as)\\b",
1460
- "name": "keyword.operator.logical.php"
1318
+ "name": "keyword.operator.logical.php",
1319
+ "match": "(?i)(!|\u0026\u0026|\\|\\|)|\\b(and|or|xor|as)\\b"
1461
1320
  },
1462
1321
  {
1463
1322
  "include": "#function-call"
1464
1323
  },
1465
1324
  {
1466
- "match": "<<|>>|~|\\^|&|\\|",
1467
- "name": "keyword.operator.bitwise.php"
1325
+ "name": "keyword.operator.bitwise.php",
1326
+ "match": "\u003c\u003c|\u003e\u003e|~|\\^|\u0026|\\|"
1468
1327
  },
1469
1328
  {
1470
- "match": "(===|==|!==|!=|<=|>=|<>|<|>)",
1471
- "name": "keyword.operator.comparison.php"
1329
+ "name": "keyword.operator.comparison.php",
1330
+ "match": "(===|==|!==|!=|\u003c=|\u003e=|\u003c\u003e|\u003c|\u003e)"
1472
1331
  },
1473
1332
  {
1474
- "match": "=",
1475
- "name": "keyword.operator.assignment.php"
1333
+ "name": "keyword.operator.assignment.php",
1334
+ "match": "="
1476
1335
  },
1477
1336
  {
1478
1337
  "begin": "(?i)\\b(instanceof)\\b\\s+(?=[\\\\$a-z_])",
1479
- "beginCaptures": {
1480
- "1": {
1481
- "name": "keyword.operator.type.php"
1482
- }
1483
- },
1484
1338
  "end": "(?=[^\\\\$A-Za-z_0-9])",
1485
1339
  "patterns": [
1486
1340
  {
@@ -1489,7 +1343,12 @@
1489
1343
  {
1490
1344
  "include": "#variable-name"
1491
1345
  }
1492
- ]
1346
+ ],
1347
+ "beginCaptures": {
1348
+ "1": {
1349
+ "name": "keyword.operator.type.php"
1350
+ }
1351
+ }
1493
1352
  },
1494
1353
  {
1495
1354
  "include": "#numbers"
@@ -1498,6 +1357,7 @@
1498
1357
  "include": "#instantiation"
1499
1358
  },
1500
1359
  {
1360
+ "match": "(?i)(goto)\\s+([a-z_][a-z_0-9]*)",
1501
1361
  "captures": {
1502
1362
  "1": {
1503
1363
  "name": "keyword.control.goto.php"
@@ -1505,38 +1365,37 @@
1505
1365
  "2": {
1506
1366
  "name": "support.other.php"
1507
1367
  }
1508
- },
1509
- "match": "(?i)(goto)\\s+([a-z_][a-z_0-9]*)"
1368
+ }
1510
1369
  },
1511
1370
  {
1371
+ "match": "(?i)^\\s*([a-z_][a-z_0-9]*)\\s*:",
1512
1372
  "captures": {
1513
1373
  "1": {
1514
1374
  "name": "entity.name.goto-label.php"
1515
1375
  }
1516
- },
1517
- "match": "(?i)^\\s*([a-z_][a-z_0-9]*)\\s*:"
1376
+ }
1518
1377
  },
1519
1378
  {
1520
1379
  "include": "#string-backtick"
1521
1380
  },
1522
1381
  {
1523
1382
  "begin": "\\[",
1383
+ "end": "\\]",
1384
+ "patterns": [
1385
+ {
1386
+ "include": "#language"
1387
+ }
1388
+ ],
1524
1389
  "beginCaptures": {
1525
1390
  "0": {
1526
1391
  "name": "punctuation.section.array.begin.php"
1527
1392
  }
1528
1393
  },
1529
- "end": "\\]",
1530
1394
  "endCaptures": {
1531
1395
  "0": {
1532
1396
  "name": "punctuation.section.array.end.php"
1533
1397
  }
1534
- },
1535
- "patterns": [
1536
- {
1537
- "include": "#language"
1538
- }
1539
- ]
1398
+ }
1540
1399
  },
1541
1400
  {
1542
1401
  "include": "#constants"
@@ -1544,36 +1403,42 @@
1544
1403
  ]
1545
1404
  },
1546
1405
  "namespace": {
1406
+ "name": "support.other.namespace.php",
1547
1407
  "begin": "(?i)(?:(namespace)|[a-z0-9_]+)?(\\\\)(?=.*?[^a-z_0-9\\\\])",
1548
- "beginCaptures": {
1549
- "1": {
1550
- "name": "variable.language.namespace.php"
1551
- },
1552
- "2": {
1553
- "name": "punctuation.separator.inheritance.php"
1554
- }
1555
- },
1556
1408
  "end": "(?i)(?=[a-z0-9_]*[^a-z0-9_\\\\])",
1557
- "name": "support.other.namespace.php",
1558
1409
  "patterns": [
1559
1410
  {
1411
+ "match": "(?i)(\\\\)",
1560
1412
  "captures": {
1561
1413
  "1": {
1562
1414
  "name": "punctuation.separator.inheritance.php"
1563
1415
  }
1564
- },
1565
- "match": "(?i)(\\\\)"
1416
+ }
1566
1417
  }
1567
- ]
1418
+ ],
1419
+ "beginCaptures": {
1420
+ "1": {
1421
+ "name": "variable.language.namespace.php"
1422
+ },
1423
+ "2": {
1424
+ "name": "punctuation.separator.inheritance.php"
1425
+ }
1426
+ }
1568
1427
  },
1569
1428
  "numbers": {
1570
- "match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b",
1571
- "name": "constant.numeric.php"
1429
+ "name": "constant.numeric.php",
1430
+ "match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b"
1572
1431
  },
1573
1432
  "object": {
1574
1433
  "patterns": [
1575
1434
  {
1576
- "begin": "(->)(\\$?\\{)",
1435
+ "begin": "(-\u003e)(\\$?\\{)",
1436
+ "end": "(\\})",
1437
+ "patterns": [
1438
+ {
1439
+ "include": "#language"
1440
+ }
1441
+ ],
1577
1442
  "beginCaptures": {
1578
1443
  "1": {
1579
1444
  "name": "keyword.operator.class.php"
@@ -1582,19 +1447,14 @@
1582
1447
  "name": "punctuation.definition.variable.php"
1583
1448
  }
1584
1449
  },
1585
- "end": "(\\})",
1586
1450
  "endCaptures": {
1587
1451
  "1": {
1588
1452
  "name": "punctuation.definition.variable.php"
1589
1453
  }
1590
- },
1591
- "patterns": [
1592
- {
1593
- "include": "#language"
1594
- }
1595
- ]
1454
+ }
1596
1455
  },
1597
1456
  {
1457
+ "match": "(?x)(-\u003e)\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)?",
1598
1458
  "captures": {
1599
1459
  "1": {
1600
1460
  "name": "keyword.operator.class.php"
@@ -1608,8 +1468,7 @@
1608
1468
  "4": {
1609
1469
  "name": "punctuation.definition.variable.php"
1610
1470
  }
1611
- },
1612
- "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)?"
1471
+ }
1613
1472
  }
1614
1473
  ]
1615
1474
  },
@@ -1628,19 +1487,26 @@
1628
1487
  "include": "#variables"
1629
1488
  },
1630
1489
  {
1631
- "match": "=>",
1632
- "name": "keyword.operator.key.php"
1490
+ "name": "keyword.operator.key.php",
1491
+ "match": "=\u003e"
1633
1492
  },
1634
1493
  {
1635
- "match": "=",
1636
- "name": "keyword.operator.assignment.php"
1494
+ "name": "keyword.operator.assignment.php",
1495
+ "match": "="
1637
1496
  },
1638
1497
  {
1639
- "match": "&(?=\\s*\\$)",
1640
- "name": "storage.modifier.reference.php"
1498
+ "name": "storage.modifier.reference.php",
1499
+ "match": "\u0026(?=\\s*\\$)"
1641
1500
  },
1642
1501
  {
1502
+ "name": "meta.array.php",
1643
1503
  "begin": "(array)\\s*(\\()",
1504
+ "end": "\\)",
1505
+ "patterns": [
1506
+ {
1507
+ "include": "#parameter-default-types"
1508
+ }
1509
+ ],
1644
1510
  "beginCaptures": {
1645
1511
  "1": {
1646
1512
  "name": "support.function.construct.php"
@@ -1649,18 +1515,11 @@
1649
1515
  "name": "punctuation.definition.array.begin.php"
1650
1516
  }
1651
1517
  },
1652
- "end": "\\)",
1653
1518
  "endCaptures": {
1654
1519
  "0": {
1655
1520
  "name": "punctuation.definition.array.end.php"
1656
1521
  }
1657
- },
1658
- "name": "meta.array.php",
1659
- "patterns": [
1660
- {
1661
- "include": "#parameter-default-types"
1662
- }
1663
- ]
1522
+ }
1664
1523
  },
1665
1524
  {
1666
1525
  "include": "#instantiation"
@@ -1668,6 +1527,11 @@
1668
1527
  {
1669
1528
  "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 )",
1670
1529
  "end": "(?i)(::)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?",
1530
+ "patterns": [
1531
+ {
1532
+ "include": "#class-name"
1533
+ }
1534
+ ],
1671
1535
  "endCaptures": {
1672
1536
  "1": {
1673
1537
  "name": "keyword.operator.class.php"
@@ -1675,12 +1539,7 @@
1675
1539
  "2": {
1676
1540
  "name": "constant.other.class.php"
1677
1541
  }
1678
- },
1679
- "patterns": [
1680
- {
1681
- "include": "#class-name"
1682
- }
1683
- ]
1542
+ }
1684
1543
  },
1685
1544
  {
1686
1545
  "include": "#constants"
@@ -1690,11 +1549,11 @@
1690
1549
  "php_doc": {
1691
1550
  "patterns": [
1692
1551
  {
1693
- "comment": "PHPDocumentor only recognises lines with an asterisk as the first non-whitespaces character",
1694
- "match": "^(?!\\s*\\*).*$\\n?",
1695
- "name": "invalid.illegal.missing-asterisk.phpdoc.php"
1552
+ "name": "invalid.illegal.missing-asterisk.phpdoc.php",
1553
+ "match": "^(?!\\s*\\*).*$\\n?"
1696
1554
  },
1697
1555
  {
1556
+ "match": "^\\s*\\*\\s*(@access)\\s+((public|private|protected)|(.+))\\s*$",
1698
1557
  "captures": {
1699
1558
  "1": {
1700
1559
  "name": "keyword.other.phpdoc.php"
@@ -1705,10 +1564,10 @@
1705
1564
  "4": {
1706
1565
  "name": "invalid.illegal.wrong-access-type.phpdoc.php"
1707
1566
  }
1708
- },
1709
- "match": "^\\s*\\*\\s*(@access)\\s+((public|private|protected)|(.+))\\s*$"
1567
+ }
1710
1568
  },
1711
1569
  {
1570
+ "match": "(@xlink)\\s+(.+)\\s*$",
1712
1571
  "captures": {
1713
1572
  "1": {
1714
1573
  "name": "keyword.other.phpdoc.php"
@@ -1716,48 +1575,38 @@
1716
1575
  "2": {
1717
1576
  "name": "markup.underline.link.php"
1718
1577
  }
1719
- },
1720
- "match": "(@xlink)\\s+(.+)\\s*$"
1578
+ }
1721
1579
  },
1722
1580
  {
1723
- "match": "\\@(a(bstract|uthor)|c(ategory|opyright)|example|global|internal|li(cense|nk)|pa(ckage|ram)|return|s(ee|ince|tatic|ubpackage)|t(hrows|odo)|v(ar|ersion)|uses|deprecated|final|ignore)\\b",
1724
- "name": "keyword.other.phpdoc.php"
1581
+ "name": "keyword.other.phpdoc.php",
1582
+ "match": "\\@(a(bstract|uthor)|c(ategory|opyright)|example|global|internal|li(cense|nk)|pa(ckage|ram)|return|s(ee|ince|tatic|ubpackage)|t(hrows|odo)|v(ar|ersion)|uses|deprecated|final|ignore)\\b"
1725
1583
  },
1726
1584
  {
1585
+ "name": "meta.tag.inline.phpdoc.php",
1586
+ "match": "\\{(@(link)).+?\\}",
1727
1587
  "captures": {
1728
1588
  "1": {
1729
1589
  "name": "keyword.other.phpdoc.php"
1730
1590
  }
1731
- },
1732
- "match": "\\{(@(link)).+?\\}",
1733
- "name": "meta.tag.inline.phpdoc.php"
1591
+ }
1734
1592
  }
1735
1593
  ]
1736
- },
1737
- "regex-double-quoted": {
1738
- "begin": "(?x)\"/ (?= (\\\\.|[^\"/])++/[imsxeADSUXu]*\" )",
1739
- "beginCaptures": {
1740
- "0": {
1741
- "name": "punctuation.definition.string.begin.php"
1742
- }
1743
- },
1744
- "end": "(/)([imsxeADSUXu]*)(\")",
1745
- "endCaptures": {
1746
- "0": {
1747
- "name": "punctuation.definition.string.end.php"
1748
- }
1749
- },
1594
+ },
1595
+ "regex-double-quoted": {
1750
1596
  "name": "string.regexp.double-quoted.php",
1597
+ "begin": "(?x)\"/ (?= (\\\\.|[^\"/])++/[imsxeADSUXu]*\" )",
1598
+ "end": "(/)([imsxeADSUXu]*)(\")",
1751
1599
  "patterns": [
1752
1600
  {
1753
- "comment": "Escaped from the regexp – there can also be 2 backslashes (since 1 will escape the first)",
1754
- "match": "(\\\\){1,2}[.$^\\[\\]{}]",
1755
- "name": "constant.character.escape.regex.php"
1601
+ "name": "constant.character.escape.regex.php",
1602
+ "match": "(\\\\){1,2}[.$^\\[\\]{}]"
1756
1603
  },
1757
1604
  {
1758
1605
  "include": "#interpolation"
1759
1606
  },
1760
1607
  {
1608
+ "name": "string.regexp.arbitrary-repitition.php",
1609
+ "match": "(\\{)\\d+(,\\d+)?(\\})",
1761
1610
  "captures": {
1762
1611
  "1": {
1763
1612
  "name": "punctuation.definition.arbitrary-repitition.php"
@@ -1765,47 +1614,47 @@
1765
1614
  "3": {
1766
1615
  "name": "punctuation.definition.arbitrary-repitition.php"
1767
1616
  }
1768
- },
1769
- "match": "(\\{)\\d+(,\\d+)?(\\})",
1770
- "name": "string.regexp.arbitrary-repitition.php"
1617
+ }
1771
1618
  },
1772
1619
  {
1620
+ "name": "string.regexp.character-class.php",
1773
1621
  "begin": "\\[(?:\\^?\\])?",
1774
- "captures": {
1775
- "0": {
1776
- "name": "punctuation.definition.character-class.php"
1777
- }
1778
- },
1779
1622
  "end": "\\]",
1780
- "name": "string.regexp.character-class.php",
1781
1623
  "patterns": [
1782
1624
  {
1783
1625
  "include": "#interpolation"
1784
1626
  }
1785
- ]
1627
+ ],
1628
+ "captures": {
1629
+ "0": {
1630
+ "name": "punctuation.definition.character-class.php"
1631
+ }
1632
+ }
1786
1633
  },
1787
1634
  {
1788
- "match": "[$^+*]",
1789
- "name": "keyword.operator.regexp.php"
1635
+ "name": "keyword.operator.regexp.php",
1636
+ "match": "[$^+*]"
1790
1637
  }
1791
- ]
1792
- },
1793
- "regex-single-quoted": {
1794
- "begin": "(?x)'/ (?= ( \\\\ (?: \\\\ (?: \\\\ [\\\\']? | [^'] ) | . ) | [^'/] )++/[imsxeADSUXu]*' )",
1638
+ ],
1795
1639
  "beginCaptures": {
1796
1640
  "0": {
1797
1641
  "name": "punctuation.definition.string.begin.php"
1798
1642
  }
1799
1643
  },
1800
- "end": "(/)([imsxeADSUXu]*)(')",
1801
1644
  "endCaptures": {
1802
1645
  "0": {
1803
1646
  "name": "punctuation.definition.string.end.php"
1804
1647
  }
1805
- },
1648
+ }
1649
+ },
1650
+ "regex-single-quoted": {
1806
1651
  "name": "string.regexp.single-quoted.php",
1652
+ "begin": "(?x)'/ (?= ( \\\\ (?: \\\\ (?: \\\\ [\\\\']? | [^'] ) | . ) | [^'/] )++/[imsxeADSUXu]*' )",
1653
+ "end": "(/)([imsxeADSUXu]*)(')",
1807
1654
  "patterns": [
1808
1655
  {
1656
+ "name": "string.regexp.arbitrary-repitition.php",
1657
+ "match": "(\\{)\\d+(,\\d+)?(\\})",
1809
1658
  "captures": {
1810
1659
  "1": {
1811
1660
  "name": "punctuation.definition.arbitrary-repitition.php"
@@ -1813,83 +1662,78 @@
1813
1662
  "3": {
1814
1663
  "name": "punctuation.definition.arbitrary-repitition.php"
1815
1664
  }
1816
- },
1817
- "match": "(\\{)\\d+(,\\d+)?(\\})",
1818
- "name": "string.regexp.arbitrary-repitition.php"
1665
+ }
1819
1666
  },
1820
1667
  {
1668
+ "name": "string.regexp.character-class.php",
1821
1669
  "begin": "\\[(?:\\^?\\])?",
1822
- "captures": {
1823
- "0": {
1824
- "name": "punctuation.definition.character-class.php"
1825
- }
1826
- },
1827
1670
  "end": "\\]",
1828
- "name": "string.regexp.character-class.php",
1829
1671
  "patterns": [
1830
1672
  {
1831
1673
  "include": "#single_quote_regex_escape"
1832
1674
  }
1833
- ]
1675
+ ],
1676
+ "captures": {
1677
+ "0": {
1678
+ "name": "punctuation.definition.character-class.php"
1679
+ }
1680
+ }
1834
1681
  },
1835
1682
  {
1836
- "match": "[$^+*]",
1837
- "name": "keyword.operator.regexp.php"
1683
+ "name": "keyword.operator.regexp.php",
1684
+ "match": "[$^+*]"
1838
1685
  },
1839
1686
  {
1840
1687
  "include": "#single_quote_regex_escape"
1841
1688
  }
1842
1689
  ],
1843
- "repository": {
1844
- "single_quote_regex_escape": {
1845
- "comment": "Support both PHP string and regex escaping",
1846
- "match": "(?x) \\\\ (?: \\\\ (?: \\\\ [\\\\']? | [^'] ) | . )",
1847
- "name": "constant.character.escape.php"
1848
- }
1849
- }
1850
- },
1851
- "sql-string-double-quoted": {
1852
- "begin": "\"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)",
1853
1690
  "beginCaptures": {
1854
1691
  "0": {
1855
1692
  "name": "punctuation.definition.string.begin.php"
1856
1693
  }
1857
1694
  },
1858
- "contentName": "source.sql.embedded.php",
1859
- "end": "\"",
1860
1695
  "endCaptures": {
1861
1696
  "0": {
1862
1697
  "name": "punctuation.definition.string.end.php"
1863
1698
  }
1864
1699
  },
1700
+ "repository": {
1701
+ "single_quote_regex_escape": {
1702
+ "name": "constant.character.escape.php",
1703
+ "match": "(?x) \\\\ (?: \\\\ (?: \\\\ [\\\\']? | [^'] ) | . )"
1704
+ }
1705
+ }
1706
+ },
1707
+ "sql-string-double-quoted": {
1865
1708
  "name": "string.quoted.double.sql.php",
1709
+ "contentName": "source.sql.embedded.php",
1710
+ "begin": "\"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)",
1711
+ "end": "\"",
1866
1712
  "patterns": [
1867
1713
  {
1868
- "match": "#(\\\\\"|[^\"])*(?=\"|$\\n?)",
1869
- "name": "comment.line.number-sign.sql"
1714
+ "name": "comment.line.number-sign.sql",
1715
+ "match": "#(\\\\\"|[^\"])*(?=\"|$\\n?)"
1870
1716
  },
1871
1717
  {
1872
- "match": "--(\\\\\"|[^\"])*(?=\"|$\\n?)",
1873
- "name": "comment.line.double-dash.sql"
1718
+ "name": "comment.line.double-dash.sql",
1719
+ "match": "--(\\\\\"|[^\"])*(?=\"|$\\n?)"
1874
1720
  },
1875
1721
  {
1876
- "match": "\\\\[\\\\\"`']",
1877
- "name": "constant.character.escape.php"
1722
+ "name": "constant.character.escape.php",
1723
+ "match": "\\\\[\\\\\"`']"
1878
1724
  },
1879
1725
  {
1880
- "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 . \"'\"",
1881
- "match": "'(?=((\\\\')|[^'\"])*(\"|$))",
1882
- "name": "string.quoted.single.unclosed.sql"
1726
+ "name": "string.quoted.single.unclosed.sql",
1727
+ "match": "'(?=((\\\\')|[^'\"])*(\"|$))"
1883
1728
  },
1884
1729
  {
1885
- "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 . \"'\"",
1886
- "match": "`(?=((\\\\`)|[^`\"])*(\"|$))",
1887
- "name": "string.quoted.other.backtick.unclosed.sql"
1730
+ "name": "string.quoted.other.backtick.unclosed.sql",
1731
+ "match": "`(?=((\\\\`)|[^`\"])*(\"|$))"
1888
1732
  },
1889
1733
  {
1734
+ "name": "string.quoted.single.sql",
1890
1735
  "begin": "'",
1891
1736
  "end": "'",
1892
- "name": "string.quoted.single.sql",
1893
1737
  "patterns": [
1894
1738
  {
1895
1739
  "include": "#interpolation"
@@ -1897,9 +1741,9 @@
1897
1741
  ]
1898
1742
  },
1899
1743
  {
1744
+ "name": "string.quoted.other.backtick.sql",
1900
1745
  "begin": "`",
1901
1746
  "end": "`",
1902
- "name": "string.quoted.other.backtick.sql",
1903
1747
  "patterns": [
1904
1748
  {
1905
1749
  "include": "#interpolation"
@@ -1912,118 +1756,125 @@
1912
1756
  {
1913
1757
  "include": "source.sql"
1914
1758
  }
1915
- ]
1916
- },
1917
- "sql-string-single-quoted": {
1918
- "begin": "'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)",
1759
+ ],
1919
1760
  "beginCaptures": {
1920
1761
  "0": {
1921
1762
  "name": "punctuation.definition.string.begin.php"
1922
1763
  }
1923
1764
  },
1924
- "contentName": "source.sql.embedded.php",
1925
- "end": "'",
1926
1765
  "endCaptures": {
1927
1766
  "0": {
1928
1767
  "name": "punctuation.definition.string.end.php"
1929
1768
  }
1930
- },
1769
+ }
1770
+ },
1771
+ "sql-string-single-quoted": {
1931
1772
  "name": "string.quoted.single.sql.php",
1773
+ "contentName": "source.sql.embedded.php",
1774
+ "begin": "'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)",
1775
+ "end": "'",
1932
1776
  "patterns": [
1933
1777
  {
1934
- "match": "#(\\\\'|[^'])*(?='|$\\n?)",
1935
- "name": "comment.line.number-sign.sql"
1778
+ "name": "comment.line.number-sign.sql",
1779
+ "match": "#(\\\\'|[^'])*(?='|$\\n?)"
1936
1780
  },
1937
1781
  {
1938
- "match": "--(\\\\'|[^'])*(?='|$\\n?)",
1939
- "name": "comment.line.double-dash.sql"
1782
+ "name": "comment.line.double-dash.sql",
1783
+ "match": "--(\\\\'|[^'])*(?='|$\\n?)"
1940
1784
  },
1941
1785
  {
1942
- "match": "\\\\[\\\\'`\"]",
1943
- "name": "constant.character.escape.php"
1786
+ "name": "constant.character.escape.php",
1787
+ "match": "\\\\[\\\\'`\"]"
1944
1788
  },
1945
1789
  {
1946
- "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 . \"'\"",
1947
- "match": "`(?=((\\\\`)|[^`'])*('|$))",
1948
- "name": "string.quoted.other.backtick.unclosed.sql"
1790
+ "name": "string.quoted.other.backtick.unclosed.sql",
1791
+ "match": "`(?=((\\\\`)|[^`'])*('|$))"
1949
1792
  },
1950
1793
  {
1951
- "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 . \"'\"",
1952
- "match": "\"(?=((\\\\\")|[^\"'])*('|$))",
1953
- "name": "string.quoted.double.unclosed.sql"
1794
+ "name": "string.quoted.double.unclosed.sql",
1795
+ "match": "\"(?=((\\\\\")|[^\"'])*('|$))"
1954
1796
  },
1955
1797
  {
1956
1798
  "include": "source.sql"
1957
1799
  }
1958
- ]
1959
- },
1960
- "string-backtick": {
1961
- "begin": "`",
1800
+ ],
1962
1801
  "beginCaptures": {
1963
1802
  "0": {
1964
1803
  "name": "punctuation.definition.string.begin.php"
1965
1804
  }
1966
1805
  },
1967
- "end": "`",
1968
1806
  "endCaptures": {
1969
1807
  "0": {
1970
1808
  "name": "punctuation.definition.string.end.php"
1971
1809
  }
1972
- },
1810
+ }
1811
+ },
1812
+ "string-backtick": {
1973
1813
  "name": "string.interpolated.php",
1814
+ "begin": "`",
1815
+ "end": "`",
1974
1816
  "patterns": [
1975
1817
  {
1976
- "match": "\\\\.",
1977
- "name": "constant.character.escape.php"
1818
+ "name": "constant.character.escape.php",
1819
+ "match": "\\\\."
1978
1820
  },
1979
1821
  {
1980
1822
  "include": "#interpolation"
1981
1823
  }
1982
- ]
1983
- },
1984
- "string-double-quoted": {
1985
- "begin": "\"",
1824
+ ],
1986
1825
  "beginCaptures": {
1987
1826
  "0": {
1988
1827
  "name": "punctuation.definition.string.begin.php"
1989
1828
  }
1990
1829
  },
1991
- "comment": "This contentName is just to allow the usage of “select scope” to select the string contents first, then the string with quotes",
1992
- "contentName": "meta.string-contents.quoted.double.php",
1993
- "end": "\"",
1994
1830
  "endCaptures": {
1995
1831
  "0": {
1996
1832
  "name": "punctuation.definition.string.end.php"
1997
1833
  }
1998
- },
1834
+ }
1835
+ },
1836
+ "string-double-quoted": {
1999
1837
  "name": "string.quoted.double.php",
1838
+ "contentName": "meta.string-contents.quoted.double.php",
1839
+ "begin": "\"",
1840
+ "end": "\"",
2000
1841
  "patterns": [
2001
1842
  {
2002
1843
  "include": "#interpolation"
2003
1844
  }
2004
- ]
2005
- },
2006
- "string-single-quoted": {
2007
- "begin": "'",
1845
+ ],
2008
1846
  "beginCaptures": {
2009
1847
  "0": {
2010
1848
  "name": "punctuation.definition.string.begin.php"
2011
1849
  }
2012
1850
  },
2013
- "contentName": "meta.string-contents.quoted.single.php",
2014
- "end": "'",
2015
1851
  "endCaptures": {
2016
1852
  "0": {
2017
1853
  "name": "punctuation.definition.string.end.php"
2018
1854
  }
2019
- },
1855
+ }
1856
+ },
1857
+ "string-single-quoted": {
2020
1858
  "name": "string.quoted.single.php",
1859
+ "contentName": "meta.string-contents.quoted.single.php",
1860
+ "begin": "'",
1861
+ "end": "'",
2021
1862
  "patterns": [
2022
1863
  {
2023
- "match": "\\\\[\\\\']",
2024
- "name": "constant.character.escape.php"
1864
+ "name": "constant.character.escape.php",
1865
+ "match": "\\\\[\\\\']"
2025
1866
  }
2026
- ]
1867
+ ],
1868
+ "beginCaptures": {
1869
+ "0": {
1870
+ "name": "punctuation.definition.string.begin.php"
1871
+ }
1872
+ },
1873
+ "endCaptures": {
1874
+ "0": {
1875
+ "name": "punctuation.definition.string.end.php"
1876
+ }
1877
+ }
2027
1878
  },
2028
1879
  "strings": {
2029
1880
  "patterns": [
@@ -2050,439 +1901,439 @@
2050
1901
  "support": {
2051
1902
  "patterns": [
2052
1903
  {
2053
- "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",
2054
- "name": "support.function.apc.php"
1904
+ "name": "support.function.apc.php",
1905
+ "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"
2055
1906
  },
2056
1907
  {
2057
- "match": "(?i)\\bapcu_(s(tore|ma_info)|c(lear_cache|a(s|che_info))|inc|de(c|lete)|e(ntry|xists)|fetch|add)\\b",
2058
- "name": "support.function.apcu.php"
1908
+ "name": "support.function.apcu.php",
1909
+ "match": "(?i)\\bapcu_(s(tore|ma_info)|c(lear_cache|a(s|che_info))|inc|de(c|lete)|e(ntry|xists)|fetch|add)\\b"
2059
1910
  },
2060
1911
  {
2061
- "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",
2062
- "name": "support.function.array.php"
1912
+ "name": "support.function.array.php",
1913
+ "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"
2063
1914
  },
2064
1915
  {
2065
- "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",
2066
- "name": "support.function.basic_functions.php"
1916
+ "name": "support.function.basic_functions.php",
1917
+ "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"
2067
1918
  },
2068
1919
  {
2069
- "match": "(?i)\\bbc(s(cale|ub|qrt)|comp|div|pow(mod)?|add|m(od|ul))\\b",
2070
- "name": "support.function.bcmath.php"
1920
+ "name": "support.function.bcmath.php",
1921
+ "match": "(?i)\\bbc(s(cale|ub|qrt)|comp|div|pow(mod)?|add|m(od|ul))\\b"
2071
1922
  },
2072
1923
  {
2073
- "match": "(?i)\\bblenc_encrypt\\b",
2074
- "name": "support.function.blenc.php"
1924
+ "name": "support.function.blenc.php",
1925
+ "match": "(?i)\\bblenc_encrypt\\b"
2075
1926
  },
2076
1927
  {
2077
- "match": "(?i)\\bMongoDB\\\\BSON\\\\(to(JSON|PHP)|from(JSON|PHP))\\b",
2078
- "name": "support.function.bson.php"
1928
+ "name": "support.function.bson.php",
1929
+ "match": "(?i)\\bMongoDB\\\\BSON\\\\(to(JSON|PHP)|from(JSON|PHP))\\b"
2079
1930
  },
2080
1931
  {
2081
- "match": "(?i)\\bbz(c(ompress|lose)|open|decompress|err(str|no|or)|flush|write|read)\\b",
2082
- "name": "support.function.bz2.php"
1932
+ "name": "support.function.bz2.php",
1933
+ "match": "(?i)\\bbz(c(ompress|lose)|open|decompress|err(str|no|or)|flush|write|read)\\b"
2083
1934
  },
2084
1935
  {
2085
- "match": "(?i)\\b(cal_(to_jd|info|days_in_month|from_jd)|unixtojd|j(d(to(unix|j(ulian|ewish)|french|gregorian)|dayofweek|monthname)|uliantojd|ewishtojd)|easter_da(ys|te)|frenchtojd|gregoriantojd)\\b",
2086
- "name": "support.function.calendar.php"
1936
+ "name": "support.function.calendar.php",
1937
+ "match": "(?i)\\b(cal_(to_jd|info|days_in_month|from_jd)|unixtojd|j(d(to(unix|j(ulian|ewish)|french|gregorian)|dayofweek|monthname)|uliantojd|ewishtojd)|easter_da(ys|te)|frenchtojd|gregoriantojd)\\b"
2087
1938
  },
2088
1939
  {
2089
- "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",
2090
- "name": "support.function.classobj.php"
1940
+ "name": "support.function.classobj.php",
1941
+ "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"
2091
1942
  },
2092
1943
  {
2093
- "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",
2094
- "name": "support.function.com.php"
1944
+ "name": "support.function.com.php",
1945
+ "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"
2095
1946
  },
2096
1947
  {
2097
- "match": "(?i)\\brandom_(int|bytes)\\b",
2098
- "name": "support.function.csprng.php"
1948
+ "name": "support.function.csprng.php",
1949
+ "match": "(?i)\\brandom_(int|bytes)\\b"
2099
1950
  },
2100
1951
  {
2101
- "match": "(?i)\\bctype_(space|cntrl|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit)\\b",
2102
- "name": "support.function.ctype.php"
1952
+ "name": "support.function.ctype.php",
1953
+ "match": "(?i)\\bctype_(space|cntrl|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit)\\b"
2103
1954
  },
2104
1955
  {
2105
- "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",
2106
- "name": "support.function.curl.php"
1956
+ "name": "support.function.curl.php",
1957
+ "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"
2107
1958
  },
2108
1959
  {
2109
- "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",
2110
- "name": "support.function.datetime.php"
1960
+ "name": "support.function.datetime.php",
1961
+ "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"
2111
1962
  },
2112
1963
  {
2113
- "match": "(?i)\\bdba_(sync|handlers|nextkey|close|insert|op(timize|en)|delete|popen|exists|key_split|f(irstkey|etch)|list|replace)\\b",
2114
- "name": "support.function.dba.php"
1964
+ "name": "support.function.dba.php",
1965
+ "match": "(?i)\\bdba_(sync|handlers|nextkey|close|insert|op(timize|en)|delete|popen|exists|key_split|f(irstkey|etch)|list|replace)\\b"
2115
1966
  },
2116
1967
  {
2117
- "match": "(?i)\\bdbx_(sort|c(o(nnect|mpare)|lose)|e(scape_string|rror)|query|fetch_row)\\b",
2118
- "name": "support.function.dbx.php"
1968
+ "name": "support.function.dbx.php",
1969
+ "match": "(?i)\\bdbx_(sort|c(o(nnect|mpare)|lose)|e(scape_string|rror)|query|fetch_row)\\b"
2119
1970
  },
2120
1971
  {
2121
- "match": "(?i)\\b(scandir|c(h(dir|root)|losedir)|opendir|dir|re(winddir|addir)|getcwd)\\b",
2122
- "name": "support.function.dir.php"
1972
+ "name": "support.function.dir.php",
1973
+ "match": "(?i)\\b(scandir|c(h(dir|root)|losedir)|opendir|dir|re(winddir|addir)|getcwd)\\b"
2123
1974
  },
2124
1975
  {
2125
- "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",
2126
- "name": "support.function.eio.php"
1976
+ "name": "support.function.eio.php",
1977
+ "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"
2127
1978
  },
2128
1979
  {
2129
- "match": "(?i)\\benchant_(dict_(s(tore_replacement|uggest)|check|is_in_session|describe|quick_check|add_to_(session|personal)|get_error)|broker_(set_(ordering|dict_path)|init|d(ict_exists|escribe)|free(_dict)?|list_dicts|request_(dict|pwl_dict)|get_(dict_path|error)))\\b",
2130
- "name": "support.function.enchant.php"
1980
+ "name": "support.function.enchant.php",
1981
+ "match": "(?i)\\benchant_(dict_(s(tore_replacement|uggest)|check|is_in_session|describe|quick_check|add_to_(session|personal)|get_error)|broker_(set_(ordering|dict_path)|init|d(ict_exists|escribe)|free(_dict)?|list_dicts|request_(dict|pwl_dict)|get_(dict_path|error)))\\b"
2131
1982
  },
2132
1983
  {
2133
- "match": "(?i)\\b(s(plit(i)?|ql_regcase)|ereg(i(_replace)?|_replace)?)\\b",
2134
- "name": "support.function.ereg.php"
1984
+ "name": "support.function.ereg.php",
1985
+ "match": "(?i)\\b(s(plit(i)?|ql_regcase)|ereg(i(_replace)?|_replace)?)\\b"
2135
1986
  },
2136
1987
  {
2137
- "match": "(?i)\\b(set_e(rror_handler|xception_handler)|trigger_error|debug_(print_backtrace|backtrace)|user_error|error_(clear_last|log|reporting|get_last)|restore_e(rror_handler|xception_handler))\\b",
2138
- "name": "support.function.errorfunc.php"
1988
+ "name": "support.function.errorfunc.php",
1989
+ "match": "(?i)\\b(set_e(rror_handler|xception_handler)|trigger_error|debug_(print_backtrace|backtrace)|user_error|error_(clear_last|log|reporting|get_last)|restore_e(rror_handler|xception_handler))\\b"
2139
1990
  },
2140
1991
  {
2141
- "match": "(?i)\\b(s(hell_exec|ystem)|p(assthru|roc_(nice|close|terminate|open|get_status))|e(scapeshell(cmd|arg)|xec))\\b",
2142
- "name": "support.function.exec.php"
1992
+ "name": "support.function.exec.php",
1993
+ "match": "(?i)\\b(s(hell_exec|ystem)|p(assthru|roc_(nice|close|terminate|open|get_status))|e(scapeshell(cmd|arg)|xec))\\b"
2143
1994
  },
2144
1995
  {
2145
- "match": "(?i)\\b(exif_(t(humbnail|agname)|imagetype|read_data)|read_exif_data)\\b",
2146
- "name": "support.function.exif.php"
1996
+ "name": "support.function.exif.php",
1997
+ "match": "(?i)\\b(exif_(t(humbnail|agname)|imagetype|read_data)|read_exif_data)\\b"
2147
1998
  },
2148
1999
  {
2149
- "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",
2150
- "name": "support.function.fann.php"
2000
+ "name": "support.function.fann.php",
2001
+ "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"
2151
2002
  },
2152
2003
  {
2153
- "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",
2154
- "name": "support.function.file.php"
2004
+ "name": "support.function.file.php",
2005
+ "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"
2155
2006
  },
2156
2007
  {
2157
- "match": "(?i)\\b(finfo_(set_flags|close|open|file|buffer)|mime_content_type)\\b",
2158
- "name": "support.function.fileinfo.php"
2008
+ "name": "support.function.fileinfo.php",
2009
+ "match": "(?i)\\b(finfo_(set_flags|close|open|file|buffer)|mime_content_type)\\b"
2159
2010
  },
2160
2011
  {
2161
- "match": "(?i)\\bfilter_(has_var|i(nput(_array)?|d)|var(_array)?|list)\\b",
2162
- "name": "support.function.filter.php"
2012
+ "name": "support.function.filter.php",
2013
+ "match": "(?i)\\bfilter_(has_var|i(nput(_array)?|d)|var(_array)?|list)\\b"
2163
2014
  },
2164
2015
  {
2165
- "match": "(?i)\\bfastcgi_finish_request\\b",
2166
- "name": "support.function.fpm.php"
2016
+ "name": "support.function.fpm.php",
2017
+ "match": "(?i)\\bfastcgi_finish_request\\b"
2167
2018
  },
2168
2019
  {
2169
- "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",
2170
- "name": "support.function.funchand.php"
2020
+ "name": "support.function.funchand.php",
2021
+ "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"
2171
2022
  },
2172
2023
  {
2173
- "match": "(?i)\\b(ngettext|textdomain|d(ngettext|c(ngettext|gettext)|gettext)|gettext|bind(textdomain|_textdomain_codeset))\\b",
2174
- "name": "support.function.gettext.php"
2024
+ "name": "support.function.gettext.php",
2025
+ "match": "(?i)\\b(ngettext|textdomain|d(ngettext|c(ngettext|gettext)|gettext)|gettext|bind(textdomain|_textdomain_codeset))\\b"
2175
2026
  },
2176
2027
  {
2177
- "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(_(seed|range|bits))?)|gcd(ext)?|xor|m(od|ul))\\b",
2178
- "name": "support.function.gmp.php"
2028
+ "name": "support.function.gmp.php",
2029
+ "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(_(seed|range|bits))?)|gcd(ext)?|xor|m(od|ul))\\b"
2179
2030
  },
2180
2031
  {
2181
- "match": "(?i)\\bhash(_(h(kdf|mac(_file)?)|copy|init|update(_(stream|file))?|pbkdf2|equals|fi(nal|le)|algos))?\\b",
2182
- "name": "support.function.hash.php"
2032
+ "name": "support.function.hash.php",
2033
+ "match": "(?i)\\bhash(_(h(kdf|mac(_file)?)|copy|init|update(_(stream|file))?|pbkdf2|equals|fi(nal|le)|algos))?\\b"
2183
2034
  },
2184
2035
  {
2185
- "match": "(?i)\\b(iconv(_(s(tr(pos|len|rpos)|ubstr|et_encoding)|get_encoding|mime_(decode(_headers)?|encode)))?|ob_iconv_handler)\\b",
2186
- "name": "support.function.iconv.php"
2036
+ "name": "support.function.iconv.php",
2037
+ "match": "(?i)\\b(iconv(_(s(tr(pos|len|rpos)|ubstr|et_encoding)|get_encoding|mime_(decode(_headers)?|encode)))?|ob_iconv_handler)\\b"
2187
2038
  },
2188
2039
  {
2189
- "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",
2190
- "name": "support.function.iisfunc.php"
2040
+ "name": "support.function.iisfunc.php",
2041
+ "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"
2191
2042
  },
2192
2043
  {
2193
- "match": "(?i)\\b(i(ptc(parse|embed)|mage(s(y|cale|tring(up)?|et(style|clip|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)|bmp))?))|t(ypes|tf(text|bbox)|ruecolortopalette)|i(struecolor|nterlace)|2wbmp|openpolygon|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|e(solution|ctangle))|g(if|d(2)?|etclip|ammacorrect|rab(screen|window))|xbm|bmp))|jpeg2wbmp|png2wbmp|g(d_info|etimagesize(fromstring)?))\\b",
2194
- "name": "support.function.image.php"
2044
+ "name": "support.function.image.php",
2045
+ "match": "(?i)\\b(i(ptc(parse|embed)|mage(s(y|cale|tring(up)?|et(style|clip|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)|bmp))?))|t(ypes|tf(text|bbox)|ruecolortopalette)|i(struecolor|nterlace)|2wbmp|openpolygon|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|e(solution|ctangle))|g(if|d(2)?|etclip|ammacorrect|rab(screen|window))|xbm|bmp))|jpeg2wbmp|png2wbmp|g(d_info|etimagesize(fromstring)?))\\b"
2195
2046
  },
2196
2047
  {
2197
- "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)?|mem_caches)|et(opt|_(c(urrent_user|fg_var)|include(d_files|_path)|defined_constants|extension_funcs|loaded_extensions|re(sources|quired_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",
2198
- "name": "support.function.info.php"
2048
+ "name": "support.function.info.php",
2049
+ "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)?|mem_caches)|et(opt|_(c(urrent_user|fg_var)|include(d_files|_path)|defined_constants|extension_funcs|loaded_extensions|re(sources|quired_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"
2199
2050
  },
2200
2051
  {
2201
- "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",
2202
- "name": "support.function.interbase.php"
2052
+ "name": "support.function.interbase.php",
2053
+ "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"
2203
2054
  },
2204
2055
  {
2205
- "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_(utf8|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",
2206
- "name": "support.function.intl.php"
2056
+ "name": "support.function.intl.php",
2057
+ "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_(utf8|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"
2207
2058
  },
2208
2059
  {
2209
- "match": "(?i)\\bjson_(decode|encode|last_error(_msg)?)\\b",
2210
- "name": "support.function.json.php"
2060
+ "name": "support.function.json.php",
2061
+ "match": "(?i)\\bjson_(decode|encode|last_error(_msg)?)\\b"
2211
2062
  },
2212
2063
  {
2213
- "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",
2214
- "name": "support.function.ldap.php"
2064
+ "name": "support.function.ldap.php",
2065
+ "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"
2215
2066
  },
2216
2067
  {
2217
- "match": "(?i)\\blibxml_(set_(streams_context|external_entity_loader)|clear_errors|disable_entity_loader|use_internal_errors|get_(errors|last_error))\\b",
2218
- "name": "support.function.libxml.php"
2068
+ "name": "support.function.libxml.php",
2069
+ "match": "(?i)\\blibxml_(set_(streams_context|external_entity_loader)|clear_errors|disable_entity_loader|use_internal_errors|get_(errors|last_error))\\b"
2219
2070
  },
2220
2071
  {
2221
- "match": "(?i)\\b(ezmlm_hash|mail)\\b",
2222
- "name": "support.function.mail.php"
2072
+ "name": "support.function.mail.php",
2073
+ "match": "(?i)\\b(ezmlm_hash|mail)\\b"
2223
2074
  },
2224
2075
  {
2225
- "match": "(?i)\\b(s(in(h)?|qrt|rand)|h(ypot|exdec)|c(os(h)?|eil)|tan(h)?|i(s_(nan|infinite|finite)|ntdiv)|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",
2226
- "name": "support.function.math.php"
2076
+ "name": "support.function.math.php",
2077
+ "match": "(?i)\\b(s(in(h)?|qrt|rand)|h(ypot|exdec)|c(os(h)?|eil)|tan(h)?|i(s_(nan|infinite|finite)|ntdiv)|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"
2227
2078
  },
2228
2079
  {
2229
- "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",
2230
- "name": "support.function.mbstring.php"
2080
+ "name": "support.function.mbstring.php",
2081
+ "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"
2231
2082
  },
2232
2083
  {
2233
- "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",
2234
- "name": "support.function.mcrypt.php"
2084
+ "name": "support.function.mcrypt.php",
2085
+ "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"
2235
2086
  },
2236
2087
  {
2237
- "match": "(?i)\\bmemcache_debug\\b",
2238
- "name": "support.function.memcache.php"
2088
+ "name": "support.function.memcache.php",
2089
+ "match": "(?i)\\bmemcache_debug\\b"
2239
2090
  },
2240
2091
  {
2241
- "match": "(?i)\\bmhash(_(count|keygen_s2k|get_(hash_name|block_size)))?\\b",
2242
- "name": "support.function.mhash.php"
2092
+ "name": "support.function.mhash.php",
2093
+ "match": "(?i)\\bmhash(_(count|keygen_s2k|get_(hash_name|block_size)))?\\b"
2243
2094
  },
2244
2095
  {
2245
- "match": "(?i)\\b(log_(cmd_(insert|delete|update)|killcursor|write_batch|reply|getmore)|bson_(decode|encode))\\b",
2246
- "name": "support.function.mongo.php"
2096
+ "name": "support.function.mongo.php",
2097
+ "match": "(?i)\\b(log_(cmd_(insert|delete|update)|killcursor|write_batch|reply|getmore)|bson_(decode|encode))\\b"
2247
2098
  },
2248
2099
  {
2249
- "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",
2250
- "name": "support.function.mysql.php"
2100
+ "name": "support.function.mysql.php",
2101
+ "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"
2251
2102
  },
2252
2103
  {
2253
- "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",
2254
- "name": "support.function.mysqli.php"
2104
+ "name": "support.function.mysqli.php",
2105
+ "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"
2255
2106
  },
2256
2107
  {
2257
- "match": "(?i)\\bmysqlnd_memcache_(set|get_config)\\b",
2258
- "name": "support.function.mysqlnd-memcache.php"
2108
+ "name": "support.function.mysqlnd-memcache.php",
2109
+ "match": "(?i)\\bmysqlnd_memcache_(set|get_config)\\b"
2259
2110
  },
2260
2111
  {
2261
- "match": "(?i)\\bmysqlnd_ms_(set_(user_pick_server|qos)|dump_servers|query_is_select|fabric_select_(shard|global)|get_(stats|last_(used_connection|gtid))|xa_(commit|rollback|gc|begin)|match_wild)\\b",
2262
- "name": "support.function.mysqlnd-ms.php"
2112
+ "name": "support.function.mysqlnd-ms.php",
2113
+ "match": "(?i)\\bmysqlnd_ms_(set_(user_pick_server|qos)|dump_servers|query_is_select|fabric_select_(shard|global)|get_(stats|last_(used_connection|gtid))|xa_(commit|rollback|gc|begin)|match_wild)\\b"
2263
2114
  },
2264
2115
  {
2265
- "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",
2266
- "name": "support.function.mysqlnd-qc.php"
2116
+ "name": "support.function.mysqlnd-qc.php",
2117
+ "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"
2267
2118
  },
2268
2119
  {
2269
- "match": "(?i)\\bmysqlnd_uh_(set_(statement_proxy|connection_proxy)|convert_to_mysqlnd)\\b",
2270
- "name": "support.function.mysqlnd-uh.php"
2120
+ "name": "support.function.mysqlnd-uh.php",
2121
+ "match": "(?i)\\bmysqlnd_uh_(set_(statement_proxy|connection_proxy)|convert_to_mysqlnd)\\b"
2271
2122
  },
2272
2123
  {
2273
- "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",
2274
- "name": "support.function.network.php"
2124
+ "name": "support.function.network.php",
2125
+ "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"
2275
2126
  },
2276
2127
  {
2277
- "match": "(?i)\\bnsapi_(virtual|re(sponse_headers|quest_headers))\\b",
2278
- "name": "support.function.nsapi.php"
2128
+ "name": "support.function.nsapi.php",
2129
+ "match": "(?i)\\bnsapi_(virtual|re(sponse_headers|quest_headers))\\b"
2279
2130
  },
2280
2131
  {
2281
- "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|d(isable_taf_callback|efine_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|e(sult|gister_taf_callback))|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",
2282
- "name": "support.function.oci8.php"
2132
+ "name": "support.function.oci8.php",
2133
+ "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|d(isable_taf_callback|efine_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|e(sult|gister_taf_callback))|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"
2283
2134
  },
2284
2135
  {
2285
- "match": "(?i)\\bopcache_(compile_file|i(s_script_cached|nvalidate)|reset|get_(status|configuration))\\b",
2286
- "name": "support.function.opcache.php"
2136
+ "name": "support.function.opcache.php",
2137
+ "match": "(?i)\\bopcache_(compile_file|i(s_script_cached|nvalidate)|reset|get_(status|configuration))\\b"
2287
2138
  },
2288
2139
  {
2289
- "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",
2290
- "name": "support.function.openssl.php"
2140
+ "name": "support.function.openssl.php",
2141
+ "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"
2291
2142
  },
2292
2143
  {
2293
- "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",
2294
- "name": "support.function.output.php"
2144
+ "name": "support.function.output.php",
2145
+ "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"
2295
2146
  },
2296
2147
  {
2297
- "match": "(?i)\\bpassword_(hash|needs_rehash|verify|get_info)\\b",
2298
- "name": "support.function.password.php"
2148
+ "name": "support.function.password.php",
2149
+ "match": "(?i)\\bpassword_(hash|needs_rehash|verify|get_info)\\b"
2299
2150
  },
2300
2151
  {
2301
- "match": "(?i)\\bpcntl_(s(trerror|ig(nal(_(dispatch|get_handler))?|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",
2302
- "name": "support.function.pcntl.php"
2152
+ "name": "support.function.pcntl.php",
2153
+ "match": "(?i)\\bpcntl_(s(trerror|ig(nal(_(dispatch|get_handler))?|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"
2303
2154
  },
2304
2155
  {
2305
- "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",
2306
- "name": "support.function.pgsql.php"
2156
+ "name": "support.function.pgsql.php",
2157
+ "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"
2307
2158
  },
2308
2159
  {
2309
- "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",
2310
- "name": "support.function.php_apache.php"
2160
+ "name": "support.function.php_apache.php",
2161
+ "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"
2311
2162
  },
2312
2163
  {
2313
- "match": "(?i)\\bdom_import_simplexml\\b",
2314
- "name": "support.function.php_dom.php"
2164
+ "name": "support.function.php_dom.php",
2165
+ "match": "(?i)\\bdom_import_simplexml\\b"
2315
2166
  },
2316
2167
  {
2317
- "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",
2318
- "name": "support.function.php_ftp.php"
2168
+ "name": "support.function.php_ftp.php",
2169
+ "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"
2319
2170
  },
2320
2171
  {
2321
- "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",
2322
- "name": "support.function.php_imap.php"
2172
+ "name": "support.function.php_imap.php",
2173
+ "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"
2323
2174
  },
2324
2175
  {
2325
- "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",
2326
- "name": "support.function.php_mssql.php"
2176
+ "name": "support.function.php_mssql.php",
2177
+ "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"
2327
2178
  },
2328
2179
  {
2329
- "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",
2330
- "name": "support.function.php_odbc.php"
2180
+ "name": "support.function.php_odbc.php",
2181
+ "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"
2331
2182
  },
2332
2183
  {
2333
- "match": "(?i)\\bpreg_(split|quote|filter|last_error|replace(_callback(_array)?)?|grep|match(_all)?)\\b",
2334
- "name": "support.function.php_pcre.php"
2184
+ "name": "support.function.php_pcre.php",
2185
+ "match": "(?i)\\bpreg_(split|quote|filter|last_error|replace(_callback(_array)?)?|grep|match(_all)?)\\b"
2335
2186
  },
2336
2187
  {
2337
- "match": "(?i)\\b(spl_(classes|object_hash|autoload(_(call|unregister|extensions|functions|register))?)|class_(implements|uses|parents)|iterator_(count|to_array|apply))\\b",
2338
- "name": "support.function.php_spl.php"
2188
+ "name": "support.function.php_spl.php",
2189
+ "match": "(?i)\\b(spl_(classes|object_hash|autoload(_(call|unregister|extensions|functions|register))?)|class_(implements|uses|parents)|iterator_(count|to_array|apply))\\b"
2339
2190
  },
2340
2191
  {
2341
- "match": "(?i)\\bzip_(close|open|entry_(name|c(ompress(ionmethod|edsize)|lose)|open|filesize|read)|read)\\b",
2342
- "name": "support.function.php_zip.php"
2192
+ "name": "support.function.php_zip.php",
2193
+ "match": "(?i)\\bzip_(close|open|entry_(name|c(ompress(ionmethod|edsize)|lose)|open|filesize|read)|read)\\b"
2343
2194
  },
2344
2195
  {
2345
- "match": "(?i)\\bposix_(s(trerror|et(sid|uid|pgid|e(uid|gid)|rlimit|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",
2346
- "name": "support.function.posix.php"
2196
+ "name": "support.function.posix.php",
2197
+ "match": "(?i)\\bposix_(s(trerror|et(sid|uid|pgid|e(uid|gid)|rlimit|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"
2347
2198
  },
2348
2199
  {
2349
- "match": "(?i)\\bset(threadtitle|proctitle)\\b",
2350
- "name": "support.function.proctitle.php"
2200
+ "name": "support.function.proctitle.php",
2201
+ "match": "(?i)\\bset(threadtitle|proctitle)\\b"
2351
2202
  },
2352
2203
  {
2353
- "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",
2354
- "name": "support.function.pspell.php"
2204
+ "name": "support.function.pspell.php",
2205
+ "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"
2355
2206
  },
2356
2207
  {
2357
- "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",
2358
- "name": "support.function.readline.php"
2208
+ "name": "support.function.readline.php",
2209
+ "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"
2359
2210
  },
2360
2211
  {
2361
- "match": "(?i)\\brecode(_(string|file))?\\b",
2362
- "name": "support.function.recode.php"
2212
+ "name": "support.function.recode.php",
2213
+ "match": "(?i)\\brecode(_(string|file))?\\b"
2363
2214
  },
2364
2215
  {
2365
- "match": "(?i)\\brrd(c_disconnect|_(create|tune|info|update|error|version|f(irst|etch)|last(update)?|restore|graph|xport))\\b",
2366
- "name": "support.function.rrd.php"
2216
+ "name": "support.function.rrd.php",
2217
+ "match": "(?i)\\brrd(c_disconnect|_(create|tune|info|update|error|version|f(irst|etch)|last(update)?|restore|graph|xport))\\b"
2367
2218
  },
2368
2219
  {
2369
- "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",
2370
- "name": "support.function.sem.php"
2220
+ "name": "support.function.sem.php",
2221
+ "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"
2371
2222
  },
2372
2223
  {
2373
- "match": "(?i)\\bsession_(s(ta(tus|rt)|et_(save_handler|cookie_params)|ave_path)|name|c(ommit|ache_(expire|limiter)|reate_id)|i(s_registered|d)|de(stroy|code)|un(set|register)|encode|write_close|abort|re(set|g(ister(_shutdown)?|enerate_id))|g(c|et_cookie_params)|module_name)\\b",
2374
- "name": "support.function.session.php"
2224
+ "name": "support.function.session.php",
2225
+ "match": "(?i)\\bsession_(s(ta(tus|rt)|et_(save_handler|cookie_params)|ave_path)|name|c(ommit|ache_(expire|limiter)|reate_id)|i(s_registered|d)|de(stroy|code)|un(set|register)|encode|write_close|abort|re(set|g(ister(_shutdown)?|enerate_id))|g(c|et_cookie_params)|module_name)\\b"
2375
2226
  },
2376
2227
  {
2377
- "match": "(?i)\\bshmop_(size|close|open|delete|write|read)\\b",
2378
- "name": "support.function.shmop.php"
2228
+ "name": "support.function.shmop.php",
2229
+ "match": "(?i)\\bshmop_(size|close|open|delete|write|read)\\b"
2379
2230
  },
2380
2231
  {
2381
- "match": "(?i)\\bsimplexml_(import_dom|load_(string|file))\\b",
2382
- "name": "support.function.simplexml.php"
2232
+ "name": "support.function.simplexml.php",
2233
+ "match": "(?i)\\bsimplexml_(import_dom|load_(string|file))\\b"
2383
2234
  },
2384
2235
  {
2385
- "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",
2386
- "name": "support.function.snmp.php"
2236
+ "name": "support.function.snmp.php",
2237
+ "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"
2387
2238
  },
2388
2239
  {
2389
- "match": "(?i)\\b(is_soap_fault|use_soap_error_handler)\\b",
2390
- "name": "support.function.soap.php"
2240
+ "name": "support.function.soap.php",
2241
+ "match": "(?i)\\b(is_soap_fault|use_soap_error_handler)\\b"
2391
2242
  },
2392
2243
  {
2393
- "match": "(?i)\\bsocket_(s(hutdown|trerror|e(nd(to|msg)?|t(opt|_(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|opt|_option|peername)|bind)\\b",
2394
- "name": "support.function.sockets.php"
2244
+ "name": "support.function.sockets.php",
2245
+ "match": "(?i)\\bsocket_(s(hutdown|trerror|e(nd(to|msg)?|t(opt|_(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|opt|_option|peername)|bind)\\b"
2395
2246
  },
2396
2247
  {
2397
- "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",
2398
- "name": "support.function.sqlite.php"
2248
+ "name": "support.function.sqlite.php",
2249
+ "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"
2399
2250
  },
2400
2251
  {
2401
- "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",
2402
- "name": "support.function.sqlsrv.php"
2252
+ "name": "support.function.sqlsrv.php",
2253
+ "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"
2403
2254
  },
2404
2255
  {
2405
- "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",
2406
- "name": "support.function.stats.php"
2256
+ "name": "support.function.stats.php",
2257
+ "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"
2407
2258
  },
2408
2259
  {
2409
- "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",
2410
- "name": "support.function.streamsfuncs.php"
2260
+ "name": "support.function.streamsfuncs.php",
2261
+ "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"
2411
2262
  },
2412
2263
  {
2413
- "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",
2414
- "name": "support.function.string.php"
2264
+ "name": "support.function.string.php",
2265
+ "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"
2415
2266
  },
2416
2267
  {
2417
- "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",
2418
- "name": "support.function.sybase.php"
2268
+ "name": "support.function.sybase.php",
2269
+ "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"
2419
2270
  },
2420
2271
  {
2421
- "match": "(?i)\\b(taint|is_tainted|untaint)\\b",
2422
- "name": "support.function.taint.php"
2272
+ "name": "support.function.taint.php",
2273
+ "match": "(?i)\\b(taint|is_tainted|untaint)\\b"
2423
2274
  },
2424
2275
  {
2425
- "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",
2426
- "name": "support.function.tidy.php"
2276
+ "name": "support.function.tidy.php",
2277
+ "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"
2427
2278
  },
2428
2279
  {
2429
- "match": "(?i)\\btoken_(name|get_all)\\b",
2430
- "name": "support.function.tokenizer.php"
2280
+ "name": "support.function.tokenizer.php",
2281
+ "match": "(?i)\\btoken_(name|get_all)\\b"
2431
2282
  },
2432
2283
  {
2433
- "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",
2434
- "name": "support.function.trader.php"
2284
+ "name": "support.function.trader.php",
2285
+ "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"
2435
2286
  },
2436
2287
  {
2437
- "match": "(?i)\\bUI\\\\(Draw\\\\Text\\\\Font\\\\fontFamilies|quit|run)\\b",
2438
- "name": "support.function.ui.php"
2288
+ "name": "support.function.ui.php",
2289
+ "match": "(?i)\\bUI\\\\(Draw\\\\Text\\\\Font\\\\fontFamilies|quit|run)\\b"
2439
2290
  },
2440
2291
  {
2441
- "match": "(?i)\\buopz_(co(py|mpose)|implement|overload|delete|undefine|extend|f(unction|lags)|re(store|name|define)|backup)\\b",
2442
- "name": "support.function.uopz.php"
2292
+ "name": "support.function.uopz.php",
2293
+ "match": "(?i)\\buopz_(co(py|mpose)|implement|overload|delete|undefine|extend|f(unction|lags)|re(store|name|define)|backup)\\b"
2443
2294
  },
2444
2295
  {
2445
- "match": "(?i)\\b(http_build_query|url(decode|encode)|parse_url|rawurl(decode|encode)|get_(headers|meta_tags)|base64_(decode|encode))\\b",
2446
- "name": "support.function.url.php"
2296
+ "name": "support.function.url.php",
2297
+ "match": "(?i)\\b(http_build_query|url(decode|encode)|parse_url|rawurl(decode|encode)|get_(headers|meta_tags)|base64_(decode|encode))\\b"
2447
2298
  },
2448
2299
  {
2449
- "match": "(?i)\\b(s(trval|e(ttype|rialize))|i(s(set|_(s(calar|tring)|nu(ll|meric)|callable|i(nt(eger)?|terable)|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",
2450
- "name": "support.function.var.php"
2300
+ "name": "support.function.var.php",
2301
+ "match": "(?i)\\b(s(trval|e(ttype|rialize))|i(s(set|_(s(calar|tring)|nu(ll|meric)|callable|i(nt(eger)?|terable)|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"
2451
2302
  },
2452
2303
  {
2453
- "match": "(?i)\\bwddx_(serialize_va(lue|rs)|deserialize|packet_(start|end)|add_vars)\\b",
2454
- "name": "support.function.wddx.php"
2304
+ "name": "support.function.wddx.php",
2305
+ "match": "(?i)\\bwddx_(serialize_va(lue|rs)|deserialize|packet_(start|end)|add_vars)\\b"
2455
2306
  },
2456
2307
  {
2457
- "match": "(?i)\\bxhprof_(sample_(disable|enable)|disable|enable)\\b",
2458
- "name": "support.function.xhprof.php"
2308
+ "name": "support.function.xhprof.php",
2309
+ "match": "(?i)\\bxhprof_(sample_(disable|enable)|disable|enable)\\b"
2459
2310
  },
2460
2311
  {
2461
- "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",
2462
- "name": "support.function.xml.php"
2312
+ "name": "support.function.xml.php",
2313
+ "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"
2463
2314
  },
2464
2315
  {
2465
- "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",
2466
- "name": "support.function.xmlrpc.php"
2316
+ "name": "support.function.xmlrpc.php",
2317
+ "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"
2467
2318
  },
2468
2319
  {
2469
- "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",
2470
- "name": "support.function.xmlwriter.php"
2320
+ "name": "support.function.xmlwriter.php",
2321
+ "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"
2471
2322
  },
2472
2323
  {
2473
- "match": "(?i)\\b(inflate_(init|add)|zlib_(decode|encode|get_coding_type)|deflate_(init|add)|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",
2474
- "name": "support.function.zlib.php"
2324
+ "name": "support.function.zlib.php",
2325
+ "match": "(?i)\\b(inflate_(init|add)|zlib_(decode|encode|get_coding_type)|deflate_(init|add)|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"
2475
2326
  },
2476
2327
  {
2477
- "match": "(?i)\\bis_int(eger)?\\b",
2478
- "name": "support.function.alias.php"
2328
+ "name": "support.function.alias.php",
2329
+ "match": "(?i)\\bis_int(eger)?\\b"
2479
2330
  }
2480
2331
  ]
2481
2332
  },
2482
2333
  "user-function-call": {
2334
+ "name": "meta.function-call.php",
2483
2335
  "begin": "(?i)(?=[a-z_0-9\\\\]*[a-z_][a-z0-9_]*\\s*\\()",
2484
2336
  "end": "(?i)[a-z_][a-z_0-9]*(?=\\s*\\()",
2485
- "name": "meta.function-call.php",
2486
2337
  "patterns": [
2487
2338
  {
2488
2339
  "include": "#namespace"
@@ -2492,33 +2343,33 @@
2492
2343
  "var_basic": {
2493
2344
  "patterns": [
2494
2345
  {
2346
+ "name": "variable.other.php",
2347
+ "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",
2495
2348
  "captures": {
2496
2349
  "1": {
2497
2350
  "name": "punctuation.definition.variable.php"
2498
2351
  }
2499
- },
2500
- "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",
2501
- "name": "variable.other.php"
2352
+ }
2502
2353
  }
2503
2354
  ]
2504
2355
  },
2505
2356
  "var_global": {
2357
+ "name": "variable.other.global.php",
2358
+ "match": "(\\$)((_(COOKIE|FILES|GET|POST|REQUEST))|arg(v|c))\\b",
2506
2359
  "captures": {
2507
2360
  "1": {
2508
2361
  "name": "punctuation.definition.variable.php"
2509
2362
  }
2510
- },
2511
- "match": "(\\$)((_(COOKIE|FILES|GET|POST|REQUEST))|arg(v|c))\\b",
2512
- "name": "variable.other.global.php"
2363
+ }
2513
2364
  },
2514
2365
  "var_global_safer": {
2366
+ "name": "variable.other.global.safer.php",
2367
+ "match": "(\\$)((GLOBALS|_(ENV|SERVER|SESSION)))",
2515
2368
  "captures": {
2516
2369
  "1": {
2517
2370
  "name": "punctuation.definition.variable.php"
2518
2371
  }
2519
- },
2520
- "match": "(\\$)((GLOBALS|_(ENV|SERVER|SESSION)))",
2521
- "name": "variable.other.global.safer.php"
2372
+ }
2522
2373
  },
2523
2374
  "variable-name": {
2524
2375
  "patterns": [
@@ -2529,6 +2380,7 @@
2529
2380
  "include": "#var_global_safer"
2530
2381
  },
2531
2382
  {
2383
+ "match": "(?x)\n\t\t\t\t\t\t((\\$)(?\u003cname\u003e[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(-\u003e)(\\g\u003cname\u003e)\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\u003cname\u003e)|(\\w+))\n\t\t\t\t\t\t\t(\\])\n\t\t\t\t\t\t)?\n\t\t\t\t\t\t",
2532
2384
  "captures": {
2533
2385
  "1": {
2534
2386
  "name": "variable.other.php"
@@ -2560,11 +2412,10 @@
2560
2412
  "9": {
2561
2413
  "name": "punctuation.definition.variable.php"
2562
2414
  }
2563
- },
2564
- "comment": "Simple syntax: $foo, $foo[0], $foo[$bar], $foo->bar",
2565
- "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"
2415
+ }
2566
2416
  },
2567
2417
  {
2418
+ "match": "(?x)\n\t\t\t\t\t\t((\\$\\{)(?\u003cname\u003e[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(\\}))\n\t\t\t\t\t\t",
2568
2419
  "captures": {
2569
2420
  "1": {
2570
2421
  "name": "variable.other.php"
@@ -2575,9 +2426,7 @@
2575
2426
  "4": {
2576
2427
  "name": "punctuation.definition.variable.php"
2577
2428
  }
2578
- },
2579
- "comment": "Simple syntax with braces: \"foo${bar}baz\"",
2580
- "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"
2429
+ }
2581
2430
  }
2582
2431
  ]
2583
2432
  },
@@ -2594,26 +2443,144 @@
2594
2443
  },
2595
2444
  {
2596
2445
  "begin": "(\\$\\{)(?=.*?\\})",
2446
+ "end": "(\\})",
2447
+ "patterns": [
2448
+ {
2449
+ "include": "#language"
2450
+ }
2451
+ ],
2597
2452
  "beginCaptures": {
2598
2453
  "1": {
2599
2454
  "name": "punctuation.definition.variable.php"
2600
2455
  }
2601
2456
  },
2602
- "end": "(\\})",
2603
2457
  "endCaptures": {
2604
2458
  "1": {
2605
2459
  "name": "punctuation.definition.variable.php"
2606
2460
  }
2461
+ }
2462
+ }
2463
+ ]
2464
+ }
2465
+ },
2466
+ "injections": {
2467
+ "^text.html - (meta.embedded | meta.tag), L:^text.html meta.tag, L:text.html.php source.js": {
2468
+ "patterns": [
2469
+ {
2470
+ "begin": "(^\\s*)(?=\u003c\\?(?![^?]*\\?\u003e))",
2471
+ "end": "(?!\\G)(\\s*$\\n)?",
2472
+ "patterns": [
2473
+ {
2474
+ "name": "meta.embedded.block.php",
2475
+ "contentName": "source.php",
2476
+ "begin": "\u003c\\?(?i:php|=)?",
2477
+ "end": "(\\?)\u003e",
2478
+ "patterns": [
2479
+ {
2480
+ "include": "#language"
2481
+ }
2482
+ ],
2483
+ "beginCaptures": {
2484
+ "0": {
2485
+ "name": "punctuation.section.embedded.begin.php"
2486
+ }
2487
+ },
2488
+ "endCaptures": {
2489
+ "0": {
2490
+ "name": "punctuation.section.embedded.end.php"
2491
+ },
2492
+ "1": {
2493
+ "name": "source.php"
2494
+ }
2495
+ }
2496
+ }
2497
+ ],
2498
+ "beginCaptures": {
2499
+ "0": {
2500
+ "name": "punctuation.whitespace.embedded.leading.php"
2501
+ }
2607
2502
  },
2503
+ "endCaptures": {
2504
+ "0": {
2505
+ "name": "punctuation.whitespace.embedded.trailing.php"
2506
+ }
2507
+ }
2508
+ },
2509
+ {
2510
+ "name": "meta.embedded.block.php",
2511
+ "contentName": "source.php",
2512
+ "begin": "\u003c\\?(?i:php|=)?(?![^?]*\\?\u003e)",
2513
+ "end": "(\\?)\u003e",
2608
2514
  "patterns": [
2609
2515
  {
2610
2516
  "include": "#language"
2611
2517
  }
2612
- ]
2518
+ ],
2519
+ "beginCaptures": {
2520
+ "0": {
2521
+ "name": "punctuation.section.embedded.begin.php"
2522
+ }
2523
+ },
2524
+ "endCaptures": {
2525
+ "0": {
2526
+ "name": "punctuation.section.embedded.end.php"
2527
+ },
2528
+ "1": {
2529
+ "name": "source.php"
2530
+ }
2531
+ }
2532
+ },
2533
+ {
2534
+ "name": "meta.embedded.line.php",
2535
+ "begin": "\u003c\\?(?i:php|=)?",
2536
+ "end": "\u003e",
2537
+ "patterns": [
2538
+ {
2539
+ "name": "meta.special.empty-tag.php",
2540
+ "match": "\\G(\\s*)((\\?))(?=\u003e)",
2541
+ "captures": {
2542
+ "1": {
2543
+ "name": "source.php"
2544
+ },
2545
+ "2": {
2546
+ "name": "punctuation.section.embedded.end.php"
2547
+ },
2548
+ "3": {
2549
+ "name": "source.php"
2550
+ }
2551
+ }
2552
+ },
2553
+ {
2554
+ "contentName": "source.php",
2555
+ "begin": "\\G",
2556
+ "end": "(\\?)(?=\u003e)",
2557
+ "patterns": [
2558
+ {
2559
+ "include": "#language"
2560
+ }
2561
+ ],
2562
+ "endCaptures": {
2563
+ "0": {
2564
+ "name": "punctuation.section.embedded.end.php"
2565
+ },
2566
+ "1": {
2567
+ "name": "source.php"
2568
+ }
2569
+ }
2570
+ }
2571
+ ],
2572
+ "beginCaptures": {
2573
+ "0": {
2574
+ "name": "punctuation.section.embedded.begin.php"
2575
+ }
2576
+ },
2577
+ "endCaptures": {
2578
+ "0": {
2579
+ "name": "punctuation.section.embedded.end.php"
2580
+ }
2581
+ }
2613
2582
  }
2614
2583
  ]
2615
2584
  }
2616
- },
2617
- "scopeName": "text.html.php",
2618
- "uuid": "22986475-8CA5-11D9-AEDD-000D93C8BE28"
2619
- }
2585
+ }
2586
+ }