github-linguist-grammars 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/grammars/file.lasso.json +713 -0
- data/grammars/module.ceylon.json +54 -0
- data/grammars/objdump.x86asm.json +73 -0
- data/grammars/source.Inform7.json +45 -0
- data/grammars/source.Kotlin.json +774 -0
- data/grammars/source.LS.json +104 -0
- data/grammars/source.MCPOST.json +68 -0
- data/grammars/source.MOD.json +70 -0
- data/grammars/source.abap.json +176 -0
- data/grammars/source.abl.json +138 -0
- data/grammars/source.actionscript.3.json +1571 -0
- data/grammars/source.acucobol.json +16 -0
- data/grammars/source.ada.json +140 -0
- data/grammars/source.agda.json +254 -0
- data/grammars/source.ahk.json +171 -0
- data/grammars/source.alloy.json +44 -0
- data/grammars/source.ampl.json +157 -0
- data/grammars/source.antlr.json +300 -0
- data/grammars/source.apache-config.json +352 -0
- data/grammars/source.apache-config.mod_perl.json +70 -0
- data/grammars/source.apl.json +442 -0
- data/grammars/source.applescript.json +1385 -0
- data/grammars/source.apt.json +25 -0
- data/grammars/source.asm.x86.json +182 -0
- data/grammars/source.asp.json +157 -0
- data/grammars/source.aspectj.json +963 -0
- data/grammars/source.ats.json +170 -0
- data/grammars/source.autoit.3.json +132 -0
- data/grammars/source.awk.json +388 -0
- data/grammars/source.befunge.json +38 -0
- data/grammars/source.bf.json +36 -0
- data/grammars/source.bison.json +59 -0
- data/grammars/source.blitzmax.json +912 -0
- data/grammars/source.boo.json +452 -0
- data/grammars/source.brightauthorproject.json +29 -0
- data/grammars/source.brightscript.json +158 -0
- data/grammars/source.bro.json +409 -0
- data/grammars/source.bsv.json +283 -0
- data/grammars/source.c++.json +364 -0
- data/grammars/source.c++.qt.json +37 -0
- data/grammars/source.c.ec.json +39 -0
- data/grammars/source.c.json +727 -0
- data/grammars/source.c.platform.json +154 -0
- data/grammars/source.cache.cmake.json +75 -0
- data/grammars/source.cake.json +16 -0
- data/grammars/source.camlp4.ocaml.json +63 -0
- data/grammars/source.capnp.json +93 -0
- data/grammars/source.ceylon.json +77 -0
- data/grammars/source.cfscript.cfc.json +170 -0
- data/grammars/source.cfscript.json +744 -0
- data/grammars/source.chapel.json +240 -0
- data/grammars/source.cirru.json +66 -0
- data/grammars/source.clarion.json +159 -0
- data/grammars/source.clips.json +80 -0
- data/grammars/source.clojure.json +397 -0
- data/grammars/source.cm.json +54 -0
- data/grammars/source.cmake.json +181 -0
- data/grammars/source.cobol.json +528 -0
- data/grammars/source.coffee.json +678 -0
- data/grammars/source.compiled-papyrus.json +11 -0
- data/grammars/source.cool.json +103 -0
- data/grammars/source.coq.json +62 -0
- data/grammars/source.crystal.json +2760 -0
- data/grammars/source.cs.json +556 -0
- data/grammars/source.css.json +630 -0
- data/grammars/source.css.less.json +276 -0
- data/grammars/source.css.mss.json +256 -0
- data/grammars/source.csx.json +16 -0
- data/grammars/source.cuda-c++.json +137 -0
- data/grammars/source.cython.json +2108 -0
- data/grammars/source.d.json +722 -0
- data/grammars/source.dart.json +763 -0
- data/grammars/source.desktop.json +90 -0
- data/grammars/source.diff.json +162 -0
- data/grammars/source.dockerfile.json +89 -0
- data/grammars/source.dosbatch.json +70 -0
- data/grammars/source.dot.json +126 -0
- data/grammars/source.dylan.json +217 -0
- data/grammars/source.eiffel.json +138 -0
- data/grammars/source.elixir.json +737 -0
- data/grammars/source.elm.json +355 -0
- data/grammars/source.erazor.json +126 -0
- data/grammars/source.erlang.json +1674 -0
- data/grammars/source.essl.json +50 -0
- data/grammars/source.factor.json +260 -0
- data/grammars/source.fan.json +188 -0
- data/grammars/source.fancy.json +270 -0
- data/grammars/source.fish.json +214 -0
- data/grammars/source.forth.json +101 -0
- data/grammars/source.fortran.json +499 -0
- data/grammars/source.fortran.modern.json +226 -0
- data/grammars/source.fsharp.json +403 -0
- data/grammars/source.gap.json +167 -0
- data/grammars/source.gcode.json +25 -0
- data/grammars/source.gdscript.json +154 -0
- data/grammars/source.gfm.json +1270 -0
- data/grammars/source.glsl.json +71 -0
- data/grammars/source.gnuplot.json +276 -0
- data/grammars/source.go.json +552 -0
- data/grammars/source.golo.json +182 -0
- data/grammars/source.gosu.2.json +163 -0
- data/grammars/source.grace.json +679 -0
- data/grammars/source.groovy.gradle.json +73 -0
- data/grammars/source.groovy.json +1385 -0
- data/grammars/source.harbour.json +450 -0
- data/grammars/source.haskell.json +449 -0
- data/grammars/source.haxe.2.json +1243 -0
- data/grammars/source.hss.1.json +464 -0
- data/grammars/source.httpspec.json +287 -0
- data/grammars/source.hxml.json +26 -0
- data/grammars/source.hy.json +270 -0
- data/grammars/source.idl-dlm.json +112 -0
- data/grammars/source.idl.json +267 -0
- data/grammars/source.idris.json +537 -0
- data/grammars/source.ini.json +113 -0
- data/grammars/source.inno.json +65 -0
- data/grammars/source.io.json +164 -0
- data/grammars/source.ioke.json +272 -0
- data/grammars/source.isabelle.root.json +68 -0
- data/grammars/source.isabelle.theory.json +106 -0
- data/grammars/source.j.json +49 -0
- data/grammars/source.jade.json +1009 -0
- data/grammars/source.jasmin.json +299 -0
- data/grammars/source.java-properties.json +97 -0
- data/grammars/source.java.json +1026 -0
- data/grammars/source.jcl.json +49 -0
- data/grammars/source.jflex.json +490 -0
- data/grammars/source.jq.json +218 -0
- data/grammars/source.js.json +948 -0
- data/grammars/source.js.jsx.json +2937 -0
- data/grammars/source.js.objj.json +424 -0
- data/grammars/source.js.regexp.json +150 -0
- data/grammars/source.js.regexp.replacement.json +30 -0
- data/grammars/source.json.json +149 -0
- data/grammars/source.julia.json +407 -0
- data/grammars/source.lean.json +145 -0
- data/grammars/source.lid.json +23 -0
- data/grammars/source.lilypond.json +623 -0
- data/grammars/source.lisp.json +111 -0
- data/grammars/source.litcoffee.json +669 -0
- data/grammars/source.livescript.json +616 -0
- data/grammars/source.llvm.json +71 -0
- data/grammars/source.logos.json +31 -0
- data/grammars/source.logtalk.json +315 -0
- data/grammars/source.loomscript.json +214 -0
- data/grammars/source.lsl.json +216 -0
- data/grammars/source.lua.json +191 -0
- data/grammars/source.makefile.json +474 -0
- data/grammars/source.makegen.json +13 -0
- data/grammars/source.man.json +53 -0
- data/grammars/source.mask.json +701 -0
- data/grammars/source.mata.json +133 -0
- data/grammars/source.mathematica.json +429 -0
- data/grammars/source.matlab.json +776 -0
- data/grammars/source.mercury.json +251 -0
- data/grammars/source.ml.json +291 -0
- data/grammars/source.modelica.json +142 -0
- data/grammars/source.modula2.json +103 -0
- data/grammars/source.monkey.json +701 -0
- data/grammars/source.moonscript.json +149 -0
- data/grammars/source.mupad.json +149 -0
- data/grammars/source.nant-build.json +86 -0
- data/grammars/source.ncl.json +66 -0
- data/grammars/source.nemerle.json +137 -0
- data/grammars/source.nesc.json +27 -0
- data/grammars/source.netlinx.erb.json +47 -0
- data/grammars/source.netlinx.json +768 -0
- data/grammars/source.nginx.json +797 -0
- data/grammars/source.nim.json +1150 -0
- data/grammars/source.nim_filter.json +133 -0
- data/grammars/source.nimcfg.json +116 -0
- data/grammars/source.ninja.json +66 -0
- data/grammars/source.nit.json +238 -0
- data/grammars/source.nix.json +1200 -0
- data/grammars/source.nmml.json +87 -0
- data/grammars/source.nsis.json +150 -0
- data/grammars/source.objc++.json +19 -0
- data/grammars/source.objc.json +918 -0
- data/grammars/source.objc.platform.json +277 -0
- data/grammars/source.ocaml.json +1426 -0
- data/grammars/source.ocamllex.json +305 -0
- data/grammars/source.ocamlyacc.json +346 -0
- data/grammars/source.octave.json +451 -0
- data/grammars/source.ooc.json +692 -0
- data/grammars/source.opa.json +206 -0
- data/grammars/source.opal.json +415 -0
- data/grammars/source.opalsysdefs.json +70 -0
- data/grammars/source.opencobol.json +65 -0
- data/grammars/source.ox.json +97 -0
- data/grammars/source.oz.json +84 -0
- data/grammars/source.papyrus-assembly.json +266 -0
- data/grammars/source.papyrus.json +231 -0
- data/grammars/source.parrot.pir.json +117 -0
- data/grammars/source.pascal.json +150 -0
- data/grammars/source.perl.6.json +310 -0
- data/grammars/source.perl.json +2413 -0
- data/grammars/source.php.zephir.json +362 -0
- data/grammars/source.pig_latin.json +172 -0
- data/grammars/source.pike.json +62 -0
- data/grammars/source.plsql.oracle.json +642 -0
- data/grammars/source.po.json +232 -0
- data/grammars/source.pogoscript.json +85 -0
- data/grammars/source.postscript.json +231 -0
- data/grammars/source.powershell.json +755 -0
- data/grammars/source.processing.json +885 -0
- data/grammars/source.prolog.eclipse.json +206 -0
- data/grammars/source.prolog.json +292 -0
- data/grammars/source.protobuf.json +395 -0
- data/grammars/source.pubspec.json +13 -0
- data/grammars/source.puppet.json +494 -0
- data/grammars/source.purescript.json +818 -0
- data/grammars/source.pyjade.json +1010 -0
- data/grammars/source.python.django.json +34 -0
- data/grammars/source.python.json +1960 -0
- data/grammars/source.python.salt.json +13 -0
- data/grammars/source.qmake.json +217 -0
- data/grammars/source.qml.json +195 -0
- data/grammars/source.r.json +203 -0
- data/grammars/source.racket.json +119 -0
- data/grammars/source.rebol.json +647 -0
- data/grammars/source.red.json +652 -0
- data/grammars/source.regexp.babel.json +190 -0
- data/grammars/source.regexp.python.json +187 -0
- data/grammars/source.regexp.spin.json +188 -0
- data/grammars/source.ruby.json +1956 -0
- data/grammars/source.ruby.rspec.cucumber.steps.json +274 -0
- data/grammars/source.rust.json +269 -0
- data/grammars/source.sas.json +322 -0
- data/grammars/source.sas_log.json +26 -0
- data/grammars/source.sass.json +248 -0
- data/grammars/source.sbt.json +36 -0
- data/grammars/source.scad.json +152 -0
- data/grammars/source.scala.json +739 -0
- data/grammars/source.scaml.json +466 -0
- data/grammars/source.scheme.json +370 -0
- data/grammars/source.scilab.json +103 -0
- data/grammars/source.scss.json +1321 -0
- data/grammars/source.shell.json +1212 -0
- data/grammars/source.smali.json +1668 -0
- data/grammars/source.smalltalk.json +135 -0
- data/grammars/source.smt.json +173 -0
- data/grammars/source.sp.json +118 -0
- data/grammars/source.sparql.json +23 -0
- data/grammars/source.spin.json +936 -0
- data/grammars/source.sqf.json +112 -0
- data/grammars/source.sql.json +473 -0
- data/grammars/source.stata.json +208 -0
- data/grammars/source.strings.json +53 -0
- data/grammars/source.stylus.json +1021 -0
- data/grammars/source.swift.json +965 -0
- data/grammars/source.systemverilog.json +1050 -0
- data/grammars/source.tcl.json +277 -0
- data/grammars/source.tea.json +180 -0
- data/grammars/source.thrift.json +704 -0
- data/grammars/source.toml.json +327 -0
- data/grammars/source.ts.json +1094 -0
- data/grammars/source.tsx.json +1324 -0
- data/grammars/source.turtle.json +505 -0
- data/grammars/source.txl.json +62 -0
- data/grammars/source.ucfconstraints.json +72 -0
- data/grammars/source.vala.json +814 -0
- data/grammars/source.varnish.vcl.json +343 -0
- data/grammars/source.vbnet.json +338 -0
- data/grammars/source.verilog.json +302 -0
- data/grammars/source.vhdl.json +1349 -0
- data/grammars/source.viml.json +224 -0
- data/grammars/source.webidl.json +814 -0
- data/grammars/source.x10.json +68 -0
- data/grammars/source.x86asm.json +47 -0
- data/grammars/source.xc.json +379 -0
- data/grammars/source.xq.json +241 -0
- data/grammars/source.xquery.json +193 -0
- data/grammars/source.xtend.json +733 -0
- data/grammars/source.yaml.json +334 -0
- data/grammars/source.yaml.salt.json +348 -0
- data/grammars/text.bibtex.json +251 -0
- data/grammars/text.cfml.basic.json +736 -0
- data/grammars/text.dart-analysis-output.json +162 -0
- data/grammars/text.dart-doccomments.json +19 -0
- data/grammars/text.elixir.json +45 -0
- data/grammars/text.gherkin.feature.json +135 -0
- data/grammars/text.groff.json +113 -0
- data/grammars/text.haml.json +299 -0
- data/grammars/text.html.abl.json +24 -0
- data/grammars/text.html.asciidoc.json +492 -0
- data/grammars/text.html.asdoc.json +541 -0
- data/grammars/text.html.asp.json +58 -0
- data/grammars/text.html.basic.json +552 -0
- data/grammars/text.html.cfm.json +811 -0
- data/grammars/text.html.creole.json +329 -0
- data/grammars/text.html.django.json +69 -0
- data/grammars/text.html.elixir.json +18 -0
- data/grammars/text.html.erb.json +157 -0
- data/grammars/text.html.erlang.yaws.json +72 -0
- data/grammars/text.html.factor.json +27 -0
- data/grammars/text.html.handlebars.json +783 -0
- data/grammars/text.html.jsp.json +1203 -0
- data/grammars/text.html.liquid.json +35 -0
- data/grammars/text.html.mako.json +729 -0
- data/grammars/text.html.markdown.source.gfm.apib.json +1297 -0
- data/grammars/text.html.markdown.source.gfm.mson.json +1165 -0
- data/grammars/text.html.mediawiki.json +972 -0
- data/grammars/text.html.php.json +2607 -0
- data/grammars/text.html.slash.json +313 -0
- data/grammars/text.html.smarty.json +216 -0
- data/grammars/text.html.ssp.json +49 -0
- data/grammars/text.html.tcl.json +44 -0
- data/grammars/text.html.twig.json +1353 -0
- data/grammars/text.html.vue.json +642 -0
- data/grammars/text.idl-idldoc.json +14 -0
- data/grammars/text.junit-test-report.json +92 -0
- data/grammars/text.log.latex.json +86 -0
- data/grammars/text.python.console.json +25 -0
- data/grammars/text.python.traceback.json +46 -0
- data/grammars/text.rdoc.json +48 -0
- data/grammars/text.restructuredtext.json +561 -0
- data/grammars/text.robot.json +73 -0
- data/grammars/text.shell-session.json +48 -0
- data/grammars/text.slim.json +527 -0
- data/grammars/text.tex.json +271 -0
- data/grammars/text.tex.latex.beamer.json +63 -0
- data/grammars/text.tex.latex.haskell.json +56 -0
- data/grammars/text.tex.latex.json +1013 -0
- data/grammars/text.tex.latex.memoir.json +99 -0
- data/grammars/text.tex.latex.rd.json +117 -0
- data/grammars/text.xml.ant.json +202 -0
- data/grammars/text.xml.flex-config.json +2634 -0
- data/grammars/text.xml.genshi.json +34 -0
- data/grammars/text.xml.json +364 -0
- data/grammars/text.xml.pom.json +774 -0
- data/grammars/text.xml.xsl.json +94 -0
- data/grammars/text.zone_file.json +72 -0
- data/lib/linguist/grammars.rb +13 -0
- metadata +389 -0
@@ -0,0 +1,2607 @@
|
|
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",
|
14
|
+
"foldingStartMarker": "(/\\*|\\{\\s*$|<<<HTML)",
|
15
|
+
"foldingStopMarker": "(\\*/|^\\s*\\}|^HTML;)",
|
16
|
+
"injections": {
|
17
|
+
"text.html.php - (meta.embedded | meta.tag), L:text.html.php meta.tag, L:source.js.embedded.html": {
|
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
|
+
"name": "PHP",
|
138
|
+
"patterns": [
|
139
|
+
{
|
140
|
+
"include": "text.html.basic"
|
141
|
+
}
|
142
|
+
],
|
143
|
+
"repository": {
|
144
|
+
"class-builtin": {
|
145
|
+
"patterns": [
|
146
|
+
{
|
147
|
+
"captures": {
|
148
|
+
"1": {
|
149
|
+
"name": "punctuation.separator.inheritance.php"
|
150
|
+
}
|
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(Method|Class|ZendExtension|Object|P(arameter|roperty)|Extension|Function(Abstract)?)?|or)|gexIterator)|angeException)|G(ender\\Gender|lobIterator|magick(Draw|Pixel)?)|X(sltProcessor|ML(Reader|Diff\\\\(Memory|Base|DOM|File)|Writer)|SLTProcessor)|M(ysqlndUh(Connection|PreparedStatement)|ongo(Re(sultException|gex)|Grid(fsFile|FS(Cursor|File)?)|BinData|C(o(de|llection|mmandCursor)|ursor(Exception)?|lient)|Timestamp|I(n(sertBatch|t(32|64))|d)|D(B(Ref)?|eleteBatch|ate)|UpdateBatch|Pool|Write(Batch|ConcernException)|Log)?|u(tex|ltipleIterator)|e(ssageFormatter|mcache(d)?))|Bad(MethodCallException|FunctionCallException)|tidy(Node)?|S(ync(ReaderWriter|Mutex|Semaphore|Event)|impleXML(Iterator|Element)|oap(Server|Header|Client|Param|Var|Fault)|NMP|CA(_(SoapProxy|LocalProxy))?|p(hinxClient|oofchecker|l(M(inHeap|axHeap)|S(tack|ubject)|Heap|T(ype|empFileObject)|Ob(server|jectStorage)|DoublyLinkedList|PriorityQueue|Enum|Queue|Fi(le(Info|Object)|xedArray)))|e(ssionHandler(Interface)?|ekableIterator|rializable)|DO_(Model_(ReflectionDataObject|Type|Property)|Sequence|D(ata(Object|Factory)|AS_(Relational|XML(_Document)?|Setting|ChangeSummary|Data(Object|Factory)))|Exception|List)|wish(Result(s)?|Search)?|VM(Model)?|QLite(Result|3(Result|Stmt)?|Database|Unbuffered)|AM(Message|Connection))|H(RTime\\\\(StopWatch|PerformanceCounter)|ttp(Re(sponse|quest(Pool)?)|Message|InflateStream|DeflateStream|QueryString)|aru(Image|Outline|D(oc|estination)|Page|Encoder|Font|Annotation))|Ya(f_(R(oute(_(Re(write|gex)|Map|S(tatic|imple|upervar)|Interface)|r)|e(sponse_Abstract|quest_(Simple|Http|Abstract)|gistry))|Session|Con(troller_Abstract|fig_(Simple|Ini|Abstract))|Dispatcher|Plugin_Abstract|Exception|View_(Simple|Interface)|Loader|A(ction_Abstract|pplication))|r_(Server(_Exception)?|C(oncurrent_Client|lient(_Exception)?)))|N(o(RewindIterator|rmalizer)|umberFormatter)|C(o(nd|untable|ll(ectable|ator))|URLFile|a(chingIterator|llbackFilterIterator))|T(hread(ed)?|okyoTyrant(Table|Iterator|Query)?|ra(nsliterator|versable))|I(n(tl(RuleBasedBreakIterator|BreakIterator|C(odePointBreakIterator|alendar)|TimeZone|Iterator|DateFormatter|PartsIterator)|validArgumentException|finiteIterator)|terator(Iterator|Aggregate)?|magick(Draw|Pixel(Iterator)?)?)|php_user_filter|Z(MQ(Socket|Context|Device|Poll)?|ipArchive)|O(CI-(Collection|Lob)|ut(erIterator|Of(RangeException|BoundsException))|verflowException)|D(irectory(Iterator)?|omainException|OM(XPath|N(ode(list)?|amedNodeMap)|C(haracterData|omment|dataSection)|Text|Implementation|Document(Fragment)?|ProcessingInstruction|E(ntityReference|lement)|Attr)|ate(Time(I(nterface|mmutable)|Zone)?|Interval|Period))|U(n(derflowException|expectedValueException)|Converter)|JsonSerializable|finfo|P(har(Data|FileInfo)?|ool|DO(Statement)?|arentIterator)|E(v(S(tat|ignal)|Ch(ild|eck)|Timer|I(o|dle)|ent(B(uffer(Event)?|ase)|SslContext|Http(Request|Connection)?|Config|DnsBase|Util|Listener)?|P(eriodic|repare)|Embed|Fork|Watcher|Loop)?|rrorException|xception|mptyIterator)|V(8Js(Exception)?|arnish(Stat|Log|Admin))|KTaglib_(MPEG_(File|AudioProperties)|Tag|ID3v2_(Tag|Frame|AttachedPictureFrame))|QuickHash(StringIntHash|Int(S(tringHash|et)|Hash))|F(il(terIterator|esystemIterator)|ANNConnection)|mysqli(_(stmt|driver|warning|result))?|W(orker|eak(Map|ref))|L(imitIterator|o(cale|gicException)|ua(Closure)?|engthException|apack)|A(ppendIterator|PCIterator|rray(Iterator|Object|Access)))\\b",
|
153
|
+
"name": "support.class.builtin.php"
|
154
|
+
}
|
155
|
+
]
|
156
|
+
},
|
157
|
+
"class-name": {
|
158
|
+
"patterns": [
|
159
|
+
{
|
160
|
+
"begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
|
161
|
+
"end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
|
162
|
+
"endCaptures": {
|
163
|
+
"1": {
|
164
|
+
"name": "support.class.php"
|
165
|
+
}
|
166
|
+
},
|
167
|
+
"patterns": [
|
168
|
+
{
|
169
|
+
"include": "#namespace"
|
170
|
+
}
|
171
|
+
]
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"include": "#class-builtin"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"begin": "(?=[\\\\a-zA-Z_])",
|
178
|
+
"end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
|
179
|
+
"endCaptures": {
|
180
|
+
"1": {
|
181
|
+
"name": "support.class.php"
|
182
|
+
}
|
183
|
+
},
|
184
|
+
"patterns": [
|
185
|
+
{
|
186
|
+
"include": "#namespace"
|
187
|
+
}
|
188
|
+
]
|
189
|
+
}
|
190
|
+
]
|
191
|
+
},
|
192
|
+
"comments": {
|
193
|
+
"patterns": [
|
194
|
+
{
|
195
|
+
"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
|
+
"end": "\\*/",
|
203
|
+
"name": "comment.block.documentation.phpdoc.php",
|
204
|
+
"patterns": [
|
205
|
+
{
|
206
|
+
"include": "#php_doc"
|
207
|
+
}
|
208
|
+
]
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"begin": "/\\*",
|
212
|
+
"captures": {
|
213
|
+
"0": {
|
214
|
+
"name": "punctuation.definition.comment.php"
|
215
|
+
}
|
216
|
+
},
|
217
|
+
"end": "\\*/",
|
218
|
+
"name": "comment.block.php"
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"begin": "(^[ \\t]+)?(?=//)",
|
222
|
+
"beginCaptures": {
|
223
|
+
"1": {
|
224
|
+
"name": "punctuation.whitespace.comment.leading.php"
|
225
|
+
}
|
226
|
+
},
|
227
|
+
"end": "(?!\\G)",
|
228
|
+
"patterns": [
|
229
|
+
{
|
230
|
+
"begin": "//",
|
231
|
+
"beginCaptures": {
|
232
|
+
"0": {
|
233
|
+
"name": "punctuation.definition.comment.php"
|
234
|
+
}
|
235
|
+
},
|
236
|
+
"end": "\\n|(?=\\?>)",
|
237
|
+
"name": "comment.line.double-slash.php"
|
238
|
+
}
|
239
|
+
]
|
240
|
+
},
|
241
|
+
{
|
242
|
+
"begin": "(^[ \\t]+)?(?=#)",
|
243
|
+
"beginCaptures": {
|
244
|
+
"1": {
|
245
|
+
"name": "punctuation.whitespace.comment.leading.php"
|
246
|
+
}
|
247
|
+
},
|
248
|
+
"end": "(?!\\G)",
|
249
|
+
"patterns": [
|
250
|
+
{
|
251
|
+
"begin": "#",
|
252
|
+
"beginCaptures": {
|
253
|
+
"0": {
|
254
|
+
"name": "punctuation.definition.comment.php"
|
255
|
+
}
|
256
|
+
},
|
257
|
+
"end": "\\n|(?=\\?>)",
|
258
|
+
"name": "comment.line.number-sign.php"
|
259
|
+
}
|
260
|
+
]
|
261
|
+
}
|
262
|
+
]
|
263
|
+
},
|
264
|
+
"constants": {
|
265
|
+
"patterns": [
|
266
|
+
{
|
267
|
+
"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
|
+
"end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
|
269
|
+
"endCaptures": {
|
270
|
+
"1": {
|
271
|
+
"name": "constant.other.php"
|
272
|
+
}
|
273
|
+
},
|
274
|
+
"patterns": [
|
275
|
+
{
|
276
|
+
"include": "#namespace"
|
277
|
+
}
|
278
|
+
]
|
279
|
+
},
|
280
|
+
{
|
281
|
+
"begin": "(?=\\\\?[a-zA-Z_\\x{7f}-\\x{ff}])",
|
282
|
+
"end": "(?=[^\\\\a-zA-Z_\\x{7f}-\\x{ff}])",
|
283
|
+
"patterns": [
|
284
|
+
{
|
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"
|
287
|
+
},
|
288
|
+
{
|
289
|
+
"captures": {
|
290
|
+
"1": {
|
291
|
+
"name": "punctuation.separator.inheritance.php"
|
292
|
+
}
|
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"
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"captures": {
|
299
|
+
"1": {
|
300
|
+
"name": "punctuation.separator.inheritance.php"
|
301
|
+
}
|
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"
|
305
|
+
},
|
306
|
+
{
|
307
|
+
"captures": {
|
308
|
+
"1": {
|
309
|
+
"name": "punctuation.separator.inheritance.php"
|
310
|
+
}
|
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"
|
314
|
+
},
|
315
|
+
{
|
316
|
+
"captures": {
|
317
|
+
"1": {
|
318
|
+
"name": "punctuation.separator.inheritance.php"
|
319
|
+
}
|
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"
|
323
|
+
},
|
324
|
+
{
|
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"
|
328
|
+
}
|
329
|
+
]
|
330
|
+
}
|
331
|
+
]
|
332
|
+
},
|
333
|
+
"function-arguments": {
|
334
|
+
"patterns": [
|
335
|
+
{
|
336
|
+
"include": "#comments"
|
337
|
+
},
|
338
|
+
{
|
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",
|
340
|
+
"beginCaptures": {
|
341
|
+
"1": {
|
342
|
+
"name": "storage.type.php"
|
343
|
+
},
|
344
|
+
"2": {
|
345
|
+
"name": "storage.modifier.reference.php"
|
346
|
+
},
|
347
|
+
"3": {
|
348
|
+
"name": "variable.other.php"
|
349
|
+
},
|
350
|
+
"4": {
|
351
|
+
"name": "punctuation.definition.variable.php"
|
352
|
+
},
|
353
|
+
"5": {
|
354
|
+
"name": "keyword.operator.assignment.php"
|
355
|
+
},
|
356
|
+
"6": {
|
357
|
+
"name": "support.function.construct.php"
|
358
|
+
},
|
359
|
+
"7": {
|
360
|
+
"name": "punctuation.definition.array.begin.php"
|
361
|
+
}
|
362
|
+
},
|
363
|
+
"contentName": "meta.array.php",
|
364
|
+
"end": "\\)",
|
365
|
+
"endCaptures": {
|
366
|
+
"0": {
|
367
|
+
"name": "punctuation.definition.array.end.php"
|
368
|
+
}
|
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
|
+
]
|
382
|
+
},
|
383
|
+
{
|
384
|
+
"captures": {
|
385
|
+
"1": {
|
386
|
+
"name": "storage.type.php"
|
387
|
+
},
|
388
|
+
"2": {
|
389
|
+
"name": "storage.modifier.reference.php"
|
390
|
+
},
|
391
|
+
"3": {
|
392
|
+
"name": "variable.other.php"
|
393
|
+
},
|
394
|
+
"4": {
|
395
|
+
"name": "punctuation.definition.variable.php"
|
396
|
+
},
|
397
|
+
"5": {
|
398
|
+
"name": "keyword.operator.assignment.php"
|
399
|
+
},
|
400
|
+
"6": {
|
401
|
+
"name": "constant.language.php"
|
402
|
+
},
|
403
|
+
"7": {
|
404
|
+
"name": "punctuation.section.array.begin.php"
|
405
|
+
},
|
406
|
+
"8": {
|
407
|
+
"name": "punctuation.section.array.end.php"
|
408
|
+
},
|
409
|
+
"9": {
|
410
|
+
"name": "invalid.illegal.non-null-typehinted.php"
|
411
|
+
}
|
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"
|
415
|
+
},
|
416
|
+
{
|
417
|
+
"begin": "(?i)(?=[a-z_0-9\\\\]*[a-z_][a-z_0-9]*\\s*&?\\s*\\$)",
|
418
|
+
"end": "(?=,|\\)|/[/*]|\\#|$)",
|
419
|
+
"name": "meta.function.argument.typehinted.php",
|
420
|
+
"patterns": [
|
421
|
+
{
|
422
|
+
"include": "#class-name"
|
423
|
+
},
|
424
|
+
{
|
425
|
+
"captures": {
|
426
|
+
"1": {
|
427
|
+
"name": "support.class.php"
|
428
|
+
},
|
429
|
+
"2": {
|
430
|
+
"name": "storage.modifier.reference.php"
|
431
|
+
},
|
432
|
+
"3": {
|
433
|
+
"name": "variable.other.php"
|
434
|
+
},
|
435
|
+
"4": {
|
436
|
+
"name": "punctuation.definition.variable.php"
|
437
|
+
},
|
438
|
+
"5": {
|
439
|
+
"name": "keyword.operator.assignment.php"
|
440
|
+
},
|
441
|
+
"6": {
|
442
|
+
"name": "constant.language.php"
|
443
|
+
},
|
444
|
+
"7": {
|
445
|
+
"name": "invalid.illegal.non-null-typehinted.php"
|
446
|
+
}
|
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 "
|
449
|
+
}
|
450
|
+
]
|
451
|
+
},
|
452
|
+
{
|
453
|
+
"captures": {
|
454
|
+
"1": {
|
455
|
+
"name": "storage.modifier.reference.php"
|
456
|
+
},
|
457
|
+
"2": {
|
458
|
+
"name": "variable.other.php"
|
459
|
+
},
|
460
|
+
"3": {
|
461
|
+
"name": "punctuation.definition.variable.php"
|
462
|
+
}
|
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"
|
466
|
+
},
|
467
|
+
{
|
468
|
+
"begin": "(?:\\s*(&))?\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(?:\\s*(=)\\s*)\\s*",
|
469
|
+
"captures": {
|
470
|
+
"1": {
|
471
|
+
"name": "storage.modifier.reference.php"
|
472
|
+
},
|
473
|
+
"2": {
|
474
|
+
"name": "variable.other.php"
|
475
|
+
},
|
476
|
+
"3": {
|
477
|
+
"name": "punctuation.definition.variable.php"
|
478
|
+
},
|
479
|
+
"4": {
|
480
|
+
"name": "keyword.operator.assignment.php"
|
481
|
+
}
|
482
|
+
},
|
483
|
+
"end": "(?=,|\\)|/[/*]|\\#)",
|
484
|
+
"name": "meta.function.argument.default.php",
|
485
|
+
"patterns": [
|
486
|
+
{
|
487
|
+
"include": "#parameter-default-types"
|
488
|
+
}
|
489
|
+
]
|
490
|
+
}
|
491
|
+
]
|
492
|
+
},
|
493
|
+
"function-call": {
|
494
|
+
"patterns": [
|
495
|
+
{
|
496
|
+
"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
|
+
"end": "(?=\\s*\\()",
|
499
|
+
"patterns": [
|
500
|
+
{
|
501
|
+
"include": "#user-function-call"
|
502
|
+
}
|
503
|
+
]
|
504
|
+
},
|
505
|
+
{
|
506
|
+
"match": "(?i)\\b(print|echo)\\b",
|
507
|
+
"name": "support.function.construct.php"
|
508
|
+
},
|
509
|
+
{
|
510
|
+
"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
|
+
"end": "(?=\\s*\\()",
|
518
|
+
"patterns": [
|
519
|
+
{
|
520
|
+
"match": "(?i)\\b(isset|unset|e(val|mpty)|list)(?=\\s*\\()",
|
521
|
+
"name": "support.function.construct.php"
|
522
|
+
},
|
523
|
+
{
|
524
|
+
"include": "#support"
|
525
|
+
},
|
526
|
+
{
|
527
|
+
"include": "#user-function-call"
|
528
|
+
}
|
529
|
+
]
|
530
|
+
}
|
531
|
+
]
|
532
|
+
},
|
533
|
+
"heredoc": {
|
534
|
+
"patterns": [
|
535
|
+
{
|
536
|
+
"begin": "(?=<<<\\s*(\"?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\1)\\s*$)",
|
537
|
+
"end": "(?!\\G)",
|
538
|
+
"injections": {
|
539
|
+
"*": {
|
540
|
+
"patterns": [
|
541
|
+
{
|
542
|
+
"include": "#interpolation"
|
543
|
+
}
|
544
|
+
]
|
545
|
+
}
|
546
|
+
},
|
547
|
+
"name": "string.unquoted.heredoc.php",
|
548
|
+
"patterns": [
|
549
|
+
{
|
550
|
+
"include": "#heredoc_interior"
|
551
|
+
}
|
552
|
+
]
|
553
|
+
},
|
554
|
+
{
|
555
|
+
"begin": "(?=<<<\\s*('?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\1)\\s*$)",
|
556
|
+
"end": "(?!\\G)",
|
557
|
+
"name": "string.unquoted.heredoc.nowdoc.php",
|
558
|
+
"patterns": [
|
559
|
+
{
|
560
|
+
"include": "#heredoc_interior"
|
561
|
+
}
|
562
|
+
]
|
563
|
+
}
|
564
|
+
],
|
565
|
+
"repository": {
|
566
|
+
"heredoc_interior": {
|
567
|
+
"patterns": [
|
568
|
+
{
|
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
|
+
},
|
581
|
+
"contentName": "text.html",
|
582
|
+
"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
|
+
"patterns": [
|
593
|
+
{
|
594
|
+
"include": "text.html.basic"
|
595
|
+
}
|
596
|
+
]
|
597
|
+
},
|
598
|
+
{
|
599
|
+
"begin": "(<<<)\\s*(['\"]?)(XML)(\\2)\\s*$\\n?",
|
600
|
+
"beginCaptures": {
|
601
|
+
"0": {
|
602
|
+
"name": "punctuation.section.embedded.begin.php"
|
603
|
+
},
|
604
|
+
"1": {
|
605
|
+
"name": "punctuation.definition.string.php"
|
606
|
+
},
|
607
|
+
"3": {
|
608
|
+
"name": "keyword.operator.heredoc.php"
|
609
|
+
}
|
610
|
+
},
|
611
|
+
"contentName": "text.xml",
|
612
|
+
"end": "^(\\3)\\b",
|
613
|
+
"endCaptures": {
|
614
|
+
"0": {
|
615
|
+
"name": "punctuation.section.embedded.end.php"
|
616
|
+
},
|
617
|
+
"1": {
|
618
|
+
"name": "keyword.operator.heredoc.php"
|
619
|
+
}
|
620
|
+
},
|
621
|
+
"name": "meta.embedded.xml",
|
622
|
+
"patterns": [
|
623
|
+
{
|
624
|
+
"include": "text.xml"
|
625
|
+
}
|
626
|
+
]
|
627
|
+
},
|
628
|
+
{
|
629
|
+
"begin": "(<<<)\\s*(['\"]?)(SQL)(\\2)\\s*$\\n?",
|
630
|
+
"beginCaptures": {
|
631
|
+
"0": {
|
632
|
+
"name": "punctuation.section.embedded.begin.php"
|
633
|
+
},
|
634
|
+
"1": {
|
635
|
+
"name": "punctuation.definition.string.php"
|
636
|
+
},
|
637
|
+
"3": {
|
638
|
+
"name": "keyword.operator.heredoc.php"
|
639
|
+
}
|
640
|
+
},
|
641
|
+
"contentName": "source.sql",
|
642
|
+
"end": "^(\\3)\\b",
|
643
|
+
"endCaptures": {
|
644
|
+
"0": {
|
645
|
+
"name": "punctuation.section.embedded.end.php"
|
646
|
+
},
|
647
|
+
"1": {
|
648
|
+
"name": "keyword.operator.heredoc.php"
|
649
|
+
}
|
650
|
+
},
|
651
|
+
"name": "meta.embedded.sql",
|
652
|
+
"patterns": [
|
653
|
+
{
|
654
|
+
"include": "source.sql"
|
655
|
+
}
|
656
|
+
]
|
657
|
+
},
|
658
|
+
{
|
659
|
+
"begin": "(<<<)\\s*(['\"]?)(JAVASCRIPT)(\\2)\\s*$\\n?",
|
660
|
+
"beginCaptures": {
|
661
|
+
"0": {
|
662
|
+
"name": "punctuation.section.embedded.begin.php"
|
663
|
+
},
|
664
|
+
"1": {
|
665
|
+
"name": "punctuation.definition.string.php"
|
666
|
+
},
|
667
|
+
"3": {
|
668
|
+
"name": "keyword.operator.heredoc.php"
|
669
|
+
}
|
670
|
+
},
|
671
|
+
"contentName": "source.js",
|
672
|
+
"end": "^(\\3)\\b",
|
673
|
+
"endCaptures": {
|
674
|
+
"0": {
|
675
|
+
"name": "punctuation.section.embedded.end.php"
|
676
|
+
},
|
677
|
+
"1": {
|
678
|
+
"name": "keyword.operator.heredoc.php"
|
679
|
+
}
|
680
|
+
},
|
681
|
+
"name": "meta.embedded.js",
|
682
|
+
"patterns": [
|
683
|
+
{
|
684
|
+
"include": "source.js"
|
685
|
+
}
|
686
|
+
]
|
687
|
+
},
|
688
|
+
{
|
689
|
+
"begin": "(<<<)\\s*(['\"]?)(JSON)(\\2)\\s*$\\n?",
|
690
|
+
"beginCaptures": {
|
691
|
+
"0": {
|
692
|
+
"name": "punctuation.section.embedded.begin.php"
|
693
|
+
},
|
694
|
+
"1": {
|
695
|
+
"name": "punctuation.definition.string.php"
|
696
|
+
},
|
697
|
+
"3": {
|
698
|
+
"name": "keyword.operator.heredoc.php"
|
699
|
+
}
|
700
|
+
},
|
701
|
+
"contentName": "source.json",
|
702
|
+
"end": "^(\\3)\\b",
|
703
|
+
"endCaptures": {
|
704
|
+
"0": {
|
705
|
+
"name": "punctuation.section.embedded.end.php"
|
706
|
+
},
|
707
|
+
"1": {
|
708
|
+
"name": "keyword.operator.heredoc.php"
|
709
|
+
}
|
710
|
+
},
|
711
|
+
"name": "meta.embedded.json",
|
712
|
+
"patterns": [
|
713
|
+
{
|
714
|
+
"include": "source.json"
|
715
|
+
}
|
716
|
+
]
|
717
|
+
},
|
718
|
+
{
|
719
|
+
"begin": "(<<<)\\s*(['\"]?)(CSS)(\\2)\\s*$\\n?",
|
720
|
+
"beginCaptures": {
|
721
|
+
"0": {
|
722
|
+
"name": "punctuation.section.embedded.begin.php"
|
723
|
+
},
|
724
|
+
"1": {
|
725
|
+
"name": "punctuation.definition.string.php"
|
726
|
+
},
|
727
|
+
"3": {
|
728
|
+
"name": "keyword.operator.heredoc.php"
|
729
|
+
}
|
730
|
+
},
|
731
|
+
"contentName": "source.css",
|
732
|
+
"end": "^(\\3)\\b",
|
733
|
+
"endCaptures": {
|
734
|
+
"0": {
|
735
|
+
"name": "punctuation.section.embedded.end.php"
|
736
|
+
},
|
737
|
+
"1": {
|
738
|
+
"name": "keyword.operator.heredoc.php"
|
739
|
+
}
|
740
|
+
},
|
741
|
+
"name": "meta.embedded.css",
|
742
|
+
"patterns": [
|
743
|
+
{
|
744
|
+
"include": "source.css"
|
745
|
+
}
|
746
|
+
]
|
747
|
+
},
|
748
|
+
{
|
749
|
+
"begin": "(<<<)\\s*(['\"]?)(REGEX)(\\2)\\s*$\\n?",
|
750
|
+
"beginCaptures": {
|
751
|
+
"0": {
|
752
|
+
"name": "punctuation.section.embedded.begin.php"
|
753
|
+
},
|
754
|
+
"1": {
|
755
|
+
"name": "punctuation.definition.string.php"
|
756
|
+
},
|
757
|
+
"3": {
|
758
|
+
"name": "keyword.operator.heredoc.php"
|
759
|
+
}
|
760
|
+
},
|
761
|
+
"contentName": "string.regexp.heredoc.php",
|
762
|
+
"end": "^(\\3)\\b",
|
763
|
+
"endCaptures": {
|
764
|
+
"0": {
|
765
|
+
"name": "punctuation.section.embedded.end.php"
|
766
|
+
},
|
767
|
+
"1": {
|
768
|
+
"name": "keyword.operator.heredoc.php"
|
769
|
+
}
|
770
|
+
},
|
771
|
+
"patterns": [
|
772
|
+
{
|
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"
|
776
|
+
},
|
777
|
+
{
|
778
|
+
"captures": {
|
779
|
+
"1": {
|
780
|
+
"name": "punctuation.definition.arbitrary-repitition.php"
|
781
|
+
},
|
782
|
+
"3": {
|
783
|
+
"name": "punctuation.definition.arbitrary-repitition.php"
|
784
|
+
}
|
785
|
+
},
|
786
|
+
"match": "(\\{)\\d+(,\\d+)?(\\})",
|
787
|
+
"name": "string.regexp.arbitrary-repitition.php"
|
788
|
+
},
|
789
|
+
{
|
790
|
+
"begin": "\\[(?:\\^?\\])?",
|
791
|
+
"captures": {
|
792
|
+
"0": {
|
793
|
+
"name": "punctuation.definition.character-class.php"
|
794
|
+
}
|
795
|
+
},
|
796
|
+
"end": "\\]",
|
797
|
+
"name": "string.regexp.character-class.php",
|
798
|
+
"patterns": [
|
799
|
+
{
|
800
|
+
"match": "\\\\[\\\\'\\[\\]]",
|
801
|
+
"name": "constant.character.escape.php"
|
802
|
+
}
|
803
|
+
]
|
804
|
+
},
|
805
|
+
{
|
806
|
+
"match": "[$^+*]",
|
807
|
+
"name": "keyword.operator.regexp.php"
|
808
|
+
},
|
809
|
+
{
|
810
|
+
"begin": "(?<=^|\\s)(#)\\s(?=[[a-zA-Z0-9,. \\t?!-][^\\x{00}-\\x{7F}]]*$)",
|
811
|
+
"beginCaptures": {
|
812
|
+
"1": {
|
813
|
+
"name": "punctuation.definition.comment.php"
|
814
|
+
}
|
815
|
+
},
|
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
|
+
"endCaptures": {
|
819
|
+
"0": {
|
820
|
+
"name": "punctuation.definition.comment.php"
|
821
|
+
}
|
822
|
+
},
|
823
|
+
"name": "comment.line.number-sign.php"
|
824
|
+
}
|
825
|
+
]
|
826
|
+
},
|
827
|
+
{
|
828
|
+
"begin": "(<<<)\\s*(['\"]?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\2)",
|
829
|
+
"beginCaptures": {
|
830
|
+
"1": {
|
831
|
+
"name": "punctuation.definition.string.php"
|
832
|
+
},
|
833
|
+
"3": {
|
834
|
+
"name": "keyword.operator.heredoc.php"
|
835
|
+
}
|
836
|
+
},
|
837
|
+
"end": "^(\\3)\\b",
|
838
|
+
"endCaptures": {
|
839
|
+
"1": {
|
840
|
+
"name": "keyword.operator.heredoc.php"
|
841
|
+
}
|
842
|
+
}
|
843
|
+
}
|
844
|
+
]
|
845
|
+
}
|
846
|
+
}
|
847
|
+
},
|
848
|
+
"instantiation": {
|
849
|
+
"begin": "(?i)(new)\\s+",
|
850
|
+
"beginCaptures": {
|
851
|
+
"1": {
|
852
|
+
"name": "keyword.other.new.php"
|
853
|
+
}
|
854
|
+
},
|
855
|
+
"end": "(?i)(?=[^$a-z0-9_\\\\])",
|
856
|
+
"patterns": [
|
857
|
+
{
|
858
|
+
"match": "(parent|static|self)(?=[^a-z0-9_])",
|
859
|
+
"name": "storage.type.php"
|
860
|
+
},
|
861
|
+
{
|
862
|
+
"include": "#class-name"
|
863
|
+
},
|
864
|
+
{
|
865
|
+
"include": "#variable-name"
|
866
|
+
}
|
867
|
+
]
|
868
|
+
},
|
869
|
+
"interpolation": {
|
870
|
+
"comment": "http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing",
|
871
|
+
"patterns": [
|
872
|
+
{
|
873
|
+
"match": "\\\\[0-7]{1,3}",
|
874
|
+
"name": "constant.numeric.octal.php"
|
875
|
+
},
|
876
|
+
{
|
877
|
+
"match": "\\\\x[0-9A-Fa-f]{1,2}",
|
878
|
+
"name": "constant.numeric.hex.php"
|
879
|
+
},
|
880
|
+
{
|
881
|
+
"match": "\\\\[enrt\\\\\\$\\\"]",
|
882
|
+
"name": "constant.character.escape.php"
|
883
|
+
},
|
884
|
+
{
|
885
|
+
"begin": "(\\{)(?=\\$.*?\\})",
|
886
|
+
"beginCaptures": {
|
887
|
+
"1": {
|
888
|
+
"name": "punctuation.definition.variable.php"
|
889
|
+
}
|
890
|
+
},
|
891
|
+
"end": "(\\})",
|
892
|
+
"endCaptures": {
|
893
|
+
"1": {
|
894
|
+
"name": "punctuation.definition.variable.php"
|
895
|
+
}
|
896
|
+
},
|
897
|
+
"patterns": [
|
898
|
+
{
|
899
|
+
"include": "#language"
|
900
|
+
}
|
901
|
+
]
|
902
|
+
},
|
903
|
+
{
|
904
|
+
"include": "#variable-name"
|
905
|
+
}
|
906
|
+
]
|
907
|
+
},
|
908
|
+
"invoke-call": {
|
909
|
+
"captures": {
|
910
|
+
"1": {
|
911
|
+
"name": "punctuation.definition.variable.php"
|
912
|
+
},
|
913
|
+
"2": {
|
914
|
+
"name": "variable.other.php"
|
915
|
+
}
|
916
|
+
},
|
917
|
+
"match": "(?i)(\\$+)([a-z_][a-z_0-9]*)(?=\\s*\\()",
|
918
|
+
"name": "meta.function-call.invoke.php"
|
919
|
+
},
|
920
|
+
"language": {
|
921
|
+
"patterns": [
|
922
|
+
{
|
923
|
+
"include": "#comments"
|
924
|
+
},
|
925
|
+
{
|
926
|
+
"match": "\\{",
|
927
|
+
"name": "punctuation.section.scope.begin.php"
|
928
|
+
},
|
929
|
+
{
|
930
|
+
"match": "\\}",
|
931
|
+
"name": "punctuation.section.scope.end.php"
|
932
|
+
},
|
933
|
+
{
|
934
|
+
"begin": "(?i)^\\s*(interface)\\s+([a-z0-9_]+)\\s*(extends)?\\s*",
|
935
|
+
"beginCaptures": {
|
936
|
+
"1": {
|
937
|
+
"name": "storage.type.interface.php"
|
938
|
+
},
|
939
|
+
"2": {
|
940
|
+
"name": "entity.name.type.interface.php"
|
941
|
+
},
|
942
|
+
"3": {
|
943
|
+
"name": "storage.modifier.extends.php"
|
944
|
+
}
|
945
|
+
},
|
946
|
+
"end": "((?:[a-zA-Z0-9_]+\\s*,\\s*)*)([a-zA-Z0-9_]+)?\\s*(?:(?=\\{)|$)",
|
947
|
+
"endCaptures": {
|
948
|
+
"1": {
|
949
|
+
"patterns": [
|
950
|
+
{
|
951
|
+
"match": "[a-zA-Z0-9_]+",
|
952
|
+
"name": "entity.other.inherited-class.php"
|
953
|
+
},
|
954
|
+
{
|
955
|
+
"match": ",",
|
956
|
+
"name": "punctuation.separator.classes.php"
|
957
|
+
}
|
958
|
+
]
|
959
|
+
},
|
960
|
+
"2": {
|
961
|
+
"name": "entity.other.inherited-class.php"
|
962
|
+
}
|
963
|
+
},
|
964
|
+
"name": "meta.interface.php",
|
965
|
+
"patterns": [
|
966
|
+
{
|
967
|
+
"include": "#namespace"
|
968
|
+
}
|
969
|
+
]
|
970
|
+
},
|
971
|
+
{
|
972
|
+
"begin": "(?i)(?:^|(?<=<\\?php))\\s*(namespace)\\b\\s+(?=([a-z0-9_\\\\]+\\s*($|[;{]|(\\/[\\/*])))|$)",
|
973
|
+
"beginCaptures": {
|
974
|
+
"1": {
|
975
|
+
"name": "keyword.other.namespace.php"
|
976
|
+
}
|
977
|
+
},
|
978
|
+
"contentName": "entity.name.type.namespace.php",
|
979
|
+
"end": "(?i)(?=\\s*$|[^a-z0-9_\\\\])",
|
980
|
+
"name": "meta.namespace.php",
|
981
|
+
"patterns": [
|
982
|
+
{
|
983
|
+
"match": "\\\\",
|
984
|
+
"name": "punctuation.separator.inheritance.php"
|
985
|
+
}
|
986
|
+
]
|
987
|
+
},
|
988
|
+
{
|
989
|
+
"begin": "(?i)\\s*\\b(use)\\s+(?:((const)|(function))\\s+)?",
|
990
|
+
"beginCaptures": {
|
991
|
+
"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"
|
999
|
+
}
|
1000
|
+
},
|
1001
|
+
"end": "(?=;|(?:^\\s*$))",
|
1002
|
+
"name": "meta.use.php",
|
1003
|
+
"patterns": [
|
1004
|
+
{
|
1005
|
+
"include": "#comments"
|
1006
|
+
},
|
1007
|
+
{
|
1008
|
+
"begin": "(?i)\\s*(?=[a-z_0-9\\\\])",
|
1009
|
+
"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
|
+
"patterns": [
|
1019
|
+
{
|
1020
|
+
"include": "#class-builtin"
|
1021
|
+
},
|
1022
|
+
{
|
1023
|
+
"begin": "(?i)\\s*(?=[\\\\a-z_0-9])",
|
1024
|
+
"end": "$|(?=[\\s,;])",
|
1025
|
+
"name": "support.other.namespace.use.php",
|
1026
|
+
"patterns": [
|
1027
|
+
{
|
1028
|
+
"match": "\\\\",
|
1029
|
+
"name": "punctuation.separator.inheritance.php"
|
1030
|
+
}
|
1031
|
+
]
|
1032
|
+
}
|
1033
|
+
]
|
1034
|
+
},
|
1035
|
+
{
|
1036
|
+
"match": "\\s*,\\s*"
|
1037
|
+
}
|
1038
|
+
]
|
1039
|
+
},
|
1040
|
+
{
|
1041
|
+
"begin": "(?i)^\\s*(trait)\\s+([a-zA-Z0-9_]+)",
|
1042
|
+
"beginCaptures": {
|
1043
|
+
"1": {
|
1044
|
+
"name": "storage.type.trait.php"
|
1045
|
+
},
|
1046
|
+
"2": {
|
1047
|
+
"name": "entity.name.type.trait.php"
|
1048
|
+
}
|
1049
|
+
},
|
1050
|
+
"end": "(?=\\{)",
|
1051
|
+
"name": "meta.trait.php"
|
1052
|
+
},
|
1053
|
+
{
|
1054
|
+
"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
|
+
"end": "(?=[;{])",
|
1067
|
+
"name": "meta.class.php",
|
1068
|
+
"patterns": [
|
1069
|
+
{
|
1070
|
+
"include": "#comments"
|
1071
|
+
},
|
1072
|
+
{
|
1073
|
+
"begin": "(?i)(extends)\\s+",
|
1074
|
+
"beginCaptures": {
|
1075
|
+
"1": {
|
1076
|
+
"name": "storage.modifier.extends.php"
|
1077
|
+
}
|
1078
|
+
},
|
1079
|
+
"contentName": "meta.other.inherited-class.php",
|
1080
|
+
"end": "(?i)(?=[^a-z_0-9\\\\])",
|
1081
|
+
"patterns": [
|
1082
|
+
{
|
1083
|
+
"begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
|
1084
|
+
"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
|
+
"patterns": [
|
1091
|
+
{
|
1092
|
+
"include": "#namespace"
|
1093
|
+
}
|
1094
|
+
]
|
1095
|
+
},
|
1096
|
+
{
|
1097
|
+
"include": "#class-builtin"
|
1098
|
+
},
|
1099
|
+
{
|
1100
|
+
"include": "#namespace"
|
1101
|
+
},
|
1102
|
+
{
|
1103
|
+
"match": "(?i)[a-z_][a-z_0-9]*",
|
1104
|
+
"name": "entity.other.inherited-class.php"
|
1105
|
+
}
|
1106
|
+
]
|
1107
|
+
},
|
1108
|
+
{
|
1109
|
+
"begin": "(?i)(implements)\\s+",
|
1110
|
+
"beginCaptures": {
|
1111
|
+
"1": {
|
1112
|
+
"name": "storage.modifier.implements.php"
|
1113
|
+
}
|
1114
|
+
},
|
1115
|
+
"end": "(?i)(?=[;{])",
|
1116
|
+
"patterns": [
|
1117
|
+
{
|
1118
|
+
"include": "#comments"
|
1119
|
+
},
|
1120
|
+
{
|
1121
|
+
"begin": "(?i)(?=[a-z0-9_\\\\]+)",
|
1122
|
+
"contentName": "meta.other.inherited-class.php",
|
1123
|
+
"end": "(?i)(?:\\s*(?:,|(?=[^a-z0-9_\\\\\\s]))\\s*)",
|
1124
|
+
"patterns": [
|
1125
|
+
{
|
1126
|
+
"begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
|
1127
|
+
"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
|
+
"patterns": [
|
1134
|
+
{
|
1135
|
+
"include": "#namespace"
|
1136
|
+
}
|
1137
|
+
]
|
1138
|
+
},
|
1139
|
+
{
|
1140
|
+
"include": "#class-builtin"
|
1141
|
+
},
|
1142
|
+
{
|
1143
|
+
"include": "#namespace"
|
1144
|
+
},
|
1145
|
+
{
|
1146
|
+
"match": "(?i)[a-z_][a-z_0-9]*",
|
1147
|
+
"name": "entity.other.inherited-class.php"
|
1148
|
+
}
|
1149
|
+
]
|
1150
|
+
}
|
1151
|
+
]
|
1152
|
+
}
|
1153
|
+
]
|
1154
|
+
},
|
1155
|
+
{
|
1156
|
+
"captures": {
|
1157
|
+
"1": {
|
1158
|
+
"name": "keyword.control.php"
|
1159
|
+
}
|
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"
|
1162
|
+
},
|
1163
|
+
{
|
1164
|
+
"begin": "(?i)\\b((?:require|include)(?:_once)?)\\b\\s*",
|
1165
|
+
"beginCaptures": {
|
1166
|
+
"1": {
|
1167
|
+
"name": "keyword.control.import.include.php"
|
1168
|
+
}
|
1169
|
+
},
|
1170
|
+
"end": "(?=\\s|;|$)",
|
1171
|
+
"name": "meta.include.php",
|
1172
|
+
"patterns": [
|
1173
|
+
{
|
1174
|
+
"include": "#language"
|
1175
|
+
}
|
1176
|
+
]
|
1177
|
+
},
|
1178
|
+
{
|
1179
|
+
"begin": "\\b(catch)\\b\\s*\\(\\s*",
|
1180
|
+
"beginCaptures": {
|
1181
|
+
"1": {
|
1182
|
+
"name": "keyword.control.exception.catch.php"
|
1183
|
+
}
|
1184
|
+
},
|
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
|
+
"endCaptures": {
|
1187
|
+
"1": {
|
1188
|
+
"name": "support.class.exception.php"
|
1189
|
+
},
|
1190
|
+
"2": {
|
1191
|
+
"name": "variable.other.php"
|
1192
|
+
},
|
1193
|
+
"3": {
|
1194
|
+
"name": "punctuation.definition.variable.php"
|
1195
|
+
}
|
1196
|
+
},
|
1197
|
+
"name": "meta.catch.php",
|
1198
|
+
"patterns": [
|
1199
|
+
{
|
1200
|
+
"include": "#namespace"
|
1201
|
+
}
|
1202
|
+
]
|
1203
|
+
},
|
1204
|
+
{
|
1205
|
+
"match": "\\b(catch|try|throw|exception|finally)\\b",
|
1206
|
+
"name": "keyword.control.exception.php"
|
1207
|
+
},
|
1208
|
+
{
|
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
|
+
"name": "meta.function.closure.php",
|
1220
|
+
"patterns": [
|
1221
|
+
{
|
1222
|
+
"begin": "(\\()",
|
1223
|
+
"beginCaptures": {
|
1224
|
+
"1": {
|
1225
|
+
"name": "punctuation.definition.parameters.begin.php"
|
1226
|
+
}
|
1227
|
+
},
|
1228
|
+
"contentName": "meta.function.arguments.php",
|
1229
|
+
"end": "(\\))",
|
1230
|
+
"endCaptures": {
|
1231
|
+
"1": {
|
1232
|
+
"name": "punctuation.definition.parameters.end.php"
|
1233
|
+
}
|
1234
|
+
},
|
1235
|
+
"patterns": [
|
1236
|
+
{
|
1237
|
+
"include": "#function-arguments"
|
1238
|
+
}
|
1239
|
+
]
|
1240
|
+
},
|
1241
|
+
{
|
1242
|
+
"begin": "(?i)(use)\\s*(\\()",
|
1243
|
+
"beginCaptures": {
|
1244
|
+
"1": {
|
1245
|
+
"name": "keyword.other.function.use.php"
|
1246
|
+
},
|
1247
|
+
"2": {
|
1248
|
+
"name": "punctuation.definition.parameters.begin.php"
|
1249
|
+
}
|
1250
|
+
},
|
1251
|
+
"end": "(\\))",
|
1252
|
+
"endCaptures": {
|
1253
|
+
"1": {
|
1254
|
+
"name": "punctuation.definition.parameters.end.php"
|
1255
|
+
}
|
1256
|
+
},
|
1257
|
+
"patterns": [
|
1258
|
+
{
|
1259
|
+
"captures": {
|
1260
|
+
"1": {
|
1261
|
+
"name": "storage.modifier.reference.php"
|
1262
|
+
},
|
1263
|
+
"2": {
|
1264
|
+
"name": "variable.other.php"
|
1265
|
+
},
|
1266
|
+
"3": {
|
1267
|
+
"name": "punctuation.definition.variable.php"
|
1268
|
+
}
|
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"
|
1272
|
+
}
|
1273
|
+
]
|
1274
|
+
}
|
1275
|
+
]
|
1276
|
+
},
|
1277
|
+
{
|
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 (\\()",
|
1279
|
+
"beginCaptures": {
|
1280
|
+
"1": {
|
1281
|
+
"patterns": [
|
1282
|
+
{
|
1283
|
+
"match": "final|abstract|public|private|protected|static",
|
1284
|
+
"name": "storage.modifier.php"
|
1285
|
+
}
|
1286
|
+
]
|
1287
|
+
},
|
1288
|
+
"2": {
|
1289
|
+
"name": "storage.type.function.php"
|
1290
|
+
},
|
1291
|
+
"3": {
|
1292
|
+
"name": "storage.modifier.reference.php"
|
1293
|
+
},
|
1294
|
+
"4": {
|
1295
|
+
"name": "support.function.magic.php"
|
1296
|
+
},
|
1297
|
+
"5": {
|
1298
|
+
"name": "entity.name.function.php"
|
1299
|
+
},
|
1300
|
+
"6": {
|
1301
|
+
"name": "punctuation.definition.parameters.begin.php"
|
1302
|
+
}
|
1303
|
+
},
|
1304
|
+
"contentName": "meta.function.arguments.php",
|
1305
|
+
"end": "(\\))",
|
1306
|
+
"endCaptures": {
|
1307
|
+
"1": {
|
1308
|
+
"name": "punctuation.definition.parameters.end.php"
|
1309
|
+
}
|
1310
|
+
},
|
1311
|
+
"name": "meta.function.php",
|
1312
|
+
"patterns": [
|
1313
|
+
{
|
1314
|
+
"include": "#function-arguments"
|
1315
|
+
}
|
1316
|
+
]
|
1317
|
+
},
|
1318
|
+
{
|
1319
|
+
"include": "#invoke-call"
|
1320
|
+
},
|
1321
|
+
{
|
1322
|
+
"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
|
+
"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)?",
|
1324
|
+
"endCaptures": {
|
1325
|
+
"1": {
|
1326
|
+
"name": "keyword.operator.class.php"
|
1327
|
+
},
|
1328
|
+
"2": {
|
1329
|
+
"name": "meta.function-call.static.php"
|
1330
|
+
},
|
1331
|
+
"3": {
|
1332
|
+
"name": "variable.other.class.php"
|
1333
|
+
},
|
1334
|
+
"4": {
|
1335
|
+
"name": "punctuation.definition.variable.php"
|
1336
|
+
},
|
1337
|
+
"5": {
|
1338
|
+
"name": "constant.other.class.php"
|
1339
|
+
}
|
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
|
+
]
|
1353
|
+
},
|
1354
|
+
{
|
1355
|
+
"include": "#variables"
|
1356
|
+
},
|
1357
|
+
{
|
1358
|
+
"include": "#strings"
|
1359
|
+
},
|
1360
|
+
{
|
1361
|
+
"captures": {
|
1362
|
+
"1": {
|
1363
|
+
"name": "support.function.construct.php"
|
1364
|
+
},
|
1365
|
+
"2": {
|
1366
|
+
"name": "punctuation.definition.array.begin.php"
|
1367
|
+
},
|
1368
|
+
"3": {
|
1369
|
+
"name": "punctuation.definition.array.end.php"
|
1370
|
+
}
|
1371
|
+
},
|
1372
|
+
"match": "(array)(\\()(\\))",
|
1373
|
+
"name": "meta.array.empty.php"
|
1374
|
+
},
|
1375
|
+
{
|
1376
|
+
"begin": "(array)(\\()",
|
1377
|
+
"beginCaptures": {
|
1378
|
+
"1": {
|
1379
|
+
"name": "support.function.construct.php"
|
1380
|
+
},
|
1381
|
+
"2": {
|
1382
|
+
"name": "punctuation.definition.array.begin.php"
|
1383
|
+
}
|
1384
|
+
},
|
1385
|
+
"end": "\\)",
|
1386
|
+
"endCaptures": {
|
1387
|
+
"0": {
|
1388
|
+
"name": "punctuation.definition.array.end.php"
|
1389
|
+
}
|
1390
|
+
},
|
1391
|
+
"name": "meta.array.php",
|
1392
|
+
"patterns": [
|
1393
|
+
{
|
1394
|
+
"include": "#language"
|
1395
|
+
}
|
1396
|
+
]
|
1397
|
+
},
|
1398
|
+
{
|
1399
|
+
"captures": {
|
1400
|
+
"1": {
|
1401
|
+
"name": "storage.type.php"
|
1402
|
+
}
|
1403
|
+
},
|
1404
|
+
"match": "(?i)\\s*\\(\\s*(array|real|double|float|int(eger)?|bool(ean)?|string|object|binary|unset)\\s*\\)"
|
1405
|
+
},
|
1406
|
+
{
|
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"
|
1409
|
+
},
|
1410
|
+
{
|
1411
|
+
"match": "(?i)\\b(global|abstract|const|extends|implements|final|p(r(ivate|otected)|ublic)|static)\\b",
|
1412
|
+
"name": "storage.modifier.php"
|
1413
|
+
},
|
1414
|
+
{
|
1415
|
+
"include": "#object"
|
1416
|
+
},
|
1417
|
+
{
|
1418
|
+
"match": ";",
|
1419
|
+
"name": "punctuation.terminator.expression.php"
|
1420
|
+
},
|
1421
|
+
{
|
1422
|
+
"include": "#heredoc"
|
1423
|
+
},
|
1424
|
+
{
|
1425
|
+
"match": "\\.=?",
|
1426
|
+
"name": "keyword.operator.string.php"
|
1427
|
+
},
|
1428
|
+
{
|
1429
|
+
"match": "=>",
|
1430
|
+
"name": "keyword.operator.key.php"
|
1431
|
+
},
|
1432
|
+
{
|
1433
|
+
"captures": {
|
1434
|
+
"1": {
|
1435
|
+
"name": "keyword.operator.assignment.php"
|
1436
|
+
},
|
1437
|
+
"2": {
|
1438
|
+
"name": "storage.modifier.reference.php"
|
1439
|
+
},
|
1440
|
+
"3": {
|
1441
|
+
"name": "storage.modifier.reference.php"
|
1442
|
+
}
|
1443
|
+
},
|
1444
|
+
"match": "(?:(\\=)(&))|(&(?=[$A-Za-z_]))"
|
1445
|
+
},
|
1446
|
+
{
|
1447
|
+
"match": "(@)",
|
1448
|
+
"name": "keyword.operator.error-control.php"
|
1449
|
+
},
|
1450
|
+
{
|
1451
|
+
"match": "(\\-\\-|\\+\\+)",
|
1452
|
+
"name": "keyword.operator.increment-decrement.php"
|
1453
|
+
},
|
1454
|
+
{
|
1455
|
+
"match": "(\\-|\\+|\\*|/|%)",
|
1456
|
+
"name": "keyword.operator.arithmetic.php"
|
1457
|
+
},
|
1458
|
+
{
|
1459
|
+
"match": "(?i)(!|&&|\\|\\|)|\\b(and|or|xor|as)\\b",
|
1460
|
+
"name": "keyword.operator.logical.php"
|
1461
|
+
},
|
1462
|
+
{
|
1463
|
+
"include": "#function-call"
|
1464
|
+
},
|
1465
|
+
{
|
1466
|
+
"match": "<<|>>|~|\\^|&|\\|",
|
1467
|
+
"name": "keyword.operator.bitwise.php"
|
1468
|
+
},
|
1469
|
+
{
|
1470
|
+
"match": "(===|==|!==|!=|<=|>=|<>|<|>)",
|
1471
|
+
"name": "keyword.operator.comparison.php"
|
1472
|
+
},
|
1473
|
+
{
|
1474
|
+
"match": "=",
|
1475
|
+
"name": "keyword.operator.assignment.php"
|
1476
|
+
},
|
1477
|
+
{
|
1478
|
+
"begin": "(?i)\\b(instanceof)\\b\\s+(?=[\\\\$a-z_])",
|
1479
|
+
"beginCaptures": {
|
1480
|
+
"1": {
|
1481
|
+
"name": "keyword.operator.type.php"
|
1482
|
+
}
|
1483
|
+
},
|
1484
|
+
"end": "(?=[^\\\\$A-Za-z_0-9])",
|
1485
|
+
"patterns": [
|
1486
|
+
{
|
1487
|
+
"include": "#class-name"
|
1488
|
+
},
|
1489
|
+
{
|
1490
|
+
"include": "#variable-name"
|
1491
|
+
}
|
1492
|
+
]
|
1493
|
+
},
|
1494
|
+
{
|
1495
|
+
"include": "#numbers"
|
1496
|
+
},
|
1497
|
+
{
|
1498
|
+
"include": "#instantiation"
|
1499
|
+
},
|
1500
|
+
{
|
1501
|
+
"captures": {
|
1502
|
+
"1": {
|
1503
|
+
"name": "keyword.control.goto.php"
|
1504
|
+
},
|
1505
|
+
"2": {
|
1506
|
+
"name": "support.other.php"
|
1507
|
+
}
|
1508
|
+
},
|
1509
|
+
"match": "(?i)(goto)\\s+([a-z_][a-z_0-9]*)"
|
1510
|
+
},
|
1511
|
+
{
|
1512
|
+
"captures": {
|
1513
|
+
"1": {
|
1514
|
+
"name": "entity.name.goto-label.php"
|
1515
|
+
}
|
1516
|
+
},
|
1517
|
+
"match": "(?i)^\\s*([a-z_][a-z_0-9]*)\\s*:"
|
1518
|
+
},
|
1519
|
+
{
|
1520
|
+
"include": "#string-backtick"
|
1521
|
+
},
|
1522
|
+
{
|
1523
|
+
"begin": "\\[",
|
1524
|
+
"beginCaptures": {
|
1525
|
+
"0": {
|
1526
|
+
"name": "punctuation.section.array.begin.php"
|
1527
|
+
}
|
1528
|
+
},
|
1529
|
+
"end": "\\]",
|
1530
|
+
"endCaptures": {
|
1531
|
+
"0": {
|
1532
|
+
"name": "punctuation.section.array.end.php"
|
1533
|
+
}
|
1534
|
+
},
|
1535
|
+
"patterns": [
|
1536
|
+
{
|
1537
|
+
"include": "#language"
|
1538
|
+
}
|
1539
|
+
]
|
1540
|
+
},
|
1541
|
+
{
|
1542
|
+
"include": "#constants"
|
1543
|
+
}
|
1544
|
+
]
|
1545
|
+
},
|
1546
|
+
"namespace": {
|
1547
|
+
"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
|
+
"end": "(?i)(?=[a-z0-9_]*[^a-z0-9_\\\\])",
|
1557
|
+
"name": "support.other.namespace.php",
|
1558
|
+
"patterns": [
|
1559
|
+
{
|
1560
|
+
"captures": {
|
1561
|
+
"1": {
|
1562
|
+
"name": "punctuation.separator.inheritance.php"
|
1563
|
+
}
|
1564
|
+
},
|
1565
|
+
"match": "(?i)(\\\\)"
|
1566
|
+
}
|
1567
|
+
]
|
1568
|
+
},
|
1569
|
+
"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"
|
1572
|
+
},
|
1573
|
+
"object": {
|
1574
|
+
"patterns": [
|
1575
|
+
{
|
1576
|
+
"begin": "(->)(\\$?\\{)",
|
1577
|
+
"beginCaptures": {
|
1578
|
+
"1": {
|
1579
|
+
"name": "keyword.operator.class.php"
|
1580
|
+
},
|
1581
|
+
"2": {
|
1582
|
+
"name": "punctuation.definition.variable.php"
|
1583
|
+
}
|
1584
|
+
},
|
1585
|
+
"end": "(\\})",
|
1586
|
+
"endCaptures": {
|
1587
|
+
"1": {
|
1588
|
+
"name": "punctuation.definition.variable.php"
|
1589
|
+
}
|
1590
|
+
},
|
1591
|
+
"patterns": [
|
1592
|
+
{
|
1593
|
+
"include": "#language"
|
1594
|
+
}
|
1595
|
+
]
|
1596
|
+
},
|
1597
|
+
{
|
1598
|
+
"captures": {
|
1599
|
+
"1": {
|
1600
|
+
"name": "keyword.operator.class.php"
|
1601
|
+
},
|
1602
|
+
"2": {
|
1603
|
+
"name": "meta.function-call.object.php"
|
1604
|
+
},
|
1605
|
+
"3": {
|
1606
|
+
"name": "variable.other.property.php"
|
1607
|
+
},
|
1608
|
+
"4": {
|
1609
|
+
"name": "punctuation.definition.variable.php"
|
1610
|
+
}
|
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)?"
|
1613
|
+
}
|
1614
|
+
]
|
1615
|
+
},
|
1616
|
+
"parameter-default-types": {
|
1617
|
+
"patterns": [
|
1618
|
+
{
|
1619
|
+
"include": "#strings"
|
1620
|
+
},
|
1621
|
+
{
|
1622
|
+
"include": "#numbers"
|
1623
|
+
},
|
1624
|
+
{
|
1625
|
+
"include": "#string-backtick"
|
1626
|
+
},
|
1627
|
+
{
|
1628
|
+
"include": "#variables"
|
1629
|
+
},
|
1630
|
+
{
|
1631
|
+
"match": "=>",
|
1632
|
+
"name": "keyword.operator.key.php"
|
1633
|
+
},
|
1634
|
+
{
|
1635
|
+
"match": "=",
|
1636
|
+
"name": "keyword.operator.assignment.php"
|
1637
|
+
},
|
1638
|
+
{
|
1639
|
+
"match": "&(?=\\s*\\$)",
|
1640
|
+
"name": "storage.modifier.reference.php"
|
1641
|
+
},
|
1642
|
+
{
|
1643
|
+
"begin": "(array)\\s*(\\()",
|
1644
|
+
"beginCaptures": {
|
1645
|
+
"1": {
|
1646
|
+
"name": "support.function.construct.php"
|
1647
|
+
},
|
1648
|
+
"2": {
|
1649
|
+
"name": "punctuation.definition.array.begin.php"
|
1650
|
+
}
|
1651
|
+
},
|
1652
|
+
"end": "\\)",
|
1653
|
+
"endCaptures": {
|
1654
|
+
"0": {
|
1655
|
+
"name": "punctuation.definition.array.end.php"
|
1656
|
+
}
|
1657
|
+
},
|
1658
|
+
"name": "meta.array.php",
|
1659
|
+
"patterns": [
|
1660
|
+
{
|
1661
|
+
"include": "#parameter-default-types"
|
1662
|
+
}
|
1663
|
+
]
|
1664
|
+
},
|
1665
|
+
{
|
1666
|
+
"include": "#instantiation"
|
1667
|
+
},
|
1668
|
+
{
|
1669
|
+
"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
|
+
"end": "(?i)(::)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?",
|
1671
|
+
"endCaptures": {
|
1672
|
+
"1": {
|
1673
|
+
"name": "keyword.operator.class.php"
|
1674
|
+
},
|
1675
|
+
"2": {
|
1676
|
+
"name": "constant.other.class.php"
|
1677
|
+
}
|
1678
|
+
},
|
1679
|
+
"patterns": [
|
1680
|
+
{
|
1681
|
+
"include": "#class-name"
|
1682
|
+
}
|
1683
|
+
]
|
1684
|
+
},
|
1685
|
+
{
|
1686
|
+
"include": "#constants"
|
1687
|
+
}
|
1688
|
+
]
|
1689
|
+
},
|
1690
|
+
"php_doc": {
|
1691
|
+
"patterns": [
|
1692
|
+
{
|
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"
|
1696
|
+
},
|
1697
|
+
{
|
1698
|
+
"captures": {
|
1699
|
+
"1": {
|
1700
|
+
"name": "keyword.other.phpdoc.php"
|
1701
|
+
},
|
1702
|
+
"3": {
|
1703
|
+
"name": "storage.modifier.php"
|
1704
|
+
},
|
1705
|
+
"4": {
|
1706
|
+
"name": "invalid.illegal.wrong-access-type.phpdoc.php"
|
1707
|
+
}
|
1708
|
+
},
|
1709
|
+
"match": "^\\s*\\*\\s*(@access)\\s+((public|private|protected)|(.+))\\s*$"
|
1710
|
+
},
|
1711
|
+
{
|
1712
|
+
"captures": {
|
1713
|
+
"1": {
|
1714
|
+
"name": "keyword.other.phpdoc.php"
|
1715
|
+
},
|
1716
|
+
"2": {
|
1717
|
+
"name": "markup.underline.link.php"
|
1718
|
+
}
|
1719
|
+
},
|
1720
|
+
"match": "(@xlink)\\s+(.+)\\s*$"
|
1721
|
+
},
|
1722
|
+
{
|
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"
|
1725
|
+
},
|
1726
|
+
{
|
1727
|
+
"captures": {
|
1728
|
+
"1": {
|
1729
|
+
"name": "keyword.other.phpdoc.php"
|
1730
|
+
}
|
1731
|
+
},
|
1732
|
+
"match": "\\{(@(link)).+?\\}",
|
1733
|
+
"name": "meta.tag.inline.phpdoc.php"
|
1734
|
+
}
|
1735
|
+
]
|
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
|
+
},
|
1750
|
+
"name": "string.regexp.double-quoted.php",
|
1751
|
+
"patterns": [
|
1752
|
+
{
|
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"
|
1756
|
+
},
|
1757
|
+
{
|
1758
|
+
"include": "#interpolation"
|
1759
|
+
},
|
1760
|
+
{
|
1761
|
+
"captures": {
|
1762
|
+
"1": {
|
1763
|
+
"name": "punctuation.definition.arbitrary-repitition.php"
|
1764
|
+
},
|
1765
|
+
"3": {
|
1766
|
+
"name": "punctuation.definition.arbitrary-repitition.php"
|
1767
|
+
}
|
1768
|
+
},
|
1769
|
+
"match": "(\\{)\\d+(,\\d+)?(\\})",
|
1770
|
+
"name": "string.regexp.arbitrary-repitition.php"
|
1771
|
+
},
|
1772
|
+
{
|
1773
|
+
"begin": "\\[(?:\\^?\\])?",
|
1774
|
+
"captures": {
|
1775
|
+
"0": {
|
1776
|
+
"name": "punctuation.definition.character-class.php"
|
1777
|
+
}
|
1778
|
+
},
|
1779
|
+
"end": "\\]",
|
1780
|
+
"name": "string.regexp.character-class.php",
|
1781
|
+
"patterns": [
|
1782
|
+
{
|
1783
|
+
"include": "#interpolation"
|
1784
|
+
}
|
1785
|
+
]
|
1786
|
+
},
|
1787
|
+
{
|
1788
|
+
"match": "[$^+*]",
|
1789
|
+
"name": "keyword.operator.regexp.php"
|
1790
|
+
}
|
1791
|
+
]
|
1792
|
+
},
|
1793
|
+
"regex-single-quoted": {
|
1794
|
+
"begin": "(?x)'/ (?= ( \\\\ (?: \\\\ (?: \\\\ [\\\\']? | [^'] ) | . ) | [^'/] )++/[imsxeADSUXu]*' )",
|
1795
|
+
"beginCaptures": {
|
1796
|
+
"0": {
|
1797
|
+
"name": "punctuation.definition.string.begin.php"
|
1798
|
+
}
|
1799
|
+
},
|
1800
|
+
"end": "(/)([imsxeADSUXu]*)(')",
|
1801
|
+
"endCaptures": {
|
1802
|
+
"0": {
|
1803
|
+
"name": "punctuation.definition.string.end.php"
|
1804
|
+
}
|
1805
|
+
},
|
1806
|
+
"name": "string.regexp.single-quoted.php",
|
1807
|
+
"patterns": [
|
1808
|
+
{
|
1809
|
+
"captures": {
|
1810
|
+
"1": {
|
1811
|
+
"name": "punctuation.definition.arbitrary-repitition.php"
|
1812
|
+
},
|
1813
|
+
"3": {
|
1814
|
+
"name": "punctuation.definition.arbitrary-repitition.php"
|
1815
|
+
}
|
1816
|
+
},
|
1817
|
+
"match": "(\\{)\\d+(,\\d+)?(\\})",
|
1818
|
+
"name": "string.regexp.arbitrary-repitition.php"
|
1819
|
+
},
|
1820
|
+
{
|
1821
|
+
"begin": "\\[(?:\\^?\\])?",
|
1822
|
+
"captures": {
|
1823
|
+
"0": {
|
1824
|
+
"name": "punctuation.definition.character-class.php"
|
1825
|
+
}
|
1826
|
+
},
|
1827
|
+
"end": "\\]",
|
1828
|
+
"name": "string.regexp.character-class.php",
|
1829
|
+
"patterns": [
|
1830
|
+
{
|
1831
|
+
"include": "#single_quote_regex_escape"
|
1832
|
+
}
|
1833
|
+
]
|
1834
|
+
},
|
1835
|
+
{
|
1836
|
+
"match": "[$^+*]",
|
1837
|
+
"name": "keyword.operator.regexp.php"
|
1838
|
+
},
|
1839
|
+
{
|
1840
|
+
"include": "#single_quote_regex_escape"
|
1841
|
+
}
|
1842
|
+
],
|
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
|
+
"beginCaptures": {
|
1854
|
+
"0": {
|
1855
|
+
"name": "punctuation.definition.string.begin.php"
|
1856
|
+
}
|
1857
|
+
},
|
1858
|
+
"contentName": "source.sql.embedded.php",
|
1859
|
+
"end": "\"",
|
1860
|
+
"endCaptures": {
|
1861
|
+
"0": {
|
1862
|
+
"name": "punctuation.definition.string.end.php"
|
1863
|
+
}
|
1864
|
+
},
|
1865
|
+
"name": "string.quoted.double.sql.php",
|
1866
|
+
"patterns": [
|
1867
|
+
{
|
1868
|
+
"match": "#(\\\\\"|[^\"])*(?=\"|$\\n?)",
|
1869
|
+
"name": "comment.line.number-sign.sql"
|
1870
|
+
},
|
1871
|
+
{
|
1872
|
+
"match": "--(\\\\\"|[^\"])*(?=\"|$\\n?)",
|
1873
|
+
"name": "comment.line.double-dash.sql"
|
1874
|
+
},
|
1875
|
+
{
|
1876
|
+
"match": "\\\\[\\\\\"`']",
|
1877
|
+
"name": "constant.character.escape.php"
|
1878
|
+
},
|
1879
|
+
{
|
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"
|
1883
|
+
},
|
1884
|
+
{
|
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"
|
1888
|
+
},
|
1889
|
+
{
|
1890
|
+
"begin": "'",
|
1891
|
+
"end": "'",
|
1892
|
+
"name": "string.quoted.single.sql",
|
1893
|
+
"patterns": [
|
1894
|
+
{
|
1895
|
+
"include": "#interpolation"
|
1896
|
+
}
|
1897
|
+
]
|
1898
|
+
},
|
1899
|
+
{
|
1900
|
+
"begin": "`",
|
1901
|
+
"end": "`",
|
1902
|
+
"name": "string.quoted.other.backtick.sql",
|
1903
|
+
"patterns": [
|
1904
|
+
{
|
1905
|
+
"include": "#interpolation"
|
1906
|
+
}
|
1907
|
+
]
|
1908
|
+
},
|
1909
|
+
{
|
1910
|
+
"include": "#interpolation"
|
1911
|
+
},
|
1912
|
+
{
|
1913
|
+
"include": "source.sql"
|
1914
|
+
}
|
1915
|
+
]
|
1916
|
+
},
|
1917
|
+
"sql-string-single-quoted": {
|
1918
|
+
"begin": "'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)",
|
1919
|
+
"beginCaptures": {
|
1920
|
+
"0": {
|
1921
|
+
"name": "punctuation.definition.string.begin.php"
|
1922
|
+
}
|
1923
|
+
},
|
1924
|
+
"contentName": "source.sql.embedded.php",
|
1925
|
+
"end": "'",
|
1926
|
+
"endCaptures": {
|
1927
|
+
"0": {
|
1928
|
+
"name": "punctuation.definition.string.end.php"
|
1929
|
+
}
|
1930
|
+
},
|
1931
|
+
"name": "string.quoted.single.sql.php",
|
1932
|
+
"patterns": [
|
1933
|
+
{
|
1934
|
+
"match": "#(\\\\'|[^'])*(?='|$\\n?)",
|
1935
|
+
"name": "comment.line.number-sign.sql"
|
1936
|
+
},
|
1937
|
+
{
|
1938
|
+
"match": "--(\\\\'|[^'])*(?='|$\\n?)",
|
1939
|
+
"name": "comment.line.double-dash.sql"
|
1940
|
+
},
|
1941
|
+
{
|
1942
|
+
"match": "\\\\[\\\\'`\"]",
|
1943
|
+
"name": "constant.character.escape.php"
|
1944
|
+
},
|
1945
|
+
{
|
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"
|
1949
|
+
},
|
1950
|
+
{
|
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"
|
1954
|
+
},
|
1955
|
+
{
|
1956
|
+
"include": "source.sql"
|
1957
|
+
}
|
1958
|
+
]
|
1959
|
+
},
|
1960
|
+
"string-backtick": {
|
1961
|
+
"begin": "`",
|
1962
|
+
"beginCaptures": {
|
1963
|
+
"0": {
|
1964
|
+
"name": "punctuation.definition.string.begin.php"
|
1965
|
+
}
|
1966
|
+
},
|
1967
|
+
"end": "`",
|
1968
|
+
"endCaptures": {
|
1969
|
+
"0": {
|
1970
|
+
"name": "punctuation.definition.string.end.php"
|
1971
|
+
}
|
1972
|
+
},
|
1973
|
+
"name": "string.interpolated.php",
|
1974
|
+
"patterns": [
|
1975
|
+
{
|
1976
|
+
"match": "\\\\.",
|
1977
|
+
"name": "constant.character.escape.php"
|
1978
|
+
},
|
1979
|
+
{
|
1980
|
+
"include": "#interpolation"
|
1981
|
+
}
|
1982
|
+
]
|
1983
|
+
},
|
1984
|
+
"string-double-quoted": {
|
1985
|
+
"begin": "\"",
|
1986
|
+
"beginCaptures": {
|
1987
|
+
"0": {
|
1988
|
+
"name": "punctuation.definition.string.begin.php"
|
1989
|
+
}
|
1990
|
+
},
|
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
|
+
"endCaptures": {
|
1995
|
+
"0": {
|
1996
|
+
"name": "punctuation.definition.string.end.php"
|
1997
|
+
}
|
1998
|
+
},
|
1999
|
+
"name": "string.quoted.double.php",
|
2000
|
+
"patterns": [
|
2001
|
+
{
|
2002
|
+
"include": "#interpolation"
|
2003
|
+
}
|
2004
|
+
]
|
2005
|
+
},
|
2006
|
+
"string-single-quoted": {
|
2007
|
+
"begin": "'",
|
2008
|
+
"beginCaptures": {
|
2009
|
+
"0": {
|
2010
|
+
"name": "punctuation.definition.string.begin.php"
|
2011
|
+
}
|
2012
|
+
},
|
2013
|
+
"contentName": "meta.string-contents.quoted.single.php",
|
2014
|
+
"end": "'",
|
2015
|
+
"endCaptures": {
|
2016
|
+
"0": {
|
2017
|
+
"name": "punctuation.definition.string.end.php"
|
2018
|
+
}
|
2019
|
+
},
|
2020
|
+
"name": "string.quoted.single.php",
|
2021
|
+
"patterns": [
|
2022
|
+
{
|
2023
|
+
"match": "\\\\[\\\\']",
|
2024
|
+
"name": "constant.character.escape.php"
|
2025
|
+
}
|
2026
|
+
]
|
2027
|
+
},
|
2028
|
+
"strings": {
|
2029
|
+
"patterns": [
|
2030
|
+
{
|
2031
|
+
"include": "#regex-double-quoted"
|
2032
|
+
},
|
2033
|
+
{
|
2034
|
+
"include": "#sql-string-double-quoted"
|
2035
|
+
},
|
2036
|
+
{
|
2037
|
+
"include": "#string-double-quoted"
|
2038
|
+
},
|
2039
|
+
{
|
2040
|
+
"include": "#regex-single-quoted"
|
2041
|
+
},
|
2042
|
+
{
|
2043
|
+
"include": "#sql-string-single-quoted"
|
2044
|
+
},
|
2045
|
+
{
|
2046
|
+
"include": "#string-single-quoted"
|
2047
|
+
}
|
2048
|
+
]
|
2049
|
+
},
|
2050
|
+
"support": {
|
2051
|
+
"patterns": [
|
2052
|
+
{
|
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"
|
2055
|
+
},
|
2056
|
+
{
|
2057
|
+
"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",
|
2058
|
+
"name": "support.function.array.php"
|
2059
|
+
},
|
2060
|
+
{
|
2061
|
+
"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",
|
2062
|
+
"name": "support.function.basic_functions.php"
|
2063
|
+
},
|
2064
|
+
{
|
2065
|
+
"match": "(?i)\\bbc(s(cale|ub|qrt)|comp|div|pow(mod)?|add|m(od|ul))\\b",
|
2066
|
+
"name": "support.function.bcmath.php"
|
2067
|
+
},
|
2068
|
+
{
|
2069
|
+
"match": "(?i)\\bblenc_encrypt\\b",
|
2070
|
+
"name": "support.function.blenc.php"
|
2071
|
+
},
|
2072
|
+
{
|
2073
|
+
"match": "(?i)\\bbz(c(ompress|lose)|open|decompress|err(str|no|or)|flush|write|read)\\b",
|
2074
|
+
"name": "support.function.bz2.php"
|
2075
|
+
},
|
2076
|
+
{
|
2077
|
+
"match": "(?i)\\b(GregorianToJD|cal_(to_jd|info|days_in_month|from_jd)|unixtojd|jdto(unix|jewish)|easter_da(ys|te)|J(ulianToJD|ewishToJD|D(MonthName|To(Gregorian|Julian|French)|DayOfWeek))|FrenchToJD)\\b",
|
2078
|
+
"name": "support.function.calendar.php"
|
2079
|
+
},
|
2080
|
+
{
|
2081
|
+
"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",
|
2082
|
+
"name": "support.function.classobj.php"
|
2083
|
+
},
|
2084
|
+
{
|
2085
|
+
"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",
|
2086
|
+
"name": "support.function.com.php"
|
2087
|
+
},
|
2088
|
+
{
|
2089
|
+
"match": "(?i)\\bctype_(space|cntrl|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit)\\b",
|
2090
|
+
"name": "support.function.ctype.php"
|
2091
|
+
},
|
2092
|
+
{
|
2093
|
+
"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",
|
2094
|
+
"name": "support.function.curl.php"
|
2095
|
+
},
|
2096
|
+
{
|
2097
|
+
"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",
|
2098
|
+
"name": "support.function.datetime.php"
|
2099
|
+
},
|
2100
|
+
{
|
2101
|
+
"match": "(?i)\\bdba_(sync|handlers|nextkey|close|insert|op(timize|en)|delete|popen|exists|key_split|f(irstkey|etch)|list|replace)\\b",
|
2102
|
+
"name": "support.function.dba.php"
|
2103
|
+
},
|
2104
|
+
{
|
2105
|
+
"match": "(?i)\\bdbx_(sort|c(o(nnect|mpare)|lose)|e(scape_string|rror)|query|fetch_row)\\b",
|
2106
|
+
"name": "support.function.dbx.php"
|
2107
|
+
},
|
2108
|
+
{
|
2109
|
+
"match": "(?i)\\b(scandir|c(h(dir|root)|losedir)|opendir|dir|re(winddir|addir)|getcwd)\\b",
|
2110
|
+
"name": "support.function.dir.php"
|
2111
|
+
},
|
2112
|
+
{
|
2113
|
+
"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",
|
2114
|
+
"name": "support.function.eio.php"
|
2115
|
+
},
|
2116
|
+
{
|
2117
|
+
"match": "(?i)\\benchant_(dict_(s(tore_replacement|uggest)|check|is_in_session|describe|quick_check|add_to_(session|personal)|get_error)|broker_(set_ordering|init|d(ict_exists|escribe)|free(_dict)?|list_dicts|request_(dict|pwl_dict)|get_error))\\b",
|
2118
|
+
"name": "support.function.enchant.php"
|
2119
|
+
},
|
2120
|
+
{
|
2121
|
+
"match": "(?i)\\b(s(plit(i)?|ql_regcase)|ereg(i(_replace)?|_replace)?)\\b",
|
2122
|
+
"name": "support.function.ereg.php"
|
2123
|
+
},
|
2124
|
+
{
|
2125
|
+
"match": "(?i)\\b(set_e(rror_handler|xception_handler)|trigger_error|debug_(print_backtrace|backtrace)|user_error|error_(log|reporting|get_last)|restore_e(rror_handler|xception_handler))\\b",
|
2126
|
+
"name": "support.function.errorfunc.php"
|
2127
|
+
},
|
2128
|
+
{
|
2129
|
+
"match": "(?i)\\b(s(hell_exec|ystem)|p(assthru|roc_(nice|close|terminate|open|get_status))|e(scapeshell(cmd|arg)|xec))\\b",
|
2130
|
+
"name": "support.function.exec.php"
|
2131
|
+
},
|
2132
|
+
{
|
2133
|
+
"match": "(?i)\\b(exif_(t(humbnail|agname)|imagetype|read_data)|read_exif_data)\\b",
|
2134
|
+
"name": "support.function.exif.php"
|
2135
|
+
},
|
2136
|
+
{
|
2137
|
+
"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",
|
2138
|
+
"name": "support.function.fann.php"
|
2139
|
+
},
|
2140
|
+
{
|
2141
|
+
"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",
|
2142
|
+
"name": "support.function.file.php"
|
2143
|
+
},
|
2144
|
+
{
|
2145
|
+
"match": "(?i)\\b(finfo_(set_flags|close|open|file|buffer)|mime_content_type)\\b",
|
2146
|
+
"name": "support.function.fileinfo.php"
|
2147
|
+
},
|
2148
|
+
{
|
2149
|
+
"match": "(?i)\\bfilter_(has_var|i(nput(_array)?|d)|var(_array)?|list)\\b",
|
2150
|
+
"name": "support.function.filter.php"
|
2151
|
+
},
|
2152
|
+
{
|
2153
|
+
"match": "(?i)\\bfastcgi_finish_request\\b",
|
2154
|
+
"name": "support.function.fpm.php"
|
2155
|
+
},
|
2156
|
+
{
|
2157
|
+
"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",
|
2158
|
+
"name": "support.function.funchand.php"
|
2159
|
+
},
|
2160
|
+
{
|
2161
|
+
"match": "(?i)\\b(ngettext|textdomain|d(ngettext|c(ngettext|gettext)|gettext)|gettext|bind(textdomain|_textdomain_codeset))\\b",
|
2162
|
+
"name": "support.function.gettext.php"
|
2163
|
+
},
|
2164
|
+
{
|
2165
|
+
"match": "(?i)\\bgmp_(s(can(1|0)|trval|ign|ub|etbit|qrt(rem)?)|hamdist|ne(g|xtprime)|c(om|lrbit|mp)|testbit|i(n(tval|it|vert)|mport)|or|div(_(q(r)?|r)|exact)?|jacobi|p(o(pcount|w(m)?)|erfect_square|rob_prime)|export|fact|legendre|a(nd|dd|bs)|r(oot(rem)?|andom(_(range|bits))?)|gcd(ext)?|xor|m(od|ul))\\b",
|
2166
|
+
"name": "support.function.gmp.php"
|
2167
|
+
},
|
2168
|
+
{
|
2169
|
+
"match": "(?i)\\bhash(_(hmac(_file)?|copy|init|update(_(stream|file))?|pbkdf2|equals|fi(nal|le)|algos))?\\b",
|
2170
|
+
"name": "support.function.hash.php"
|
2171
|
+
},
|
2172
|
+
{
|
2173
|
+
"match": "(?i)\\b(http_(s(upport|end_(st(atus|ream)|content_(type|disposition)|data|file|last_modified))|head|negotiate_(c(harset|ontent_type)|language)|c(hunked_decode|ache_(etag|last_modified))|throttle|inflate|d(eflate|ate)|p(ost_(data|fields)|ut_(stream|data|file)|ersistent_handles_(c(ount|lean)|ident)|arse_(headers|cookie|params|message))|re(direct|quest(_(method_(name|unregister|exists|register)|body_encode))?)|get(_request_(headers|body(_stream)?))?|match_(etag|request_header|modified)|build_(str|cookie|url))|ob_(inflatehandler|deflatehandler|etaghandler))\\b",
|
2174
|
+
"name": "support.function.http.php"
|
2175
|
+
},
|
2176
|
+
{
|
2177
|
+
"match": "(?i)\\b(iconv(_(s(tr(pos|len|rpos)|ubstr|et_encoding)|get_encoding|mime_(decode(_headers)?|encode)))?|ob_iconv_handler)\\b",
|
2178
|
+
"name": "support.function.iconv.php"
|
2179
|
+
},
|
2180
|
+
{
|
2181
|
+
"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",
|
2182
|
+
"name": "support.function.iisfunc.php"
|
2183
|
+
},
|
2184
|
+
{
|
2185
|
+
"match": "(?i)\\b(i(ptc(parse|embed)|mage(s(y|cale|tring(up)?|et(style|t(hickness|ile)|interpolation|pixel|brush)|avealpha|x)|c(har(up)?|o(nvolution|py(res(ized|ampled)|merge(gray)?)?|lor(s(total|et|forindex)|closest(hwb|alpha)?|transparent|deallocate|exact(alpha)?|a(t|llocate(alpha)?)|resolve(alpha)?|match))|r(op(auto)?|eate(truecolor|from(string|jpeg|png|w(ebp|bmp)|g(if|d(2(part)?)?)|x(pm|bm)))?))|t(ypes|tf(text|bbox)|ruecolortopalette)|i(struecolor|nterlace)|2wbmp|d(estroy|ashedline)|jpeg|_type_to_(extension|mime_type)|p(s(slantfont|text|e(ncodefont|xtendfont)|freefont|loadfont|bbox)|ng|olygon|alette(copy|totruecolor))|ellipse|f(t(text|bbox)|il(ter|l(toborder|ed(polygon|ellipse|arc|rectangle))?)|ont(height|width)|lip)|w(ebp|bmp)|l(ine|oadfont|ayereffect)|a(ntialias|ffine(matrix(concat|get))?|lphablending|rc)|r(otate|ectangle)|g(if|d(2)?|ammacorrect|rab(screen|window))|xbm))|jpeg2wbmp|png2wbmp|g(d_info|etimagesize(fromstring)?))\\b",
|
2186
|
+
"name": "support.function.image.php"
|
2187
|
+
},
|
2188
|
+
{
|
2189
|
+
"match": "(?i)\\b(s(ys_get_temp_dir|et_(time_limit|include_path|magic_quotes_runtime))|cli_(set_process_title|get_process_title)|ini_(set|alter|restore|get(_all)?)|zend_(thread_id|version|logo_guid)|dl|p(hp(credits|info|_(sapi_name|ini_(scanned_files|loaded_file)|uname|logo_guid)|version)|utenv)|extension_loaded|version_compare|assert(_options)?|restore_include_path|g(c_(collect_cycles|disable|enable(d)?)|et(opt|_(c(urrent_user|fg_var)|include(d_files|_path)|defined_constants|extension_funcs|loaded_extensions|required_files|magic_quotes_(runtime|gpc))|env|lastmod|rusage|my(inode|uid|pid|gid)))|m(emory_get_(usage|peak_usage)|a(in|gic_quotes_runtime)))\\b",
|
2190
|
+
"name": "support.function.info.php"
|
2191
|
+
},
|
2192
|
+
{
|
2193
|
+
"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",
|
2194
|
+
"name": "support.function.interbase.php"
|
2195
|
+
},
|
2196
|
+
{
|
2197
|
+
"match": "(?i)\\b(n(ormalizer_(normalize|is_normalized)|umfmt_(set_(symbol|text_attribute|pattern|attribute)|create|parse(_currency)?|format(_currency)?|get_(symbol|text_attribute|pattern|error_(code|message)|locale|attribute)))|collator_(s(ort(_with_sort_keys)?|et_(strength|attribute))|c(ompare|reate)|asort|get_(s(trength|ort_key)|error_(code|message)|locale|attribute))|transliterator_(create(_(inverse|from_rules))?|transliterate|list_ids|get_error_(code|message))|i(ntl(cal_get_error_(code|message)|tz_get_error_(code|message)|_(is_failure|error_name|get_error_(code|message)))|dn_to_(u(nicode|tf8)|ascii))|datefmt_(set_(calendar|timezone(_id)?|pattern|lenient)|create|is_lenient|parse|format(_object)?|localtime|get_(calendar(_object)?|time(type|zone(_id)?)|datetype|pattern|error_(code|message)|locale))|locale_(set_default|c(ompose|anonicalize)|parse|filter_matches|lookup|accept_from_http|get_(script|d(isplay_(script|name|variant|language|region)|efault)|primary_language|keywords|all_variants|region))|resourcebundle_(c(ount|reate)|locales|get(_error_(code|message))?)|grapheme_(s(tr(str|i(str|pos)|pos|len|r(ipos|pos))|ubstr)|extract)|msgfmt_(set_pattern|create|parse(_message)?|format(_message)?|get_(pattern|error_(code|message)|locale)))\\b",
|
2198
|
+
"name": "support.function.intl.php"
|
2199
|
+
},
|
2200
|
+
{
|
2201
|
+
"match": "(?i)\\bjson_(decode|encode|last_error(_msg)?)\\b",
|
2202
|
+
"name": "support.function.json.php"
|
2203
|
+
},
|
2204
|
+
{
|
2205
|
+
"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",
|
2206
|
+
"name": "support.function.ldap.php"
|
2207
|
+
},
|
2208
|
+
{
|
2209
|
+
"match": "(?i)\\blibxml_(set_(streams_context|external_entity_loader)|clear_errors|disable_entity_loader|use_internal_errors|get_(errors|last_error))\\b",
|
2210
|
+
"name": "support.function.libxml.php"
|
2211
|
+
},
|
2212
|
+
{
|
2213
|
+
"match": "(?i)\\b(ezmlm_hash|mail)\\b",
|
2214
|
+
"name": "support.function.mail.php"
|
2215
|
+
},
|
2216
|
+
{
|
2217
|
+
"match": "(?i)\\b(s(in(h)?|qrt|rand)|h(ypot|exdec)|c(os(h)?|eil)|tan(h)?|is_(nan|infinite|finite)|octdec|de(c(hex|oct|bin)|g2rad)|p(i|ow)|exp(m1)?|f(loor|mod)|l(cg_value|og(1(p|0))?)|a(sin(h)?|cos(h)?|tan(h|2)?|bs)|r(ound|a(nd|d2deg))|getrandmax|m(t_(srand|rand|getrandmax)|in|ax)|b(indec|ase_convert))\\b",
|
2218
|
+
"name": "support.function.math.php"
|
2219
|
+
},
|
2220
|
+
{
|
2221
|
+
"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",
|
2222
|
+
"name": "support.function.mbstring.php"
|
2223
|
+
},
|
2224
|
+
{
|
2225
|
+
"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",
|
2226
|
+
"name": "support.function.mcrypt.php"
|
2227
|
+
},
|
2228
|
+
{
|
2229
|
+
"match": "(?i)\\bmemcache_debug\\b",
|
2230
|
+
"name": "support.function.memcache.php"
|
2231
|
+
},
|
2232
|
+
{
|
2233
|
+
"match": "(?i)\\bmhash(_(count|keygen_s2k|get_(hash_name|block_size)))?\\b",
|
2234
|
+
"name": "support.function.mhash.php"
|
2235
|
+
},
|
2236
|
+
{
|
2237
|
+
"match": "(?i)\\b(log_(cmd_(insert|delete|update)|killcursor|write_batch|reply|getmore)|bson_(decode|encode))\\b",
|
2238
|
+
"name": "support.function.mongo.php"
|
2239
|
+
},
|
2240
|
+
{
|
2241
|
+
"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",
|
2242
|
+
"name": "support.function.mysql.php"
|
2243
|
+
},
|
2244
|
+
{
|
2245
|
+
"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",
|
2246
|
+
"name": "support.function.mysqli.php"
|
2247
|
+
},
|
2248
|
+
{
|
2249
|
+
"match": "(?i)\\bmysqlnd_memcache_(set|get_config)\\b",
|
2250
|
+
"name": "support.function.mysqlnd-memcache.php"
|
2251
|
+
},
|
2252
|
+
{
|
2253
|
+
"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",
|
2254
|
+
"name": "support.function.mysqlnd-ms.php"
|
2255
|
+
},
|
2256
|
+
{
|
2257
|
+
"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",
|
2258
|
+
"name": "support.function.mysqlnd-qc.php"
|
2259
|
+
},
|
2260
|
+
{
|
2261
|
+
"match": "(?i)\\bmysqlnd_uh_(set_(statement_proxy|connection_proxy)|convert_to_mysqlnd)\\b",
|
2262
|
+
"name": "support.function.mysqlnd-uh.php"
|
2263
|
+
},
|
2264
|
+
{
|
2265
|
+
"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",
|
2266
|
+
"name": "support.function.network.php"
|
2267
|
+
},
|
2268
|
+
{
|
2269
|
+
"match": "(?i)\\bnsapi_(virtual|re(sponse_headers|quest_headers))\\b",
|
2270
|
+
"name": "support.function.nsapi.php"
|
2271
|
+
},
|
2272
|
+
{
|
2273
|
+
"match": "(?i)\\boci(s(tatementtype|e(tprefetch|rverversion)|avelob(file)?)|n(umcols|ew(c(ollection|ursor)|descriptor)|logon)|c(o(l(umn(s(cale|ize)|name|type(raw)?|isnull|precision)|l(size|trim|a(ssign(elem)?|ppend)|getelem|max))|mmit)|loselob|ancel)|internaldebug|definebyname|_(s(tatement_type|e(t_(client_i(nfo|dentifier)|prefetch|edition|action|module_name)|rver_version))|n(um_(fields|rows)|ew_(c(o(nnect|llection)|ursor)|descriptor))|c(o(nnect|mmit)|l(ient_version|ose)|ancel)|internal_debug|define_by_name|p(connect|a(ssword_change|rse))|e(rror|xecute)|f(ield_(s(cale|ize)|name|type(_raw)?|is_null|precision)|etch(_(object|a(ssoc|ll|rray)|row))?|ree_(statement|descriptor))|lob_(copy|is_equal)|r(ollback|esult)|get_implicit_resultset|bind_(array_by_name|by_name))|p(logon|arse)|e(rror|xecute)|f(etch(statement|into)?|ree(statement|c(ollection|ursor)|desc))|write(temporarylob|lobtofile)|lo(adlob|go(n|ff))|r(o(wcount|llback)|esult)|bindbyname)\\b",
|
2274
|
+
"name": "support.function.oci8.php"
|
2275
|
+
},
|
2276
|
+
{
|
2277
|
+
"match": "(?i)\\bopcache_(compile_file|invalidate|reset|get_(status|configuration))\\b",
|
2278
|
+
"name": "support.function.opcache.php"
|
2279
|
+
},
|
2280
|
+
{
|
2281
|
+
"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",
|
2282
|
+
"name": "support.function.openssl.php"
|
2283
|
+
},
|
2284
|
+
{
|
2285
|
+
"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",
|
2286
|
+
"name": "support.function.output.php"
|
2287
|
+
},
|
2288
|
+
{
|
2289
|
+
"match": "(?i)\\bpassword_(hash|needs_rehash|verify|get_info)\\b",
|
2290
|
+
"name": "support.function.password.php"
|
2291
|
+
},
|
2292
|
+
{
|
2293
|
+
"match": "(?i)\\bpcntl_(s(trerror|ig(nal(_dispatch)?|timedwait|procmask|waitinfo)|etpriority)|e(rrno|xec)|fork|w(stopsig|termsig|if(s(topped|ignaled)|exited)|exitstatus|ait(pid)?)|alarm|get(_last_error|priority))\\b",
|
2294
|
+
"name": "support.function.pcntl.php"
|
2295
|
+
},
|
2296
|
+
{
|
2297
|
+
"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",
|
2298
|
+
"name": "support.function.pgsql.php"
|
2299
|
+
},
|
2300
|
+
{
|
2301
|
+
"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",
|
2302
|
+
"name": "support.function.php_apache.php"
|
2303
|
+
},
|
2304
|
+
{
|
2305
|
+
"match": "(?i)\\bdom_import_simplexml\\b",
|
2306
|
+
"name": "support.function.php_dom.php"
|
2307
|
+
},
|
2308
|
+
{
|
2309
|
+
"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",
|
2310
|
+
"name": "support.function.php_ftp.php"
|
2311
|
+
},
|
2312
|
+
{
|
2313
|
+
"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",
|
2314
|
+
"name": "support.function.php_imap.php"
|
2315
|
+
},
|
2316
|
+
{
|
2317
|
+
"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",
|
2318
|
+
"name": "support.function.php_mssql.php"
|
2319
|
+
},
|
2320
|
+
{
|
2321
|
+
"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",
|
2322
|
+
"name": "support.function.php_odbc.php"
|
2323
|
+
},
|
2324
|
+
{
|
2325
|
+
"match": "(?i)\\bpreg_(split|quote|filter|last_error|replace(_callback)?|grep|match(_all)?)\\b",
|
2326
|
+
"name": "support.function.php_pcre.php"
|
2327
|
+
},
|
2328
|
+
{
|
2329
|
+
"match": "(?i)\\b(spl_(classes|object_hash|autoload(_(call|unregister|extensions|functions|register))?)|class_(implements|uses|parents)|iterator_(count|to_array|apply))\\b",
|
2330
|
+
"name": "support.function.php_spl.php"
|
2331
|
+
},
|
2332
|
+
{
|
2333
|
+
"match": "(?i)\\bzip_(close|open|entry_(name|c(ompress(ionmethod|edsize)|lose)|open|filesize|read)|read)\\b",
|
2334
|
+
"name": "support.function.php_zip.php"
|
2335
|
+
},
|
2336
|
+
{
|
2337
|
+
"match": "(?i)\\bposix_(s(trerror|et(sid|uid|pgid|e(uid|gid)|gid))|ctermid|t(tyname|imes)|i(satty|nitgroups)|uname|errno|kill|access|get(sid|cwd|uid|_last_error|p(id|pid|w(nam|uid)|g(id|rp))|e(uid|gid)|login|rlimit|g(id|r(nam|oups|gid)))|mk(nod|fifo))\\b",
|
2338
|
+
"name": "support.function.posix.php"
|
2339
|
+
},
|
2340
|
+
{
|
2341
|
+
"match": "(?i)\\bset(threadtitle|proctitle)\\b",
|
2342
|
+
"name": "support.function.proctitle.php"
|
2343
|
+
},
|
2344
|
+
{
|
2345
|
+
"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",
|
2346
|
+
"name": "support.function.pspell.php"
|
2347
|
+
},
|
2348
|
+
{
|
2349
|
+
"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",
|
2350
|
+
"name": "support.function.readline.php"
|
2351
|
+
},
|
2352
|
+
{
|
2353
|
+
"match": "(?i)\\brecode(_(string|file))?\\b",
|
2354
|
+
"name": "support.function.recode.php"
|
2355
|
+
},
|
2356
|
+
{
|
2357
|
+
"match": "(?i)\\brrd(c_disconnect|_(create|tune|info|update|error|version|f(irst|etch)|last(update)?|restore|graph|xport))\\b",
|
2358
|
+
"name": "support.function.rrd.php"
|
2359
|
+
},
|
2360
|
+
{
|
2361
|
+
"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",
|
2362
|
+
"name": "support.function.sem.php"
|
2363
|
+
},
|
2364
|
+
{
|
2365
|
+
"match": "(?i)\\bsession_(s(ta(tus|rt)|et_(save_handler|cookie_params)|ave_path)|name|c(ommit|ache_(expire|limiter))|i(s_registered|d)|de(stroy|code)|un(set|register)|encode|write_close|abort|re(set|g(ister(_shutdown)?|enerate_id))|get_cookie_params|module_name)\\b",
|
2366
|
+
"name": "support.function.session.php"
|
2367
|
+
},
|
2368
|
+
{
|
2369
|
+
"match": "(?i)\\bshmop_(size|close|open|delete|write|read)\\b",
|
2370
|
+
"name": "support.function.shmop.php"
|
2371
|
+
},
|
2372
|
+
{
|
2373
|
+
"match": "(?i)\\bsimplexml_(import_dom|load_(string|file))\\b",
|
2374
|
+
"name": "support.function.simplexml.php"
|
2375
|
+
},
|
2376
|
+
{
|
2377
|
+
"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",
|
2378
|
+
"name": "support.function.snmp.php"
|
2379
|
+
},
|
2380
|
+
{
|
2381
|
+
"match": "(?i)\\b(is_soap_fault|use_soap_error_handler)\\b",
|
2382
|
+
"name": "support.function.soap.php"
|
2383
|
+
},
|
2384
|
+
{
|
2385
|
+
"match": "(?i)\\bsocket_(s(hutdown|trerror|e(nd(to|msg)?|t_(nonblock|option|block)|lect))|c(onnect|l(ose|ear_error)|reate(_(pair|listen))?|msg_space)|import_stream|write|l(isten|ast_error)|accept|re(cv(from|msg)?|ad)|get(sockname|_option|peername)|bind)\\b",
|
2386
|
+
"name": "support.function.sockets.php"
|
2387
|
+
},
|
2388
|
+
{
|
2389
|
+
"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",
|
2390
|
+
"name": "support.function.sqlite.php"
|
2391
|
+
},
|
2392
|
+
{
|
2393
|
+
"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",
|
2394
|
+
"name": "support.function.sqlsrv.php"
|
2395
|
+
},
|
2396
|
+
{
|
2397
|
+
"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",
|
2398
|
+
"name": "support.function.stats.php"
|
2399
|
+
},
|
2400
|
+
{
|
2401
|
+
"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",
|
2402
|
+
"name": "support.function.streamsfuncs.php"
|
2403
|
+
},
|
2404
|
+
{
|
2405
|
+
"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",
|
2406
|
+
"name": "support.function.string.php"
|
2407
|
+
},
|
2408
|
+
{
|
2409
|
+
"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",
|
2410
|
+
"name": "support.function.sybase.php"
|
2411
|
+
},
|
2412
|
+
{
|
2413
|
+
"match": "(?i)\\b(taint|is_tainted|untaint)\\b",
|
2414
|
+
"name": "support.function.taint.php"
|
2415
|
+
},
|
2416
|
+
{
|
2417
|
+
"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",
|
2418
|
+
"name": "support.function.tidy.php"
|
2419
|
+
},
|
2420
|
+
{
|
2421
|
+
"match": "(?i)\\btoken_(name|get_all)\\b",
|
2422
|
+
"name": "support.function.tokenizer.php"
|
2423
|
+
},
|
2424
|
+
{
|
2425
|
+
"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",
|
2426
|
+
"name": "support.function.trader.php"
|
2427
|
+
},
|
2428
|
+
{
|
2429
|
+
"match": "(?i)\\buopz_(co(py|mpose)|implement|overload|delete|undefine|extend|f(unction|lags)|re(store|name|define)|backup)\\b",
|
2430
|
+
"name": "support.function.uopz.php"
|
2431
|
+
},
|
2432
|
+
{
|
2433
|
+
"match": "(?i)\\b(http_build_query|url(decode|encode)|parse_url|rawurl(decode|encode)|get_(headers|meta_tags)|base64_(decode|encode))\\b",
|
2434
|
+
"name": "support.function.url.php"
|
2435
|
+
},
|
2436
|
+
{
|
2437
|
+
"match": "(?i)\\b(s(trval|e(ttype|rialize))|i(s(set|_(s(calar|tring)|nu(ll|meric)|callable|int(eger)?|object|double|float|long|array|re(source|al)|bool))|ntval|mport_request_variables)|d(oubleval|ebug_zval_dump)|unse(t|rialize)|print_r|empty|var_(dump|export)|floatval|get(type|_(defined_vars|resource_type))|boolval)\\b",
|
2438
|
+
"name": "support.function.var.php"
|
2439
|
+
},
|
2440
|
+
{
|
2441
|
+
"match": "(?i)\\bwddx_(serialize_va(lue|rs)|deserialize|packet_(start|end)|add_vars)\\b",
|
2442
|
+
"name": "support.function.wddx.php"
|
2443
|
+
},
|
2444
|
+
{
|
2445
|
+
"match": "(?i)\\bxhprof_(sample_(disable|enable)|disable|enable)\\b",
|
2446
|
+
"name": "support.function.xhprof.php"
|
2447
|
+
},
|
2448
|
+
{
|
2449
|
+
"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",
|
2450
|
+
"name": "support.function.xml.php"
|
2451
|
+
},
|
2452
|
+
{
|
2453
|
+
"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",
|
2454
|
+
"name": "support.function.xmlrpc.php"
|
2455
|
+
},
|
2456
|
+
{
|
2457
|
+
"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",
|
2458
|
+
"name": "support.function.xmlwriter.php"
|
2459
|
+
},
|
2460
|
+
{
|
2461
|
+
"match": "(?i)\\b(zlib_(decode|encode|get_coding_type)|readgzfile|gz(seek|c(ompress|lose)|tell|inflate|open|de(code|flate)|uncompress|p(uts|assthru)|e(ncode|of)|file|write|re(wind|ad)|get(s(s)?|c)))\\b",
|
2462
|
+
"name": "support.function.zlib.php"
|
2463
|
+
},
|
2464
|
+
{
|
2465
|
+
"match": "(?i)\\bis_int(eger)?\\b",
|
2466
|
+
"name": "support.function.alias.php"
|
2467
|
+
}
|
2468
|
+
]
|
2469
|
+
},
|
2470
|
+
"user-function-call": {
|
2471
|
+
"begin": "(?i)(?=[a-z_0-9\\\\]*[a-z_][a-z0-9_]*\\s*\\()",
|
2472
|
+
"end": "(?i)[a-z_][a-z_0-9]*(?=\\s*\\()",
|
2473
|
+
"name": "meta.function-call.php",
|
2474
|
+
"patterns": [
|
2475
|
+
{
|
2476
|
+
"include": "#namespace"
|
2477
|
+
}
|
2478
|
+
]
|
2479
|
+
},
|
2480
|
+
"var_basic": {
|
2481
|
+
"patterns": [
|
2482
|
+
{
|
2483
|
+
"captures": {
|
2484
|
+
"1": {
|
2485
|
+
"name": "punctuation.definition.variable.php"
|
2486
|
+
}
|
2487
|
+
},
|
2488
|
+
"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",
|
2489
|
+
"name": "variable.other.php"
|
2490
|
+
}
|
2491
|
+
]
|
2492
|
+
},
|
2493
|
+
"var_global": {
|
2494
|
+
"captures": {
|
2495
|
+
"1": {
|
2496
|
+
"name": "punctuation.definition.variable.php"
|
2497
|
+
}
|
2498
|
+
},
|
2499
|
+
"match": "(\\$)((_(COOKIE|FILES|GET|POST|REQUEST))|arg(v|c))\\b",
|
2500
|
+
"name": "variable.other.global.php"
|
2501
|
+
},
|
2502
|
+
"var_global_safer": {
|
2503
|
+
"captures": {
|
2504
|
+
"1": {
|
2505
|
+
"name": "punctuation.definition.variable.php"
|
2506
|
+
}
|
2507
|
+
},
|
2508
|
+
"match": "(\\$)((GLOBALS|_(ENV|SERVER|SESSION)))",
|
2509
|
+
"name": "variable.other.global.safer.php"
|
2510
|
+
},
|
2511
|
+
"variable-name": {
|
2512
|
+
"patterns": [
|
2513
|
+
{
|
2514
|
+
"include": "#var_global"
|
2515
|
+
},
|
2516
|
+
{
|
2517
|
+
"include": "#var_global_safer"
|
2518
|
+
},
|
2519
|
+
{
|
2520
|
+
"captures": {
|
2521
|
+
"1": {
|
2522
|
+
"name": "variable.other.php"
|
2523
|
+
},
|
2524
|
+
"10": {
|
2525
|
+
"name": "string.unquoted.index.php"
|
2526
|
+
},
|
2527
|
+
"11": {
|
2528
|
+
"name": "punctuation.section.array.end.php"
|
2529
|
+
},
|
2530
|
+
"2": {
|
2531
|
+
"name": "punctuation.definition.variable.php"
|
2532
|
+
},
|
2533
|
+
"4": {
|
2534
|
+
"name": "keyword.operator.class.php"
|
2535
|
+
},
|
2536
|
+
"5": {
|
2537
|
+
"name": "variable.other.property.php"
|
2538
|
+
},
|
2539
|
+
"6": {
|
2540
|
+
"name": "punctuation.section.array.begin.php"
|
2541
|
+
},
|
2542
|
+
"7": {
|
2543
|
+
"name": "constant.numeric.index.php"
|
2544
|
+
},
|
2545
|
+
"8": {
|
2546
|
+
"name": "variable.other.index.php"
|
2547
|
+
},
|
2548
|
+
"9": {
|
2549
|
+
"name": "punctuation.definition.variable.php"
|
2550
|
+
}
|
2551
|
+
},
|
2552
|
+
"comment": "Simple syntax: $foo, $foo[0], $foo[$bar], $foo->bar",
|
2553
|
+
"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"
|
2554
|
+
},
|
2555
|
+
{
|
2556
|
+
"captures": {
|
2557
|
+
"1": {
|
2558
|
+
"name": "variable.other.php"
|
2559
|
+
},
|
2560
|
+
"2": {
|
2561
|
+
"name": "punctuation.definition.variable.php"
|
2562
|
+
},
|
2563
|
+
"4": {
|
2564
|
+
"name": "punctuation.definition.variable.php"
|
2565
|
+
}
|
2566
|
+
},
|
2567
|
+
"comment": "Simple syntax with braces: \"foo${bar}baz\"",
|
2568
|
+
"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"
|
2569
|
+
}
|
2570
|
+
]
|
2571
|
+
},
|
2572
|
+
"variables": {
|
2573
|
+
"patterns": [
|
2574
|
+
{
|
2575
|
+
"include": "#var_global"
|
2576
|
+
},
|
2577
|
+
{
|
2578
|
+
"include": "#var_global_safer"
|
2579
|
+
},
|
2580
|
+
{
|
2581
|
+
"include": "#var_basic"
|
2582
|
+
},
|
2583
|
+
{
|
2584
|
+
"begin": "(\\$\\{)(?=.*?\\})",
|
2585
|
+
"beginCaptures": {
|
2586
|
+
"1": {
|
2587
|
+
"name": "punctuation.definition.variable.php"
|
2588
|
+
}
|
2589
|
+
},
|
2590
|
+
"end": "(\\})",
|
2591
|
+
"endCaptures": {
|
2592
|
+
"1": {
|
2593
|
+
"name": "punctuation.definition.variable.php"
|
2594
|
+
}
|
2595
|
+
},
|
2596
|
+
"patterns": [
|
2597
|
+
{
|
2598
|
+
"include": "#language"
|
2599
|
+
}
|
2600
|
+
]
|
2601
|
+
}
|
2602
|
+
]
|
2603
|
+
}
|
2604
|
+
},
|
2605
|
+
"scopeName": "text.html.php",
|
2606
|
+
"uuid": "22986475-8CA5-11D9-AEDD-000D93C8BE28"
|
2607
|
+
}
|