tm-grammars 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/LICENSE +22 -0
  2. package/NOTICE +6565 -0
  3. package/README.md +211 -0
  4. package/grammars/abap.json +380 -0
  5. package/grammars/actionscript-3.json +951 -0
  6. package/grammars/ada.json +3874 -0
  7. package/grammars/apache.json +562 -0
  8. package/grammars/apex.json +3203 -0
  9. package/grammars/apl.json +1479 -0
  10. package/grammars/applescript.json +1406 -0
  11. package/grammars/ara.json +428 -0
  12. package/grammars/asm.json +1741 -0
  13. package/grammars/astro.json +776 -0
  14. package/grammars/awk.json +388 -0
  15. package/grammars/ballerina.json +3768 -0
  16. package/grammars/bat.json +783 -0
  17. package/grammars/beancount.json +831 -0
  18. package/grammars/berry.json +172 -0
  19. package/grammars/bibtex.json +315 -0
  20. package/grammars/bicep.json +239 -0
  21. package/grammars/blade.json +3870 -0
  22. package/grammars/c.json +3552 -0
  23. package/grammars/cadence.json +738 -0
  24. package/grammars/clarity.json +877 -0
  25. package/grammars/clojure.json +426 -0
  26. package/grammars/cmake.json +143 -0
  27. package/grammars/cobol.json +1124 -0
  28. package/grammars/codeql.json +1540 -0
  29. package/grammars/coffee.json +1311 -0
  30. package/grammars/cpp-macro.json +9498 -0
  31. package/grammars/cpp.json +16635 -0
  32. package/grammars/crystal.json +1866 -0
  33. package/grammars/csharp.json +5722 -0
  34. package/grammars/css.json +1860 -0
  35. package/grammars/csv.json +46 -0
  36. package/grammars/cue.json +1128 -0
  37. package/grammars/cypher.json +353 -0
  38. package/grammars/d.json +3185 -0
  39. package/grammars/dart.json +522 -0
  40. package/grammars/dax.json +185 -0
  41. package/grammars/diff.json +155 -0
  42. package/grammars/docker.json +97 -0
  43. package/grammars/dream-maker.json +640 -0
  44. package/grammars/elixir.json +1014 -0
  45. package/grammars/elm.json +751 -0
  46. package/grammars/erb.json +156 -0
  47. package/grammars/erlang.json +1757 -0
  48. package/grammars/fish.json +189 -0
  49. package/grammars/fsharp.json +1831 -0
  50. package/grammars/gdresource.json +290 -0
  51. package/grammars/gdscript.json +969 -0
  52. package/grammars/gdshader.json +405 -0
  53. package/grammars/gherkin.json +133 -0
  54. package/grammars/git-commit.json +85 -0
  55. package/grammars/git-rebase.json +56 -0
  56. package/grammars/glimmer-js.json +98 -0
  57. package/grammars/glimmer-ts.json +98 -0
  58. package/grammars/glsl.json +57 -0
  59. package/grammars/gnuplot.json +892 -0
  60. package/grammars/go.json +1012 -0
  61. package/grammars/graphql.json +1295 -0
  62. package/grammars/groovy.json +1378 -0
  63. package/grammars/hack.json +2650 -0
  64. package/grammars/haml.json +598 -0
  65. package/grammars/handlebars.json +848 -0
  66. package/grammars/haskell.json +2431 -0
  67. package/grammars/hcl.json +787 -0
  68. package/grammars/hjson.json +821 -0
  69. package/grammars/hlsl.json +212 -0
  70. package/grammars/html.json +93 -0
  71. package/grammars/imba.json +2696 -0
  72. package/grammars/ini.json +108 -0
  73. package/grammars/java.json +1885 -0
  74. package/grammars/javascript.json +5984 -0
  75. package/grammars/jinja-html.json +16 -0
  76. package/grammars/jinja.json +345 -0
  77. package/grammars/jison.json +715 -0
  78. package/grammars/jsdoc.json +21 -0
  79. package/grammars/json.json +208 -0
  80. package/grammars/json5.json +244 -0
  81. package/grammars/jsonc.json +208 -0
  82. package/grammars/jsonl.json +208 -0
  83. package/grammars/jsonnet.json +211 -0
  84. package/grammars/jssm.json +159 -0
  85. package/grammars/jsx.json +5984 -0
  86. package/grammars/julia.json +1061 -0
  87. package/grammars/kotlin.json +580 -0
  88. package/grammars/kusto.json +687 -0
  89. package/grammars/latex.json +2395 -0
  90. package/grammars/less.json +5012 -0
  91. package/grammars/liquid.json +990 -0
  92. package/grammars/lisp.json +121 -0
  93. package/grammars/logo.json +55 -0
  94. package/grammars/lua.json +956 -0
  95. package/grammars/make.json +629 -0
  96. package/grammars/markdown.json +3066 -0
  97. package/grammars/marko.json +1344 -0
  98. package/grammars/matlab.json +1131 -0
  99. package/grammars/mdc.json +571 -0
  100. package/grammars/mdx.json +5629 -0
  101. package/grammars/mermaid.json +1382 -0
  102. package/grammars/mojo.json +4153 -0
  103. package/grammars/narrat.json +227 -0
  104. package/grammars/nextflow.json +298 -0
  105. package/grammars/nginx.json +2121 -0
  106. package/grammars/nim.json +1522 -0
  107. package/grammars/nix.json +1200 -0
  108. package/grammars/nushell.json +1047 -0
  109. package/grammars/objective-c.json +3750 -0
  110. package/grammars/objective-cpp.json +7242 -0
  111. package/grammars/ocaml.json +2967 -0
  112. package/grammars/pascal.json +154 -0
  113. package/grammars/perl.json +2971 -0
  114. package/grammars/php.json +4024 -0
  115. package/grammars/plsql.json +241 -0
  116. package/grammars/postcss.json +377 -0
  117. package/grammars/powerquery.json +349 -0
  118. package/grammars/powershell.json +1024 -0
  119. package/grammars/prisma.json +443 -0
  120. package/grammars/prolog.json +298 -0
  121. package/grammars/proto.json +507 -0
  122. package/grammars/pug.json +1033 -0
  123. package/grammars/puppet.json +777 -0
  124. package/grammars/purescript.json +871 -0
  125. package/grammars/python.json +4208 -0
  126. package/grammars/r.json +637 -0
  127. package/grammars/raku.json +310 -0
  128. package/grammars/razor.json +1813 -0
  129. package/grammars/reg.json +136 -0
  130. package/grammars/rel.json +200 -0
  131. package/grammars/riscv.json +298 -0
  132. package/grammars/rst.json +734 -0
  133. package/grammars/ruby.json +2769 -0
  134. package/grammars/rust.json +1171 -0
  135. package/grammars/sas.json +302 -0
  136. package/grammars/sass.json +618 -0
  137. package/grammars/scala.json +1313 -0
  138. package/grammars/scheme.json +384 -0
  139. package/grammars/scss.json +1874 -0
  140. package/grammars/shaderlab.json +199 -0
  141. package/grammars/shellscript.json +2025 -0
  142. package/grammars/shellsession.json +33 -0
  143. package/grammars/smalltalk.json +235 -0
  144. package/grammars/solidity.json +1210 -0
  145. package/grammars/sparql.json +45 -0
  146. package/grammars/splunk.json +91 -0
  147. package/grammars/sql.json +631 -0
  148. package/grammars/ssh-config.json +88 -0
  149. package/grammars/stata.json +3050 -0
  150. package/grammars/stylus.json +1208 -0
  151. package/grammars/svelte.json +1171 -0
  152. package/grammars/swift.json +4203 -0
  153. package/grammars/system-verilog.json +1063 -0
  154. package/grammars/tasl.json +292 -0
  155. package/grammars/tcl.json +291 -0
  156. package/grammars/tex.json +281 -0
  157. package/grammars/toml.json +431 -0
  158. package/grammars/tsx.json +5984 -0
  159. package/grammars/turtle.json +261 -0
  160. package/grammars/twig.json +1394 -0
  161. package/grammars/typescript.json +5735 -0
  162. package/grammars/v.json +1001 -0
  163. package/grammars/vb.json +232 -0
  164. package/grammars/verilog.json +305 -0
  165. package/grammars/vhdl.json +1484 -0
  166. package/grammars/viml.json +445 -0
  167. package/grammars/vue-html.json +559 -0
  168. package/grammars/vue.json +1237 -0
  169. package/grammars/vyper.json +5415 -0
  170. package/grammars/wasm.json +831 -0
  171. package/grammars/wenyan.json +129 -0
  172. package/grammars/wgsl.json +391 -0
  173. package/grammars/wolfram.json +2370 -0
  174. package/grammars/xml.json +382 -0
  175. package/grammars/xsl.json +89 -0
  176. package/grammars/yaml.json +616 -0
  177. package/grammars/zenscript.json +257 -0
  178. package/grammars/zig.json +312 -0
  179. package/index.d.ts +18 -0
  180. package/index.js +2165 -0
  181. package/package.json +46 -0
@@ -0,0 +1,2650 @@
1
+ {
2
+ "displayName": "Hack",
3
+ "fileTypes": [
4
+ "hh",
5
+ "php",
6
+ "hack"
7
+ ],
8
+ "foldingStartMarker": "(/\\*|\\{\\s*$|<<<HTML)",
9
+ "foldingStopMarker": "(\\*/|^\\s*\\}|^HTML;)",
10
+ "name": "hack",
11
+ "patterns": [
12
+ {
13
+ "include": "text.html.basic"
14
+ },
15
+ {
16
+ "include": "#language"
17
+ }
18
+ ],
19
+ "repository": {
20
+ "attributes": {
21
+ "patterns": [
22
+ {
23
+ "begin": "(<<)(?!<)",
24
+ "beginCaptures": {
25
+ "1": {
26
+ "name": "punctuation.definition.attributes.php"
27
+ }
28
+ },
29
+ "end": "(>>)",
30
+ "endCaptures": {
31
+ "1": {
32
+ "name": "punctuation.definition.attributes.php"
33
+ }
34
+ },
35
+ "name": "meta.attributes.php",
36
+ "patterns": [
37
+ {
38
+ "include": "#comments"
39
+ },
40
+ {
41
+ "match": "([A-Za-z_][A-Za-z0-9_]*)",
42
+ "name": "entity.other.attribute-name.php"
43
+ },
44
+ {
45
+ "begin": "(\\()",
46
+ "beginCaptures": {
47
+ "1": {
48
+ "name": "punctuation.definition.parameters.begin.php"
49
+ }
50
+ },
51
+ "end": "(\\))",
52
+ "endCaptures": {
53
+ "1": {
54
+ "name": "punctuation.definition.parameters.end.php"
55
+ }
56
+ },
57
+ "patterns": [
58
+ {
59
+ "include": "#language"
60
+ }
61
+ ]
62
+ }
63
+ ]
64
+ }
65
+ ]
66
+ },
67
+ "class-builtin": {
68
+ "patterns": [
69
+ {
70
+ "captures": {
71
+ "1": {
72
+ "name": "punctuation.separator.inheritance.php"
73
+ }
74
+ },
75
+ "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|Writer)|SLTProcessor)|M(ysqlndUh(Connection|PreparedStatement)|ongo(Re(sultException|gex)|Grid(fsFile|FS(Cursor|File)?)|BinData|C(o(de|llection)|ursor(Exception)?|lient)|Timestamp|I(nt(32|64)|d)|D(B(Ref)?|ate)|Pool|Log)?|u(tex|ltipleIterator)|e(ssageFormatter|mcache(d)?))|Bad(MethodCallException|FunctionCallException)|tidy(Node)?|S(tackable|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(ttp(Re(sponse|quest(Pool)?)|Message|InflateStream|DeflateStream|QueryString)|aru(Image|Outline|D(oc|estination)|Page|Encoder|Font|Annotation))|Yaf_(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))|N(o(RewindIterator|rmalizer)|umberFormatter)|C(o(nd|untable|llator)|a(chingIterator|llbackFilterIterator))|T(hread|okyoTyrant(Table|Iterator|Query)?|ra(nsliterator|versable))|I(n(tlDateFormatter|validArgumentException|finiteIterator)|terator(Iterator|Aggregate)?|magick(Draw|Pixel(Iterator)?)?)|php_user_filter|ZipArchive|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(Zone)?|Interval|Period))|Un(derflowException|expectedValueException)|JsonSerializable|finfo|P(har(Data|FileInfo)?|DO(Statement)?|arentIterator)|E(v(S(tat|ignal)|Ch(ild|eck)|Timer|I(o|dle)|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))|Fil(terIterator|esystemIterator)|mysqli(_(stmt|driver|warning|result))?|W(orker|eak(Map|ref))|L(imitIterator|o(cale|gicException)|ua(Closure)?|engthException|apack)|A(MQP(C(hannel|onnection)|E(nvelope|xchange)|Queue)|ppendIterator|PCIterator|rray(Iterator|Object|Access)))\\b",
76
+ "name": "support.class.builtin.php"
77
+ }
78
+ ]
79
+ },
80
+ "class-name": {
81
+ "patterns": [
82
+ {
83
+ "begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
84
+ "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
85
+ "endCaptures": {
86
+ "1": {
87
+ "name": "support.class.php"
88
+ }
89
+ },
90
+ "patterns": [
91
+ {
92
+ "include": "#namespace"
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "include": "#class-builtin"
98
+ },
99
+ {
100
+ "begin": "(?=[\\\\a-zA-Z_])",
101
+ "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
102
+ "endCaptures": {
103
+ "1": {
104
+ "name": "support.class.php"
105
+ }
106
+ },
107
+ "patterns": [
108
+ {
109
+ "include": "#namespace"
110
+ }
111
+ ]
112
+ }
113
+ ]
114
+ },
115
+ "comments": {
116
+ "patterns": [
117
+ {
118
+ "begin": "/\\*\\*(?:#@\\+)?\\s*$",
119
+ "captures": {
120
+ "0": {
121
+ "name": "punctuation.definition.comment.php"
122
+ }
123
+ },
124
+ "comment": "This now only highlights a docblock if the first line contains only /**\n- this is to stop highlighting everything as invalid when people do comment banners with /******** ...\n- Now matches /**#@+ too - used for docblock templates:\n http://manual.phpdoc.org/HTMLframesConverter/default/phpDocumentor/tutorial_phpDocumentor.howto.pkg.html#basics.docblocktemplate",
125
+ "end": "\\*/",
126
+ "name": "comment.block.documentation.phpdoc.php",
127
+ "patterns": [
128
+ {
129
+ "include": "#php_doc"
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "begin": "/\\*",
135
+ "captures": {
136
+ "0": {
137
+ "name": "punctuation.definition.comment.php"
138
+ }
139
+ },
140
+ "end": "\\*/",
141
+ "name": "comment.block.php"
142
+ },
143
+ {
144
+ "begin": "(^[ \\t]+)?(?=//)",
145
+ "beginCaptures": {
146
+ "1": {
147
+ "name": "punctuation.whitespace.comment.leading.php"
148
+ }
149
+ },
150
+ "end": "(?!\\G)",
151
+ "patterns": [
152
+ {
153
+ "begin": "//",
154
+ "beginCaptures": {
155
+ "0": {
156
+ "name": "punctuation.definition.comment.php"
157
+ }
158
+ },
159
+ "end": "\\n|(?=\\?>)",
160
+ "name": "comment.line.double-slash.php"
161
+ }
162
+ ]
163
+ }
164
+ ]
165
+ },
166
+ "constants": {
167
+ "patterns": [
168
+ {
169
+ "begin": "(?xi)\n(?=\n (\n (\\\\[a-z_][a-z_0-9]*\\\\[a-z_][a-z_0-9\\\\]*)\n |\n ([a-z_][a-z_0-9]*\\\\[a-z_][a-z_0-9\\\\]*)\n )\n [^a-z_0-9\\\\]\n)",
170
+ "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
171
+ "endCaptures": {
172
+ "1": {
173
+ "name": "constant.other.php"
174
+ }
175
+ },
176
+ "patterns": [
177
+ {
178
+ "include": "#namespace"
179
+ }
180
+ ]
181
+ },
182
+ {
183
+ "begin": "(?=\\\\?[a-zA-Z_\\x{7f}-\\x{ff}])",
184
+ "end": "(?=[^\\\\a-zA-Z_\\x{7f}-\\x{ff}])",
185
+ "patterns": [
186
+ {
187
+ "match": "(?i)\\b(TRUE|FALSE|NULL|__(FILE|DIR|FUNCTION|CLASS|METHOD|LINE|NAMESPACE)__)\\b",
188
+ "name": "constant.language.php"
189
+ },
190
+ {
191
+ "captures": {
192
+ "1": {
193
+ "name": "punctuation.separator.inheritance.php"
194
+ }
195
+ },
196
+ "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",
197
+ "name": "support.constant.core.php"
198
+ },
199
+ {
200
+ "captures": {
201
+ "1": {
202
+ "name": "punctuation.separator.inheritance.php"
203
+ }
204
+ },
205
+ "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",
206
+ "name": "support.constant.std.php"
207
+ },
208
+ {
209
+ "captures": {
210
+ "1": {
211
+ "name": "punctuation.separator.inheritance.php"
212
+ }
213
+ },
214
+ "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",
215
+ "name": "support.constant.ext.php"
216
+ },
217
+ {
218
+ "captures": {
219
+ "1": {
220
+ "name": "punctuation.separator.inheritance.php"
221
+ }
222
+ },
223
+ "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",
224
+ "name": "support.constant.parser-token.php"
225
+ },
226
+ {
227
+ "comment": "In PHP, any identifier which is not a variable is taken to be a constant.\nHowever, if there is no constant defined with the given name then a notice\nis generated and the constant is assumed to have the value of its name.",
228
+ "match": "[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*",
229
+ "name": "constant.other.php"
230
+ }
231
+ ]
232
+ }
233
+ ]
234
+ },
235
+ "function-arguments": {
236
+ "patterns": [
237
+ {
238
+ "include": "#comments"
239
+ },
240
+ {
241
+ "include": "#attributes"
242
+ },
243
+ {
244
+ "include": "#type-annotation"
245
+ },
246
+ {
247
+ "begin": "(?xi)((\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # The variable name",
248
+ "beginCaptures": {
249
+ "1": {
250
+ "name": "variable.other.php"
251
+ },
252
+ "2": {
253
+ "name": "punctuation.definition.variable.php"
254
+ }
255
+ },
256
+ "end": "(?xi)\n\\s*(?=,|\\)|$) # A closing parentheses (end of argument list) or a comma",
257
+ "patterns": [
258
+ {
259
+ "begin": "(=)",
260
+ "beginCaptures": {
261
+ "1": {
262
+ "name": "keyword.operator.assignment.php"
263
+ }
264
+ },
265
+ "end": "(?=,|\\))",
266
+ "patterns": [
267
+ {
268
+ "include": "#language"
269
+ }
270
+ ]
271
+ }
272
+ ]
273
+ }
274
+ ]
275
+ },
276
+ "function-call": {
277
+ "patterns": [
278
+ {
279
+ "begin": "(?i)(?=\\\\?[a-z_0-9\\\\]+\\\\[a-z_][a-z0-9_]*\\s*\\()",
280
+ "comment": "Functions in a user-defined namespace (overrides any built-ins)",
281
+ "end": "(?=\\s*\\()",
282
+ "patterns": [
283
+ {
284
+ "include": "#user-function-call"
285
+ }
286
+ ]
287
+ },
288
+ {
289
+ "match": "(?i)\\b(print|echo)\\b",
290
+ "name": "support.function.construct.php"
291
+ },
292
+ {
293
+ "begin": "(?i)(\\\\)?(?=\\b[a-z_][a-z_0-9]*\\s*\\()",
294
+ "beginCaptures": {
295
+ "1": {
296
+ "name": "punctuation.separator.inheritance.php"
297
+ }
298
+ },
299
+ "comment": "Root namespace function calls (built-in or user)",
300
+ "end": "(?=\\s*\\()",
301
+ "patterns": [
302
+ {
303
+ "match": "(?i)\\b(isset|unset|e(val|mpty)|list)(?=\\s*\\()",
304
+ "name": "support.function.construct.php"
305
+ },
306
+ {
307
+ "include": "#support"
308
+ },
309
+ {
310
+ "include": "#user-function-call"
311
+ }
312
+ ]
313
+ }
314
+ ]
315
+ },
316
+ "function-return-type": {
317
+ "patterns": [
318
+ {
319
+ "begin": "(:)",
320
+ "beginCaptures": {
321
+ "1": {
322
+ "name": "punctuation.definition.type.php"
323
+ }
324
+ },
325
+ "end": "(?=[{;])",
326
+ "patterns": [
327
+ {
328
+ "include": "#comments"
329
+ },
330
+ {
331
+ "include": "#type-annotation"
332
+ },
333
+ {
334
+ "include": "#class-name"
335
+ }
336
+ ]
337
+ }
338
+ ]
339
+ },
340
+ "generics": {
341
+ "patterns": [
342
+ {
343
+ "begin": "(<)",
344
+ "beginCaptures": {
345
+ "1": {
346
+ "name": "punctuation.definition.generics.php"
347
+ }
348
+ },
349
+ "end": "(>)",
350
+ "endCaptures": {
351
+ "1": {
352
+ "name": "punctuation.definition.generics.php"
353
+ }
354
+ },
355
+ "name": "meta.generics.php",
356
+ "patterns": [
357
+ {
358
+ "include": "#comments"
359
+ },
360
+ {
361
+ "include": "#generics"
362
+ },
363
+ {
364
+ "match": "([-+])?([A-Za-z_][A-Za-z0-9_]*)(?:\\s+(as|super)\\s+([A-Za-z_][A-Za-z0-9_]*))?",
365
+ "name": "support.type.php"
366
+ },
367
+ {
368
+ "include": "#type-annotation"
369
+ }
370
+ ]
371
+ }
372
+ ]
373
+ },
374
+ "heredoc": {
375
+ "patterns": [
376
+ {
377
+ "begin": "<<<\\s*(\"?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\1)\\s*$",
378
+ "beginCaptures": {
379
+ "2": {
380
+ "name": "keyword.operator.heredoc.php"
381
+ }
382
+ },
383
+ "end": "^(\\2)(?=;?$)",
384
+ "endCaptures": {
385
+ "1": {
386
+ "name": "keyword.operator.heredoc.php"
387
+ }
388
+ },
389
+ "name": "string.unquoted.heredoc.php",
390
+ "patterns": [
391
+ {
392
+ "include": "#interpolation"
393
+ }
394
+ ]
395
+ },
396
+ {
397
+ "begin": "<<<\\s*('?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\1)\\s*$",
398
+ "beginCaptures": {
399
+ "2": {
400
+ "name": "keyword.operator.heredoc.php"
401
+ }
402
+ },
403
+ "end": "^(\\2)(?=;?$)",
404
+ "endCaptures": {
405
+ "1": {
406
+ "name": "keyword.operator.heredoc.php"
407
+ }
408
+ },
409
+ "name": "string.unquoted.heredoc.nowdoc.php"
410
+ }
411
+ ]
412
+ },
413
+ "implements": {
414
+ "patterns": [
415
+ {
416
+ "begin": "(?i)(implements)\\s+",
417
+ "beginCaptures": {
418
+ "1": {
419
+ "name": "storage.modifier.implements.php"
420
+ }
421
+ },
422
+ "end": "(?i)(?=[;{])",
423
+ "patterns": [
424
+ {
425
+ "include": "#comments"
426
+ },
427
+ {
428
+ "begin": "(?i)(?=[a-z0-9_\\\\]+)",
429
+ "contentName": "meta.other.inherited-class.php",
430
+ "end": "(?i)(?:\\s*(?:,|(?=[^a-z0-9_\\\\\\s]))\\s*)",
431
+ "patterns": [
432
+ {
433
+ "begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
434
+ "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
435
+ "endCaptures": {
436
+ "1": {
437
+ "name": "entity.other.inherited-class.php"
438
+ }
439
+ },
440
+ "patterns": [
441
+ {
442
+ "include": "#namespace"
443
+ }
444
+ ]
445
+ },
446
+ {
447
+ "include": "#class-builtin"
448
+ },
449
+ {
450
+ "include": "#namespace"
451
+ },
452
+ {
453
+ "match": "(?i)[a-z_][a-z_0-9]*",
454
+ "name": "entity.other.inherited-class.php"
455
+ }
456
+ ]
457
+ }
458
+ ]
459
+ }
460
+ ]
461
+ },
462
+ "instantiation": {
463
+ "begin": "(?i)(new)\\s+",
464
+ "beginCaptures": {
465
+ "1": {
466
+ "name": "keyword.other.new.php"
467
+ }
468
+ },
469
+ "end": "(?i)(?=[^$a-z0-9_\\\\])",
470
+ "patterns": [
471
+ {
472
+ "match": "(parent|static|self)(?=[^a-z0-9_])",
473
+ "name": "support.type.php"
474
+ },
475
+ {
476
+ "include": "#class-name"
477
+ },
478
+ {
479
+ "include": "#variable-name"
480
+ }
481
+ ]
482
+ },
483
+ "interface": {
484
+ "begin": "^(?i)\\s*(?:(public|internal)\\s+)?(interface)\\b",
485
+ "beginCaptures": {
486
+ "1": {
487
+ "name": "storage.modifier.php"
488
+ },
489
+ "2": {
490
+ "name": "storage.type.interface.php"
491
+ }
492
+ },
493
+ "end": "(?=[;{])",
494
+ "name": "meta.interface.php",
495
+ "patterns": [
496
+ {
497
+ "include": "#comments"
498
+ },
499
+ {
500
+ "captures": {
501
+ "1": {
502
+ "name": "storage.modifier.extends.php"
503
+ }
504
+ },
505
+ "match": "\\b(extends)\\b"
506
+ },
507
+ {
508
+ "include": "#generics"
509
+ },
510
+ {
511
+ "include": "#namespace"
512
+ },
513
+ {
514
+ "match": "(?i)[a-z0-9_]+",
515
+ "name": "entity.name.type.class.php"
516
+ }
517
+ ]
518
+ },
519
+ "interpolation": {
520
+ "comment": "http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing",
521
+ "patterns": [
522
+ {
523
+ "comment": "Interpolating octal values e.g. \\01 or \\07.",
524
+ "match": "\\\\[0-7]{1,3}",
525
+ "name": "constant.numeric.octal.php"
526
+ },
527
+ {
528
+ "comment": "Interpolating hex values e.g. \\x1 or \\xFF.",
529
+ "match": "\\\\x[0-9A-Fa-f]{1,2}",
530
+ "name": "constant.numeric.hex.php"
531
+ },
532
+ {
533
+ "comment": "Escaped characters in double-quoted strings e.g. \\n or \\t.",
534
+ "match": "\\\\[nrt\\\\\\$\\\"]",
535
+ "name": "constant.character.escape.php"
536
+ },
537
+ {
538
+ "comment": "Interpolating expressions in double-quoted strings with {} e.g. {$x->y->z[0][1]}.",
539
+ "match": "(\\{\\$.*?\\})",
540
+ "name": "variable.other.php"
541
+ },
542
+ {
543
+ "comment": "Interpolating simple variables, e.g. $x, $x->y, $x[z] but not $x->y->z.",
544
+ "match": "(\\$[a-zA-Z_][a-zA-Z0-9_]*((->[a-zA-Z_][a-zA-Z0-9_]*)|(\\[[a-zA-Z0-9_]+\\]))?)",
545
+ "name": "variable.other.php"
546
+ }
547
+ ]
548
+ },
549
+ "invoke-call": {
550
+ "captures": {
551
+ "1": {
552
+ "name": "punctuation.definition.variable.php"
553
+ },
554
+ "2": {
555
+ "name": "variable.other.php"
556
+ }
557
+ },
558
+ "match": "(?i)(\\$+)([a-z_][a-z_0-9]*)(?=\\s*\\()",
559
+ "name": "meta.function-call.invoke.php"
560
+ },
561
+ "language": {
562
+ "patterns": [
563
+ {
564
+ "include": "#comments"
565
+ },
566
+ {
567
+ "begin": "(?=^\\s*<<)",
568
+ "end": "(?<=>>)",
569
+ "patterns": [
570
+ {
571
+ "include": "#attributes"
572
+ }
573
+ ]
574
+ },
575
+ {
576
+ "include": "#xhp"
577
+ },
578
+ {
579
+ "include": "#interface"
580
+ },
581
+ {
582
+ "begin": "(?xi)\n^\\s*\n(?:(module)\\s*)?(type|newtype)\n\\s+\n([a-z0-9_]+)",
583
+ "beginCaptures": {
584
+ "1": {
585
+ "name": "storage.modifier.php"
586
+ },
587
+ "2": {
588
+ "name": "storage.type.typedecl.php"
589
+ },
590
+ "3": {
591
+ "name": "entity.name.type.typedecl.php"
592
+ }
593
+ },
594
+ "end": "(;)",
595
+ "endCaptures": {
596
+ "1": {
597
+ "name": "punctuation.termination.expression.php"
598
+ }
599
+ },
600
+ "name": "meta.typedecl.php",
601
+ "patterns": [
602
+ {
603
+ "include": "#comments"
604
+ },
605
+ {
606
+ "include": "#generics"
607
+ },
608
+ {
609
+ "match": "(=)",
610
+ "name": "keyword.operator.assignment.php"
611
+ },
612
+ {
613
+ "include": "#type-annotation"
614
+ }
615
+ ]
616
+ },
617
+ {
618
+ "begin": "(?i)^\\s*(?:(public|internal)\\s+)?(enum)\\s+(class)\\s+([a-z0-9_]+)\\s*:?",
619
+ "beginCaptures": {
620
+ "1": {
621
+ "name": "storage.modifier.php"
622
+ },
623
+ "2": {
624
+ "name": "storage.modifier.php"
625
+ },
626
+ "3": {
627
+ "name": "storage.type.class.enum.php"
628
+ },
629
+ "4": {
630
+ "name": "entity.name.type.class.enum.php"
631
+ }
632
+ },
633
+ "end": "(?=[{])",
634
+ "name": "meta.class.enum.php",
635
+ "patterns": [
636
+ {
637
+ "match": "\\b(extends)\\b",
638
+ "name": "storage.modifier.extends.php"
639
+ },
640
+ {
641
+ "include": "#type-annotation"
642
+ }
643
+ ]
644
+ },
645
+ {
646
+ "begin": "(?i)^\\s*(?:(public|internal)\\s+)?(enum)\\s+([a-z0-9_]+)\\s*:?",
647
+ "beginCaptures": {
648
+ "1": {
649
+ "name": "storage.modifier.php"
650
+ },
651
+ "2": {
652
+ "name": "storage.type.enum.php"
653
+ },
654
+ "3": {
655
+ "name": "entity.name.type.enum.php"
656
+ }
657
+ },
658
+ "end": "\\{",
659
+ "name": "meta.enum.php",
660
+ "patterns": [
661
+ {
662
+ "include": "#comments"
663
+ },
664
+ {
665
+ "include": "#type-annotation"
666
+ }
667
+ ]
668
+ },
669
+ {
670
+ "begin": "(?i)^\\s*(?:(public|internal)\\s+)?(trait)\\s+([a-z0-9_]+)\\s*",
671
+ "beginCaptures": {
672
+ "1": {
673
+ "name": "storage.modifier.php"
674
+ },
675
+ "2": {
676
+ "name": "storage.type.trait.php"
677
+ },
678
+ "3": {
679
+ "name": "entity.name.type.class.php"
680
+ }
681
+ },
682
+ "end": "(?=[{])",
683
+ "name": "meta.trait.php",
684
+ "patterns": [
685
+ {
686
+ "include": "#comments"
687
+ },
688
+ {
689
+ "include": "#generics"
690
+ },
691
+ {
692
+ "include": "#implements"
693
+ }
694
+ ]
695
+ },
696
+ {
697
+ "begin": "^\\s*(new)\\s+(module)\\s+([A-Za-z0-9_\\.]+)\\b",
698
+ "beginCaptures": {
699
+ "1": {
700
+ "name": "storage.type.module.php"
701
+ },
702
+ "2": {
703
+ "name": "storage.type.module.php"
704
+ },
705
+ "3": {
706
+ "name": "entity.name.type.module.php"
707
+ }
708
+ },
709
+ "end": "(?=[{])",
710
+ "name": "meta.module.php",
711
+ "patterns": [
712
+ {
713
+ "include": "#comments"
714
+ }
715
+ ]
716
+ },
717
+ {
718
+ "begin": "^\\s*(module)\\s+([A-Za-z0-9_\\.]+)\\b",
719
+ "beginCaptures": {
720
+ "1": {
721
+ "name": "keyword.other.module.php"
722
+ },
723
+ "2": {
724
+ "name": "entity.name.type.module.php"
725
+ }
726
+ },
727
+ "end": "$|(?=[\\s;])",
728
+ "name": "meta.use.module.php",
729
+ "patterns": [
730
+ {
731
+ "include": "#comments"
732
+ }
733
+ ]
734
+ },
735
+ {
736
+ "begin": "(?i)(?:^\\s*|\\s*)(namespace)\\b\\s+(?=([a-z0-9_\\\\]*\\s*($|[;{]|(\\/[\\/*])))|$)",
737
+ "beginCaptures": {
738
+ "1": {
739
+ "name": "keyword.other.namespace.php"
740
+ }
741
+ },
742
+ "contentName": "entity.name.type.namespace.php",
743
+ "end": "(?i)(?=\\s*$|[^a-z0-9_\\\\])",
744
+ "name": "meta.namespace.php",
745
+ "patterns": [
746
+ {
747
+ "match": "\\\\",
748
+ "name": "punctuation.separator.inheritance.php"
749
+ }
750
+ ]
751
+ },
752
+ {
753
+ "begin": "(?i)\\s*\\b(use)\\s+",
754
+ "beginCaptures": {
755
+ "1": {
756
+ "name": "keyword.other.use.php"
757
+ }
758
+ },
759
+ "end": "(?=;|(?:^\\s*$))",
760
+ "name": "meta.use.php",
761
+ "patterns": [
762
+ {
763
+ "include": "#comments"
764
+ },
765
+ {
766
+ "begin": "(?i)\\s*(?=[a-z_0-9\\\\])",
767
+ "end": "(?xi)\n(?:\n (?:\\s*(as)\\b\\s*([a-z_0-9]*)\\s*(?=,|;|$))|\n (?=,|;|$)\n)",
768
+ "endCaptures": {
769
+ "1": {
770
+ "name": "keyword.other.use-as.php"
771
+ },
772
+ "2": {
773
+ "name": "support.other.namespace.use-as.php"
774
+ }
775
+ },
776
+ "patterns": [
777
+ {
778
+ "include": "#class-builtin"
779
+ },
780
+ {
781
+ "begin": "(?i)\\s*(?=[\\\\a-z_0-9])",
782
+ "end": "$|(?=[\\s,;])",
783
+ "name": "support.other.namespace.use.php",
784
+ "patterns": [
785
+ {
786
+ "match": "\\\\",
787
+ "name": "punctuation.separator.inheritance.php"
788
+ }
789
+ ]
790
+ }
791
+ ]
792
+ },
793
+ {
794
+ "match": "\\s*,\\s*"
795
+ }
796
+ ]
797
+ },
798
+ {
799
+ "begin": "(?i)^\\s*((?:(?:final|abstract|public|internal)\\s+)*)(class)\\s+([a-z0-9_]+)\\s*",
800
+ "beginCaptures": {
801
+ "1": {
802
+ "patterns": [
803
+ {
804
+ "match": "final|abstract|public|internal",
805
+ "name": "storage.modifier.php"
806
+ }
807
+ ]
808
+ },
809
+ "2": {
810
+ "name": "storage.type.class.php"
811
+ },
812
+ "3": {
813
+ "name": "entity.name.type.class.php"
814
+ }
815
+ },
816
+ "end": "(?=[;{])",
817
+ "name": "meta.class.php",
818
+ "patterns": [
819
+ {
820
+ "include": "#comments"
821
+ },
822
+ {
823
+ "include": "#generics"
824
+ },
825
+ {
826
+ "include": "#implements"
827
+ },
828
+ {
829
+ "begin": "(?i)(extends)\\s+",
830
+ "beginCaptures": {
831
+ "1": {
832
+ "name": "storage.modifier.extends.php"
833
+ }
834
+ },
835
+ "contentName": "meta.other.inherited-class.php",
836
+ "end": "(?i)(?=[^a-z_0-9\\\\])",
837
+ "patterns": [
838
+ {
839
+ "begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
840
+ "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
841
+ "endCaptures": {
842
+ "1": {
843
+ "name": "entity.other.inherited-class.php"
844
+ }
845
+ },
846
+ "patterns": [
847
+ {
848
+ "include": "#namespace"
849
+ }
850
+ ]
851
+ },
852
+ {
853
+ "include": "#class-builtin"
854
+ },
855
+ {
856
+ "include": "#namespace"
857
+ },
858
+ {
859
+ "match": "(?i)[a-z_][a-z_0-9]*",
860
+ "name": "entity.other.inherited-class.php"
861
+ }
862
+ ]
863
+ }
864
+ ]
865
+ },
866
+ {
867
+ "captures": {
868
+ "1": {
869
+ "name": "keyword.control.php"
870
+ }
871
+ },
872
+ "match": "\\s*\\b(await|break|c(ase|ontinue)|concurrent|default|do|else|for(each)?|if|return|switch|use|while)\\b"
873
+ },
874
+ {
875
+ "begin": "(?i)\\b((?:require|include)(?:_once)?)\\b\\s*",
876
+ "beginCaptures": {
877
+ "1": {
878
+ "name": "keyword.control.import.include.php"
879
+ }
880
+ },
881
+ "end": "(?=\\s|;|$)",
882
+ "name": "meta.include.php",
883
+ "patterns": [
884
+ {
885
+ "include": "#language"
886
+ }
887
+ ]
888
+ },
889
+ {
890
+ "begin": "\\b(catch)\\s*(\\()",
891
+ "beginCaptures": {
892
+ "1": {
893
+ "name": "keyword.control.exception.catch.php"
894
+ },
895
+ "2": {
896
+ "name": "punctuation.definition.parameters.begin.bracket.round.php"
897
+ }
898
+ },
899
+ "end": "\\)",
900
+ "endCaptures": {
901
+ "0": {
902
+ "name": "punctuation.definition.parameters.end.bracket.round.php"
903
+ }
904
+ },
905
+ "name": "meta.catch.php",
906
+ "patterns": [
907
+ {
908
+ "include": "#namespace"
909
+ },
910
+ {
911
+ "captures": {
912
+ "1": {
913
+ "name": "support.class.exception.php"
914
+ },
915
+ "2": {
916
+ "patterns": [
917
+ {
918
+ "match": "(?i)[a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*",
919
+ "name": "support.class.exception.php"
920
+ },
921
+ {
922
+ "match": "\\|",
923
+ "name": "punctuation.separator.delimiter.php"
924
+ }
925
+ ]
926
+ },
927
+ "3": {
928
+ "name": "variable.other.php"
929
+ },
930
+ "4": {
931
+ "name": "punctuation.definition.variable.php"
932
+ }
933
+ },
934
+ "match": "(?xi)\n([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*) # Exception class\n((?:\\s*\\|\\s*[a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)*) # Optional additional exception classes\n\\s*\n((\\$+)[a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*) # Variable"
935
+ }
936
+ ]
937
+ },
938
+ {
939
+ "match": "\\b(catch|try|throw|exception|finally)\\b",
940
+ "name": "keyword.control.exception.php"
941
+ },
942
+ {
943
+ "begin": "(?i)\\s*(?:(public|internal)\\s+)?(function)\\s*(?=\\()",
944
+ "beginCaptures": {
945
+ "1": {
946
+ "name": "storage.modifier.php"
947
+ },
948
+ "2": {
949
+ "name": "storage.type.function.php"
950
+ }
951
+ },
952
+ "end": "\\{|\\)",
953
+ "name": "meta.function.closure.php",
954
+ "patterns": [
955
+ {
956
+ "begin": "(\\()",
957
+ "beginCaptures": {
958
+ "1": {
959
+ "name": "punctuation.definition.parameters.begin.php"
960
+ }
961
+ },
962
+ "contentName": "meta.function.arguments.php",
963
+ "end": "(\\))",
964
+ "endCaptures": {
965
+ "1": {
966
+ "name": "punctuation.definition.parameters.end.php"
967
+ }
968
+ },
969
+ "patterns": [
970
+ {
971
+ "include": "#function-arguments"
972
+ }
973
+ ]
974
+ },
975
+ {
976
+ "begin": "(?i)(use)\\s*(\\()",
977
+ "beginCaptures": {
978
+ "1": {
979
+ "name": "keyword.other.function.use.php"
980
+ },
981
+ "2": {
982
+ "name": "punctuation.definition.parameters.begin.php"
983
+ }
984
+ },
985
+ "end": "(\\))",
986
+ "endCaptures": {
987
+ "1": {
988
+ "name": "punctuation.definition.parameters.end.php"
989
+ }
990
+ },
991
+ "patterns": [
992
+ {
993
+ "captures": {
994
+ "1": {
995
+ "name": "storage.modifier.reference.php"
996
+ },
997
+ "2": {
998
+ "name": "variable.other.php"
999
+ },
1000
+ "3": {
1001
+ "name": "punctuation.definition.variable.php"
1002
+ }
1003
+ },
1004
+ "match": "(?:\\s*(&))?\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\\s*(?=,|\\))",
1005
+ "name": "meta.function.closure.use.php"
1006
+ }
1007
+ ]
1008
+ }
1009
+ ]
1010
+ },
1011
+ {
1012
+ "begin": "(?x)\n\\s*((?:(?:final|abstract|public|private|protected|internal|static|async)\\s+)*)\n(function)\n(?:\\s+)\n(?:\n (__(?:call|construct|destruct|get|set|isset|unset|tostring|clone|set_state|sleep|wakeup|autoload|invoke|callStatic|dispose|disposeAsync)(?=[^a-zA-Z0-9_\\x7f-\\xff]))\n |\n ([a-zA-Z0-9_]+)\n)",
1013
+ "beginCaptures": {
1014
+ "1": {
1015
+ "patterns": [
1016
+ {
1017
+ "match": "final|abstract|public|private|protected|internal|static|async",
1018
+ "name": "storage.modifier.php"
1019
+ }
1020
+ ]
1021
+ },
1022
+ "2": {
1023
+ "name": "storage.type.function.php"
1024
+ },
1025
+ "3": {
1026
+ "name": "support.function.magic.php"
1027
+ },
1028
+ "4": {
1029
+ "name": "entity.name.function.php"
1030
+ },
1031
+ "5": {
1032
+ "name": "meta.function.generics.php"
1033
+ }
1034
+ },
1035
+ "end": "(?=[{;])",
1036
+ "name": "meta.function.php",
1037
+ "patterns": [
1038
+ {
1039
+ "include": "#generics"
1040
+ },
1041
+ {
1042
+ "begin": "(\\()",
1043
+ "beginCaptures": {
1044
+ "1": {
1045
+ "name": "punctuation.definition.parameters.begin.php"
1046
+ }
1047
+ },
1048
+ "contentName": "meta.function.arguments.php",
1049
+ "end": "(?=\\))",
1050
+ "patterns": [
1051
+ {
1052
+ "include": "#function-arguments"
1053
+ }
1054
+ ]
1055
+ },
1056
+ {
1057
+ "begin": "(\\))",
1058
+ "beginCaptures": {
1059
+ "1": {
1060
+ "name": "punctuation.definition.parameters.end.php"
1061
+ }
1062
+ },
1063
+ "end": "(?=[{;])",
1064
+ "patterns": [
1065
+ {
1066
+ "include": "#function-return-type"
1067
+ }
1068
+ ]
1069
+ }
1070
+ ]
1071
+ },
1072
+ {
1073
+ "include": "#invoke-call"
1074
+ },
1075
+ {
1076
+ "begin": "(?xi)\n\\s*\n (?=\n [a-z_0-9$\\\\]+(::)\n (?:\n ([a-z_][a-z_0-9]*)\\s*\\(\n |\n ((\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\n |\n ([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\n )?\n )",
1077
+ "end": "(?x)\n(::)\n(?:\n ([A-Za-z_][A-Za-z_0-9]*)\\s*\\(\n |\n ((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n |\n ([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n)?",
1078
+ "endCaptures": {
1079
+ "1": {
1080
+ "name": "keyword.operator.class.php"
1081
+ },
1082
+ "2": {
1083
+ "name": "meta.function-call.static.php"
1084
+ },
1085
+ "3": {
1086
+ "name": "variable.other.class.php"
1087
+ },
1088
+ "4": {
1089
+ "name": "punctuation.definition.variable.php"
1090
+ },
1091
+ "5": {
1092
+ "name": "constant.other.class.php"
1093
+ }
1094
+ },
1095
+ "patterns": [
1096
+ {
1097
+ "match": "(self|static|parent)\\b",
1098
+ "name": "support.type.php"
1099
+ },
1100
+ {
1101
+ "include": "#class-name"
1102
+ },
1103
+ {
1104
+ "include": "#variable-name"
1105
+ }
1106
+ ]
1107
+ },
1108
+ {
1109
+ "include": "#variables"
1110
+ },
1111
+ {
1112
+ "include": "#strings"
1113
+ },
1114
+ {
1115
+ "captures": {
1116
+ "1": {
1117
+ "name": "support.function.construct.php"
1118
+ },
1119
+ "2": {
1120
+ "name": "punctuation.definition.array.begin.php"
1121
+ },
1122
+ "3": {
1123
+ "name": "punctuation.definition.array.end.php"
1124
+ }
1125
+ },
1126
+ "match": "(array)(\\()(\\))",
1127
+ "name": "meta.array.empty.php"
1128
+ },
1129
+ {
1130
+ "begin": "(array)(\\()",
1131
+ "beginCaptures": {
1132
+ "1": {
1133
+ "name": "support.function.construct.php"
1134
+ },
1135
+ "2": {
1136
+ "name": "punctuation.definition.array.begin.php"
1137
+ }
1138
+ },
1139
+ "end": "\\)",
1140
+ "endCaptures": {
1141
+ "0": {
1142
+ "name": "punctuation.definition.array.end.php"
1143
+ }
1144
+ },
1145
+ "name": "meta.array.php",
1146
+ "patterns": [
1147
+ {
1148
+ "include": "#language"
1149
+ }
1150
+ ]
1151
+ },
1152
+ {
1153
+ "captures": {
1154
+ "1": {
1155
+ "name": "support.type.php"
1156
+ }
1157
+ },
1158
+ "match": "(?i)\\s*\\(\\s*(array|real|double|float|int(eger)?|bool(ean)?|string|object|binary|unset|arraykey|nonnull|dict|vec|keyset)\\s*\\)"
1159
+ },
1160
+ {
1161
+ "match": "(?i)\\b(array|real|double|float|int(eger)?|bool(ean)?|string|class|clone|var|function|interface|trait|parent|self|object|arraykey|nonnull|dict|vec|keyset)\\b",
1162
+ "name": "support.type.php"
1163
+ },
1164
+ {
1165
+ "match": "(?i)\\b(global|abstract|const|extends|implements|final|p(r(ivate|otected)|ublic)|internal|static)\\b",
1166
+ "name": "storage.modifier.php"
1167
+ },
1168
+ {
1169
+ "include": "#object"
1170
+ },
1171
+ {
1172
+ "match": ";",
1173
+ "name": "punctuation.terminator.expression.php"
1174
+ },
1175
+ {
1176
+ "include": "#heredoc"
1177
+ },
1178
+ {
1179
+ "match": "\\.=?",
1180
+ "name": "keyword.operator.string.php"
1181
+ },
1182
+ {
1183
+ "match": "=>",
1184
+ "name": "keyword.operator.key.php"
1185
+ },
1186
+ {
1187
+ "match": "==>",
1188
+ "name": "keyword.operator.lambda.php"
1189
+ },
1190
+ {
1191
+ "match": "\\|>",
1192
+ "name": "keyword.operator.pipe.php"
1193
+ },
1194
+ {
1195
+ "match": "(!==|!=|===|==)",
1196
+ "name": "keyword.operator.comparison.php"
1197
+ },
1198
+ {
1199
+ "match": "=|\\+=|\\-=|\\*=|/=|%=|&=|\\|=|\\^=|<<=|>>=",
1200
+ "name": "keyword.operator.assignment.php"
1201
+ },
1202
+ {
1203
+ "match": "(<=|>=|<|>)",
1204
+ "name": "keyword.operator.comparison.php"
1205
+ },
1206
+ {
1207
+ "match": "(\\-\\-|\\+\\+)",
1208
+ "name": "keyword.operator.increment-decrement.php"
1209
+ },
1210
+ {
1211
+ "match": "(\\-|\\+|\\*|/|%)",
1212
+ "name": "keyword.operator.arithmetic.php"
1213
+ },
1214
+ {
1215
+ "match": "(!|&&|\\|\\|)",
1216
+ "name": "keyword.operator.logical.php"
1217
+ },
1218
+ {
1219
+ "begin": "(?i)\\b(as|is)\\b\\s+(?=[\\\\$a-z_])",
1220
+ "beginCaptures": {
1221
+ "1": {
1222
+ "name": "keyword.operator.type.php"
1223
+ }
1224
+ },
1225
+ "end": "(?=[^\\\\$A-Za-z_0-9])",
1226
+ "patterns": [
1227
+ {
1228
+ "include": "#class-name"
1229
+ },
1230
+ {
1231
+ "include": "#variable-name"
1232
+ }
1233
+ ]
1234
+ },
1235
+ {
1236
+ "match": "(?i)\\b(is|as)\\b",
1237
+ "name": "keyword.operator.type.php"
1238
+ },
1239
+ {
1240
+ "include": "#function-call"
1241
+ },
1242
+ {
1243
+ "match": "<<|>>|~|\\^|&|\\|",
1244
+ "name": "keyword.operator.bitwise.php"
1245
+ },
1246
+ {
1247
+ "include": "#numbers"
1248
+ },
1249
+ {
1250
+ "include": "#instantiation"
1251
+ },
1252
+ {
1253
+ "begin": "\\[",
1254
+ "beginCaptures": {
1255
+ "0": {
1256
+ "name": "punctuation.section.array.begin.php"
1257
+ }
1258
+ },
1259
+ "end": "\\]",
1260
+ "endCaptures": {
1261
+ "0": {
1262
+ "name": "punctuation.section.array.end.php"
1263
+ }
1264
+ },
1265
+ "patterns": [
1266
+ {
1267
+ "include": "#language"
1268
+ }
1269
+ ]
1270
+ },
1271
+ {
1272
+ "include": "#literal-collections"
1273
+ },
1274
+ {
1275
+ "begin": "\\{",
1276
+ "beginCaptures": {
1277
+ "0": {
1278
+ "name": "punctuation.section.scope.begin.php"
1279
+ }
1280
+ },
1281
+ "end": "\\}",
1282
+ "endCaptures": {
1283
+ "0": {
1284
+ "name": "punctuation.section.scope.end.php"
1285
+ }
1286
+ },
1287
+ "patterns": [
1288
+ {
1289
+ "include": "#language"
1290
+ }
1291
+ ]
1292
+ },
1293
+ {
1294
+ "include": "#constants"
1295
+ }
1296
+ ]
1297
+ },
1298
+ "literal-collections": {
1299
+ "patterns": [
1300
+ {
1301
+ "begin": "(Vector|ImmVector|Set|ImmSet|Map|ImmMap|Pair)\\s*({)",
1302
+ "beginCaptures": {
1303
+ "1": {
1304
+ "name": "support.class.php"
1305
+ },
1306
+ "2": {
1307
+ "name": "punctuation.section.array.begin.php"
1308
+ }
1309
+ },
1310
+ "end": "(})",
1311
+ "endCaptures": {
1312
+ "1": {
1313
+ "name": "punctuation.section.array.end.php"
1314
+ }
1315
+ },
1316
+ "name": "meta.collection.literal.php",
1317
+ "patterns": [
1318
+ {
1319
+ "include": "#language"
1320
+ }
1321
+ ]
1322
+ }
1323
+ ]
1324
+ },
1325
+ "namespace": {
1326
+ "begin": "(?i)((namespace)|[a-z0-9_]+)?(\\\\)(?=.*?[^a-z_0-9\\\\])",
1327
+ "beginCaptures": {
1328
+ "1": {
1329
+ "name": "entity.name.type.namespace.php"
1330
+ },
1331
+ "3": {
1332
+ "name": "punctuation.separator.inheritance.php"
1333
+ }
1334
+ },
1335
+ "end": "(?i)(?=[a-z0-9_]*[^a-z0-9_\\\\])",
1336
+ "name": "support.other.namespace.php",
1337
+ "patterns": [
1338
+ {
1339
+ "match": "(?i)[a-z0-9_]+(?=\\\\)",
1340
+ "name": "entity.name.type.namespace.php"
1341
+ },
1342
+ {
1343
+ "captures": {
1344
+ "1": {
1345
+ "name": "punctuation.separator.inheritance.php"
1346
+ }
1347
+ },
1348
+ "match": "(?i)(\\\\)"
1349
+ }
1350
+ ]
1351
+ },
1352
+ "numbers": {
1353
+ "match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b",
1354
+ "name": "constant.numeric.php"
1355
+ },
1356
+ "object": {
1357
+ "patterns": [
1358
+ {
1359
+ "begin": "(->)(\\$?\\{)",
1360
+ "beginCaptures": {
1361
+ "1": {
1362
+ "name": "keyword.operator.class.php"
1363
+ },
1364
+ "2": {
1365
+ "name": "punctuation.definition.variable.php"
1366
+ }
1367
+ },
1368
+ "end": "(\\})",
1369
+ "endCaptures": {
1370
+ "1": {
1371
+ "name": "punctuation.definition.variable.php"
1372
+ }
1373
+ },
1374
+ "patterns": [
1375
+ {
1376
+ "include": "#language"
1377
+ }
1378
+ ]
1379
+ },
1380
+ {
1381
+ "captures": {
1382
+ "1": {
1383
+ "name": "keyword.operator.class.php"
1384
+ },
1385
+ "2": {
1386
+ "name": "meta.function-call.object.php"
1387
+ },
1388
+ "3": {
1389
+ "name": "variable.other.property.php"
1390
+ },
1391
+ "4": {
1392
+ "name": "punctuation.definition.variable.php"
1393
+ }
1394
+ },
1395
+ "match": "(?x)\n(->)\n (?:\n ([A-Za-z_][A-Za-z_0-9]*)\\s*\\(\n |\n ((\\$+)?[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n )?"
1396
+ }
1397
+ ]
1398
+ },
1399
+ "parameter-default-types": {
1400
+ "patterns": [
1401
+ {
1402
+ "include": "#strings"
1403
+ },
1404
+ {
1405
+ "include": "#numbers"
1406
+ },
1407
+ {
1408
+ "include": "#variables"
1409
+ },
1410
+ {
1411
+ "match": "=>",
1412
+ "name": "keyword.operator.key.php"
1413
+ },
1414
+ {
1415
+ "match": "=",
1416
+ "name": "keyword.operator.assignment.php"
1417
+ },
1418
+ {
1419
+ "include": "#instantiation"
1420
+ },
1421
+ {
1422
+ "begin": "(?xi)\n\\s*\n(?=\n [a-z_0-9\\\\]+(::)\n ([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?\n)",
1423
+ "end": "(?i)(::)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?",
1424
+ "endCaptures": {
1425
+ "1": {
1426
+ "name": "keyword.operator.class.php"
1427
+ },
1428
+ "2": {
1429
+ "name": "constant.other.class.php"
1430
+ }
1431
+ },
1432
+ "patterns": [
1433
+ {
1434
+ "include": "#class-name"
1435
+ }
1436
+ ]
1437
+ },
1438
+ {
1439
+ "include": "#constants"
1440
+ }
1441
+ ]
1442
+ },
1443
+ "php_doc": {
1444
+ "patterns": [
1445
+ {
1446
+ "comment": "PHPDocumentor only recognises lines with an asterisk as the first non-whitespaces character",
1447
+ "match": "^(?!\\s*\\*).*$\\n?",
1448
+ "name": "invalid.illegal.missing-asterisk.phpdoc.php"
1449
+ },
1450
+ {
1451
+ "captures": {
1452
+ "1": {
1453
+ "name": "keyword.other.phpdoc.php"
1454
+ },
1455
+ "3": {
1456
+ "name": "storage.modifier.php"
1457
+ },
1458
+ "4": {
1459
+ "name": "invalid.illegal.wrong-access-type.phpdoc.php"
1460
+ }
1461
+ },
1462
+ "match": "^\\s*\\*\\s*(@access)\\s+((public|private|protected|internal)|(.+))\\s*$"
1463
+ },
1464
+ {
1465
+ "captures": {
1466
+ "1": {
1467
+ "name": "keyword.other.phpdoc.php"
1468
+ },
1469
+ "2": {
1470
+ "name": "markup.underline.link.php"
1471
+ }
1472
+ },
1473
+ "match": "(@xlink)\\s+(.+)\\s*$"
1474
+ },
1475
+ {
1476
+ "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",
1477
+ "name": "keyword.other.phpdoc.php"
1478
+ },
1479
+ {
1480
+ "captures": {
1481
+ "1": {
1482
+ "name": "keyword.other.phpdoc.php"
1483
+ }
1484
+ },
1485
+ "match": "\\{(@(link)).+?\\}",
1486
+ "name": "meta.tag.inline.phpdoc.php"
1487
+ }
1488
+ ]
1489
+ },
1490
+ "regex-double-quoted": {
1491
+ "begin": "(?x)\n(?<=re)\"/ (?=(\\\\.|[^\"/])++/[imsxeADSUXu]*\")",
1492
+ "beginCaptures": {
1493
+ "0": {
1494
+ "name": "punctuation.definition.string.begin.php"
1495
+ }
1496
+ },
1497
+ "end": "(/)([imsxeADSUXu]*)(\")",
1498
+ "endCaptures": {
1499
+ "0": {
1500
+ "name": "punctuation.definition.string.end.php"
1501
+ }
1502
+ },
1503
+ "name": "string.regexp.double-quoted.php",
1504
+ "patterns": [
1505
+ {
1506
+ "comment": "Escaped from the regexp – there can also be 2 backslashes (since 1 will escape the first)",
1507
+ "match": "(\\\\){1,2}[.$^\\[\\]{}]",
1508
+ "name": "constant.character.escape.regex.php"
1509
+ },
1510
+ {
1511
+ "include": "#interpolation"
1512
+ },
1513
+ {
1514
+ "captures": {
1515
+ "1": {
1516
+ "name": "punctuation.definition.arbitrary-repetition.php"
1517
+ },
1518
+ "3": {
1519
+ "name": "punctuation.definition.arbitrary-repetition.php"
1520
+ }
1521
+ },
1522
+ "match": "(\\{)\\d+(,\\d+)?(\\})",
1523
+ "name": "string.regexp.arbitrary-repetition.php"
1524
+ },
1525
+ {
1526
+ "begin": "\\[(?:\\^?\\])?",
1527
+ "captures": {
1528
+ "0": {
1529
+ "name": "punctuation.definition.character-class.php"
1530
+ }
1531
+ },
1532
+ "end": "\\]",
1533
+ "name": "string.regexp.character-class.php",
1534
+ "patterns": [
1535
+ {
1536
+ "include": "#interpolation"
1537
+ }
1538
+ ]
1539
+ },
1540
+ {
1541
+ "match": "[$^+*]",
1542
+ "name": "keyword.operator.regexp.php"
1543
+ }
1544
+ ]
1545
+ },
1546
+ "regex-single-quoted": {
1547
+ "begin": "(?x)\n(?<=re)'/ (?=(\\\\.|[^'/])++/[imsxeADSUXu]*')",
1548
+ "beginCaptures": {
1549
+ "0": {
1550
+ "name": "punctuation.definition.string.begin.php"
1551
+ }
1552
+ },
1553
+ "end": "(/)([imsxeADSUXu]*)(')",
1554
+ "endCaptures": {
1555
+ "0": {
1556
+ "name": "punctuation.definition.string.end.php"
1557
+ }
1558
+ },
1559
+ "name": "string.regexp.single-quoted.php",
1560
+ "patterns": [
1561
+ {
1562
+ "captures": {
1563
+ "1": {
1564
+ "name": "punctuation.definition.arbitrary-repetition.php"
1565
+ },
1566
+ "3": {
1567
+ "name": "punctuation.definition.arbitrary-repetition.php"
1568
+ }
1569
+ },
1570
+ "match": "(\\{)\\d+(,\\d+)?(\\})",
1571
+ "name": "string.regexp.arbitrary-repetition.php"
1572
+ },
1573
+ {
1574
+ "comment": "Escaped from the regexp – there can also be 2 backslashes (since 1 will escape the first)",
1575
+ "match": "(\\\\){1,2}[.$^\\[\\]{}]",
1576
+ "name": "constant.character.escape.regex.php"
1577
+ },
1578
+ {
1579
+ "comment": "Escaped from the PHP string – there can also be 2 backslashes (since 1 will escape the first)",
1580
+ "match": "\\\\{1,2}[\\\\']",
1581
+ "name": "constant.character.escape.php"
1582
+ },
1583
+ {
1584
+ "begin": "\\[(?:\\^?\\])?",
1585
+ "captures": {
1586
+ "0": {
1587
+ "name": "punctuation.definition.character-class.php"
1588
+ }
1589
+ },
1590
+ "end": "\\]",
1591
+ "name": "string.regexp.character-class.php",
1592
+ "patterns": [
1593
+ {
1594
+ "match": "\\\\[\\\\'\\[\\]]",
1595
+ "name": "constant.character.escape.php"
1596
+ }
1597
+ ]
1598
+ },
1599
+ {
1600
+ "match": "[$^+*]",
1601
+ "name": "keyword.operator.regexp.php"
1602
+ }
1603
+ ]
1604
+ },
1605
+ "sql-string-double-quoted": {
1606
+ "begin": "\"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)",
1607
+ "beginCaptures": {
1608
+ "0": {
1609
+ "name": "punctuation.definition.string.begin.php"
1610
+ }
1611
+ },
1612
+ "contentName": "source.sql.embedded.php",
1613
+ "end": "\"",
1614
+ "endCaptures": {
1615
+ "0": {
1616
+ "name": "punctuation.definition.string.end.php"
1617
+ }
1618
+ },
1619
+ "name": "string.quoted.double.sql.php",
1620
+ "patterns": [
1621
+ {
1622
+ "comment": "Open parens cause the next escaped character to not be captured as an\nescape character. Example: $x = \"SELECT (\")\";",
1623
+ "match": "\\(",
1624
+ "name": "punctuation.definition.parameters.begin.bracket.round.php"
1625
+ },
1626
+ {
1627
+ "match": "#(\\\\\"|[^\"])*(?=\"|$\\n?)",
1628
+ "name": "comment.line.number-sign.sql"
1629
+ },
1630
+ {
1631
+ "match": "--(\\\\\"|[^\"])*(?=\"|$\\n?)",
1632
+ "name": "comment.line.double-dash.sql"
1633
+ },
1634
+ {
1635
+ "match": "\\\\[\\\\\"`']",
1636
+ "name": "constant.character.escape.php"
1637
+ },
1638
+ {
1639
+ "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\nSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
1640
+ "match": "'(?=((\\\\')|[^'\"])*(\"|$))",
1641
+ "name": "string.quoted.single.unclosed.sql"
1642
+ },
1643
+ {
1644
+ "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\nSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
1645
+ "match": "`(?=((\\\\`)|[^`\"])*(\"|$))",
1646
+ "name": "string.quoted.other.backtick.unclosed.sql"
1647
+ },
1648
+ {
1649
+ "begin": "'",
1650
+ "end": "'",
1651
+ "name": "string.quoted.single.sql",
1652
+ "patterns": [
1653
+ {
1654
+ "include": "#interpolation"
1655
+ }
1656
+ ]
1657
+ },
1658
+ {
1659
+ "begin": "`",
1660
+ "end": "`",
1661
+ "name": "string.quoted.other.backtick.sql",
1662
+ "patterns": [
1663
+ {
1664
+ "include": "#interpolation"
1665
+ }
1666
+ ]
1667
+ },
1668
+ {
1669
+ "include": "#interpolation"
1670
+ },
1671
+ {
1672
+ "include": "source.sql"
1673
+ }
1674
+ ]
1675
+ },
1676
+ "sql-string-single-quoted": {
1677
+ "begin": "'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)",
1678
+ "beginCaptures": {
1679
+ "0": {
1680
+ "name": "punctuation.definition.string.begin.php"
1681
+ }
1682
+ },
1683
+ "contentName": "source.sql.embedded.php",
1684
+ "end": "'",
1685
+ "endCaptures": {
1686
+ "0": {
1687
+ "name": "punctuation.definition.string.end.php"
1688
+ }
1689
+ },
1690
+ "name": "string.quoted.single.sql.php",
1691
+ "patterns": [
1692
+ {
1693
+ "comment": "Open parens cause the next escaped character to not be captured as an\nescape character. Example: $x = 'SELECT (')';",
1694
+ "match": "\\(",
1695
+ "name": "punctuation.definition.parameters.begin.bracket.round.php"
1696
+ },
1697
+ {
1698
+ "match": "#(\\\\'|[^'])*(?='|$\\n?)",
1699
+ "name": "comment.line.number-sign.sql"
1700
+ },
1701
+ {
1702
+ "match": "--(\\\\'|[^'])*(?='|$\\n?)",
1703
+ "name": "comment.line.double-dash.sql"
1704
+ },
1705
+ {
1706
+ "match": "\\\\[\\\\'`\"]",
1707
+ "name": "constant.character.escape.php"
1708
+ },
1709
+ {
1710
+ "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\nSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
1711
+ "match": "`(?=((\\\\`)|[^`'])*('|$))",
1712
+ "name": "string.quoted.other.backtick.unclosed.sql"
1713
+ },
1714
+ {
1715
+ "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\nSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
1716
+ "match": "\"(?=((\\\\\")|[^\"'])*('|$))",
1717
+ "name": "string.quoted.double.unclosed.sql"
1718
+ },
1719
+ {
1720
+ "include": "source.sql"
1721
+ }
1722
+ ]
1723
+ },
1724
+ "string-double-quoted": {
1725
+ "begin": "\"",
1726
+ "beginCaptures": {
1727
+ "0": {
1728
+ "name": "punctuation.definition.string.begin.php"
1729
+ }
1730
+ },
1731
+ "comment": "This contentName is just to allow the usage of “select scope” to select the string contents first, then the string with quotes",
1732
+ "contentName": "meta.string-contents.quoted.double.php",
1733
+ "end": "\"",
1734
+ "endCaptures": {
1735
+ "0": {
1736
+ "name": "punctuation.definition.string.end.php"
1737
+ }
1738
+ },
1739
+ "name": "string.quoted.double.php",
1740
+ "patterns": [
1741
+ {
1742
+ "include": "#interpolation"
1743
+ }
1744
+ ]
1745
+ },
1746
+ "string-single-quoted": {
1747
+ "begin": "'",
1748
+ "beginCaptures": {
1749
+ "0": {
1750
+ "name": "punctuation.definition.string.begin.php"
1751
+ }
1752
+ },
1753
+ "contentName": "meta.string-contents.quoted.single.php",
1754
+ "end": "'",
1755
+ "endCaptures": {
1756
+ "0": {
1757
+ "name": "punctuation.definition.string.end.php"
1758
+ }
1759
+ },
1760
+ "name": "string.quoted.single.php",
1761
+ "patterns": [
1762
+ {
1763
+ "match": "\\\\[\\\\']",
1764
+ "name": "constant.character.escape.php"
1765
+ }
1766
+ ]
1767
+ },
1768
+ "strings": {
1769
+ "patterns": [
1770
+ {
1771
+ "include": "#regex-double-quoted"
1772
+ },
1773
+ {
1774
+ "include": "#sql-string-double-quoted"
1775
+ },
1776
+ {
1777
+ "include": "#string-double-quoted"
1778
+ },
1779
+ {
1780
+ "include": "#regex-single-quoted"
1781
+ },
1782
+ {
1783
+ "include": "#sql-string-single-quoted"
1784
+ },
1785
+ {
1786
+ "include": "#string-single-quoted"
1787
+ }
1788
+ ]
1789
+ },
1790
+ "support": {
1791
+ "patterns": [
1792
+ {
1793
+ "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",
1794
+ "name": "support.function.apc.php"
1795
+ },
1796
+ {
1797
+ "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|rsort)|list|a(sort|r(sort|ray(_(s(hift|um|plice|earch|lice)|c(h(unk|ange_key_case)|o(unt_values|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",
1798
+ "name": "support.function.array.php"
1799
+ },
1800
+ {
1801
+ "match": "(?i)\\b(s(how_source|ys_getloadavg|leep)|highlight_(string|file)|con(stant|nection_(status|timeout|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",
1802
+ "name": "support.function.basic_functions.php"
1803
+ },
1804
+ {
1805
+ "match": "(?i)\\bbc(s(cale|ub|qrt)|comp|div|pow(mod)?|add|m(od|ul))\\b",
1806
+ "name": "support.function.bcmath.php"
1807
+ },
1808
+ {
1809
+ "match": "(?i)\\bbz(c(ompress|lose)|open|decompress|err(str|no|or)|flush|write|read)\\b",
1810
+ "name": "support.function.bz2.php"
1811
+ },
1812
+ {
1813
+ "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",
1814
+ "name": "support.function.calendar.php"
1815
+ },
1816
+ {
1817
+ "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",
1818
+ "name": "support.function.classobj.php"
1819
+ },
1820
+ {
1821
+ "match": "(?i)\\b(com_(set|create_guid|i(senum|nvoke)|pr(int_typeinfo|op(set|put|get))|event_sink|load(_typelib)?|addref|release|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",
1822
+ "name": "support.function.com.php"
1823
+ },
1824
+ {
1825
+ "match": "(?i)\\bctype_(space|cntrl|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit)\\b",
1826
+ "name": "support.function.ctype.php"
1827
+ },
1828
+ {
1829
+ "match": "(?i)\\bcurl_(setopt(_array)?|c(opy_handle|lose)|init|e(rr(no|or)|xec)|version|getinfo|multi_(select|close|in(it|fo_read)|exec|add_handle|remove_handle|getcontent))\\b",
1830
+ "name": "support.function.curl.php"
1831
+ },
1832
+ {
1833
+ "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(_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",
1834
+ "name": "support.function.datetime.php"
1835
+ },
1836
+ {
1837
+ "match": "(?i)\\bdba_(sync|handlers|nextkey|close|insert|op(timize|en)|delete|popen|exists|key_split|f(irstkey|etch)|list|replace)\\b",
1838
+ "name": "support.function.dba.php"
1839
+ },
1840
+ {
1841
+ "match": "(?i)\\bdbx_(sort|c(o(nnect|mpare)|lose)|e(scape_string|rror)|query|fetch_row)\\b",
1842
+ "name": "support.function.dbx.php"
1843
+ },
1844
+ {
1845
+ "match": "(?i)\\b(scandir|c(h(dir|root)|losedir)|opendir|dir|re(winddir|addir)|getcwd)\\b",
1846
+ "name": "support.function.dir.php"
1847
+ },
1848
+ {
1849
+ "match": "(?i)\\bdotnet_load\\b",
1850
+ "name": "support.function.dotnet.php"
1851
+ },
1852
+ {
1853
+ "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",
1854
+ "name": "support.function.eio.php"
1855
+ },
1856
+ {
1857
+ "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",
1858
+ "name": "support.function.enchant.php"
1859
+ },
1860
+ {
1861
+ "match": "(?i)\\b(s(plit(i)?|ql_regcase)|ereg(i(_replace)?|_replace)?)\\b",
1862
+ "name": "support.function.ereg.php"
1863
+ },
1864
+ {
1865
+ "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",
1866
+ "name": "support.function.errorfunc.php"
1867
+ },
1868
+ {
1869
+ "match": "(?i)\\b(s(hell_exec|ystem)|p(assthru|roc_(nice|close|terminate|open|get_status))|e(scapeshell(cmd|arg)|xec))\\b",
1870
+ "name": "support.function.exec.php"
1871
+ },
1872
+ {
1873
+ "match": "(?i)\\b(exif_(t(humbnail|agname)|imagetype|read_data)|read_exif_data)\\b",
1874
+ "name": "support.function.exif.php"
1875
+ },
1876
+ {
1877
+ "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",
1878
+ "name": "support.function.file.php"
1879
+ },
1880
+ {
1881
+ "match": "(?i)\\b(finfo_(set_flags|close|open|file|buffer)|mime_content_type)\\b",
1882
+ "name": "support.function.fileinfo.php"
1883
+ },
1884
+ {
1885
+ "match": "(?i)\\bfilter_(has_var|i(nput(_array)?|d)|var(_array)?|list)\\b",
1886
+ "name": "support.function.filter.php"
1887
+ },
1888
+ {
1889
+ "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",
1890
+ "name": "support.function.funchand.php"
1891
+ },
1892
+ {
1893
+ "match": "(?i)\\b(ngettext|textdomain|d(ngettext|c(ngettext|gettext)|gettext)|gettext|bind(textdomain|_textdomain_codeset))\\b",
1894
+ "name": "support.function.gettext.php"
1895
+ },
1896
+ {
1897
+ "match": "(?i)\\bgmp_(s(can(1|0)|trval|ign|ub|etbit|qrt(rem)?)|hamdist|ne(g|xtprime)|c(om|lrbit|mp)|testbit|in(tval|it|vert)|or|div(_(q(r)?|r)|exact)?|jacobi|p(o(pcount|w(m)?)|erfect_square|rob_prime)|fact|legendre|a(nd|dd|bs)|random|gcd(ext)?|xor|m(od|ul))\\b",
1898
+ "name": "support.function.gmp.php"
1899
+ },
1900
+ {
1901
+ "match": "(?i)\\bhash(_(hmac(_file)?|copy|init|update(_(stream|file))?|pbkdf2|fi(nal|le)|algos))?\\b",
1902
+ "name": "support.function.hash.php"
1903
+ },
1904
+ {
1905
+ "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",
1906
+ "name": "support.function.http.php"
1907
+ },
1908
+ {
1909
+ "match": "(?i)\\b(iconv(_(s(tr(pos|len|rpos)|ubstr|et_encoding)|get_encoding|mime_(decode(_headers)?|encode)))?|ob_iconv_handler)\\b",
1910
+ "name": "support.function.iconv.php"
1911
+ },
1912
+ {
1913
+ "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",
1914
+ "name": "support.function.iisfunc.php"
1915
+ },
1916
+ {
1917
+ "match": "(?i)\\b(i(ptc(parse|embed)|mage(s(y|tring(up)?|et(style|t(hickness|ile)|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))|reate(truecolor|from(string|jpeg|png|wbmp|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|alettecopy)|ellipse|f(t(text|bbox)|il(ter|l(toborder|ed(polygon|ellipse|arc|rectangle))?)|ont(height|width))|wbmp|l(ine|oadfont|ayereffect)|a(ntialias|lphablending|rc)|r(otate|ectangle)|g(if|d(2)?|ammacorrect|rab(screen|window))|xbm))|jpeg2wbmp|png2wbmp|g(d_info|etimagesize(fromstring)?))\\b",
1918
+ "name": "support.function.image.php"
1919
+ },
1920
+ {
1921
+ "match": "(?i)\\b(s(ys_get_temp_dir|et_(time_limit|include_path|magic_quotes_runtime))|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",
1922
+ "name": "support.function.info.php"
1923
+ },
1924
+ {
1925
+ "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",
1926
+ "name": "support.function.interbase.php"
1927
+ },
1928
+ {
1929
+ "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_(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|compose|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",
1930
+ "name": "support.function.intl.php"
1931
+ },
1932
+ {
1933
+ "match": "(?i)\\bjson_(decode|encode|last_error)\\b",
1934
+ "name": "support.function.json.php"
1935
+ },
1936
+ {
1937
+ "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(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|_(del|add|replace))|bind)\\b",
1938
+ "name": "support.function.ldap.php"
1939
+ },
1940
+ {
1941
+ "match": "(?i)\\blibxml_(set_(streams_context|external_entity_loader)|clear_errors|disable_entity_loader|use_internal_errors|get_(errors|last_error))\\b",
1942
+ "name": "support.function.libxml.php"
1943
+ },
1944
+ {
1945
+ "match": "(?i)\\b(ezmlm_hash|mail)\\b",
1946
+ "name": "support.function.mail.php"
1947
+ },
1948
+ {
1949
+ "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",
1950
+ "name": "support.function.math.php"
1951
+ },
1952
+ {
1953
+ "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",
1954
+ "name": "support.function.mbstring.php"
1955
+ },
1956
+ {
1957
+ "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",
1958
+ "name": "support.function.mcrypt.php"
1959
+ },
1960
+ {
1961
+ "match": "(?i)\\bmemcache_debug\\b",
1962
+ "name": "support.function.memcache.php"
1963
+ },
1964
+ {
1965
+ "match": "(?i)\\bmhash(_(count|keygen_s2k|get_(hash_name|block_size)))?\\b",
1966
+ "name": "support.function.mhash.php"
1967
+ },
1968
+ {
1969
+ "match": "(?i)\\bbson_(decode|encode)\\b",
1970
+ "name": "support.function.mongo.php"
1971
+ },
1972
+ {
1973
+ "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",
1974
+ "name": "support.function.mysql.php"
1975
+ },
1976
+ {
1977
+ "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)|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|a(p_async_query|l_(connect|escape_string|query))))|get_(c(harset|onnection_stats|lient_(stats|info|version)|ache_stats)|warnings|metadata)|m(ore_results|ulti_query|aster_query)|bind_(param|result))\\b",
1978
+ "name": "support.function.mysqli.php"
1979
+ },
1980
+ {
1981
+ "match": "(?i)\\bmysqlnd_memcache_(set|get_config)\\b",
1982
+ "name": "support.function.mysqlnd-memcache.php"
1983
+ },
1984
+ {
1985
+ "match": "(?i)\\bmysqlnd_ms_(set_(user_pick_server|qos)|query_is_select|get_(stats|last_(used_connection|gtid))|match_wild)\\b",
1986
+ "name": "support.function.mysqlnd-ms.php"
1987
+ },
1988
+ {
1989
+ "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",
1990
+ "name": "support.function.mysqlnd-qc.php"
1991
+ },
1992
+ {
1993
+ "match": "(?i)\\bmysqlnd_uh_(set_(statement_proxy|connection_proxy)|convert_to_mysqlnd)\\b",
1994
+ "name": "support.function.mysqlnd-uh.php"
1995
+ },
1996
+ {
1997
+ "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",
1998
+ "name": "support.function.network.php"
1999
+ },
2000
+ {
2001
+ "match": "(?i)\\bnsapi_(virtual|re(sponse_headers|quest_headers))\\b",
2002
+ "name": "support.function.nsapi.php"
2003
+ },
2004
+ {
2005
+ "match": "(?i)\\b(deaggregate|aggregat(ion_info|e(_(info|properties(_by_(list|regexp))?|methods(_by_(list|regexp))?))?))\\b",
2006
+ "name": "support.function.objaggregation.php"
2007
+ },
2008
+ {
2009
+ "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)|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",
2010
+ "name": "support.function.oci8.php"
2011
+ },
2012
+ {
2013
+ "match": "(?i)\\bopenssl_(s(ign|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))|e(ncrypt|rror_string)|verify|free_key|random_pseudo_bytes|get_(cipher_methods|p(ublickey|rivatekey)|md_methods)|x509_(check(_private_key|purpose)|parse|export(_to_file)?|free|read))\\b",
2014
+ "name": "support.function.openssl.php"
2015
+ },
2016
+ {
2017
+ "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",
2018
+ "name": "support.function.output.php"
2019
+ },
2020
+ {
2021
+ "match": "(?i)\\bpassword_(hash|needs_rehash|verify|get_info)\\b",
2022
+ "name": "support.function.password.php"
2023
+ },
2024
+ {
2025
+ "match": "(?i)\\bpcntl_(s(ig(nal(_dispatch)?|timedwait|procmask|waitinfo)|etpriority)|exec|fork|w(stopsig|termsig|if(s(topped|ignaled)|exited)|exitstatus|ait(pid)?)|alarm|getpriority)\\b",
2026
+ "name": "support.function.pcntl.php"
2027
+ },
2028
+ {
2029
+ "match": "(?i)\\bpg_(se(nd_(prepare|execute|query(_params)?)|t_(client_encoding|error_verbosity)|lect)|host|num_(fields|rows)|c(o(n(nect(ion_(status|reset|busy))?|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))|ree_result)|l(o_(seek|c(lose|reate)|tell|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",
2030
+ "name": "support.function.pgsql.php"
2031
+ },
2032
+ {
2033
+ "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",
2034
+ "name": "support.function.php_apache.php"
2035
+ },
2036
+ {
2037
+ "match": "(?i)\\bdom_import_simplexml\\b",
2038
+ "name": "support.function.php_dom.php"
2039
+ },
2040
+ {
2041
+ "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",
2042
+ "name": "support.function.php_ftp.php"
2043
+ },
2044
+ {
2045
+ "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",
2046
+ "name": "support.function.php_imap.php"
2047
+ },
2048
+ {
2049
+ "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",
2050
+ "name": "support.function.php_mssql.php"
2051
+ },
2052
+ {
2053
+ "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",
2054
+ "name": "support.function.php_odbc.php"
2055
+ },
2056
+ {
2057
+ "match": "(?i)\\bpreg_(split|quote|filter|last_error|replace(_callback)?|grep|match(_all)?)\\b",
2058
+ "name": "support.function.php_pcre.php"
2059
+ },
2060
+ {
2061
+ "match": "(?i)\\b(spl_(classes|object_hash|autoload(_(call|unregister|extensions|functions|register))?)|class_(implements|uses|parents)|iterator_(count|to_array|apply))\\b",
2062
+ "name": "support.function.php_spl.php"
2063
+ },
2064
+ {
2065
+ "match": "(?i)\\bzip_(close|open|entry_(name|c(ompress(ionmethod|edsize)|lose)|open|filesize|read)|read)\\b",
2066
+ "name": "support.function.php_zip.php"
2067
+ },
2068
+ {
2069
+ "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",
2070
+ "name": "support.function.posix.php"
2071
+ },
2072
+ {
2073
+ "match": "(?i)\\bset(threadtitle|proctitle)\\b",
2074
+ "name": "support.function.proctitle.php"
2075
+ },
2076
+ {
2077
+ "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",
2078
+ "name": "support.function.pspell.php"
2079
+ },
2080
+ {
2081
+ "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",
2082
+ "name": "support.function.readline.php"
2083
+ },
2084
+ {
2085
+ "match": "(?i)\\brecode(_(string|file))?\\b",
2086
+ "name": "support.function.recode.php"
2087
+ },
2088
+ {
2089
+ "match": "(?i)\\brrd_(create|tune|info|update|error|version|f(irst|etch)|last(update)?|restore|graph|xport)\\b",
2090
+ "name": "support.function.rrd.php"
2091
+ },
2092
+ {
2093
+ "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",
2094
+ "name": "support.function.sem.php"
2095
+ },
2096
+ {
2097
+ "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|reg(ister(_shutdown)?|enerate_id)|get_cookie_params|module_name)\\b",
2098
+ "name": "support.function.session.php"
2099
+ },
2100
+ {
2101
+ "match": "(?i)\\bshmop_(size|close|open|delete|write|read)\\b",
2102
+ "name": "support.function.shmop.php"
2103
+ },
2104
+ {
2105
+ "match": "(?i)\\bsimplexml_(import_dom|load_(string|file))\\b",
2106
+ "name": "support.function.simplexml.php"
2107
+ },
2108
+ {
2109
+ "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",
2110
+ "name": "support.function.snmp.php"
2111
+ },
2112
+ {
2113
+ "match": "(?i)\\b(is_soap_fault|use_soap_error_handler)\\b",
2114
+ "name": "support.function.soap.php"
2115
+ },
2116
+ {
2117
+ "match": "(?i)\\bsocket_(s(hutdown|trerror|e(nd(to)?|t_(nonblock|option|block)|lect))|c(onnect|l(ose|ear_error)|reate(_(pair|listen))?)|import_stream|write|l(isten|ast_error)|accept|re(cv(from)?|ad)|get(sockname|_option|peername)|bind)\\b",
2118
+ "name": "support.function.sockets.php"
2119
+ },
2120
+ {
2121
+ "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",
2122
+ "name": "support.function.sqlite.php"
2123
+ },
2124
+ {
2125
+ "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",
2126
+ "name": "support.function.sqlsrv.php"
2127
+ },
2128
+ {
2129
+ "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",
2130
+ "name": "support.function.stats.php"
2131
+ },
2132
+ {
2133
+ "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",
2134
+ "name": "support.function.streamsfuncs.php"
2135
+ },
2136
+ {
2137
+ "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",
2138
+ "name": "support.function.string.php"
2139
+ },
2140
+ {
2141
+ "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",
2142
+ "name": "support.function.sybase.php"
2143
+ },
2144
+ {
2145
+ "match": "(?i)\\b(taint|is_tainted|untaint)\\b",
2146
+ "name": "support.function.taint.php"
2147
+ },
2148
+ {
2149
+ "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",
2150
+ "name": "support.function.tidy.php"
2151
+ },
2152
+ {
2153
+ "match": "(?i)\\btoken_(name|get_all)\\b",
2154
+ "name": "support.function.tokenizer.php"
2155
+ },
2156
+ {
2157
+ "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",
2158
+ "name": "support.function.trader.php"
2159
+ },
2160
+ {
2161
+ "match": "(?i)\\b(http_build_query|url(decode|encode)|parse_url|rawurl(decode|encode)|get_(headers|meta_tags)|base64_(decode|encode))\\b",
2162
+ "name": "support.function.url.php"
2163
+ },
2164
+ {
2165
+ "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|arraykey|nonnull|dict|vec|keyset))|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",
2166
+ "name": "support.function.var.php"
2167
+ },
2168
+ {
2169
+ "match": "(?i)\\bwddx_(serialize_va(lue|rs)|deserialize|packet_(start|end)|add_vars)\\b",
2170
+ "name": "support.function.wddx.php"
2171
+ },
2172
+ {
2173
+ "match": "(?i)\\bxhprof_(sample_(disable|enable)|disable|enable)\\b",
2174
+ "name": "support.function.xhprof.php"
2175
+ },
2176
+ {
2177
+ "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",
2178
+ "name": "support.function.xml.php"
2179
+ },
2180
+ {
2181
+ "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",
2182
+ "name": "support.function.xmlrpc.php"
2183
+ },
2184
+ {
2185
+ "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",
2186
+ "name": "support.function.xmlwriter.php"
2187
+ },
2188
+ {
2189
+ "match": "(?i)\\bxslt_(set(opt|_(s(cheme_handler(s)?|ax_handler(s)?)|object|e(ncoding|rror_handler)|log|base))|create|process|err(no|or)|free|getopt|backend_(name|info|version))\\b",
2190
+ "name": "support.function.xslt.php"
2191
+ },
2192
+ {
2193
+ "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",
2194
+ "name": "support.function.zlib.php"
2195
+ },
2196
+ {
2197
+ "match": "(?i)\\bis_int(eger)?\\b",
2198
+ "name": "support.function.alias.php"
2199
+ }
2200
+ ]
2201
+ },
2202
+ "type-annotation": {
2203
+ "name": "support.type.php",
2204
+ "patterns": [
2205
+ {
2206
+ "match": "\\b(?:bool|int|float|string|resource|mixed|arraykey|nonnull|dict|vec|keyset)\\b",
2207
+ "name": "support.type.php"
2208
+ },
2209
+ {
2210
+ "begin": "([A-Za-z_][A-Za-z0-9_]*)<",
2211
+ "beginCaptures": {
2212
+ "1": {
2213
+ "name": "support.class.php"
2214
+ }
2215
+ },
2216
+ "end": ">",
2217
+ "patterns": [
2218
+ {
2219
+ "include": "#type-annotation"
2220
+ }
2221
+ ]
2222
+ },
2223
+ {
2224
+ "begin": "(shape\\()",
2225
+ "end": "((,|\\.\\.\\.)?\\s*\\))",
2226
+ "endCaptures": {
2227
+ "1": {
2228
+ "name": "keyword.operator.key.php"
2229
+ }
2230
+ },
2231
+ "name": "storage.type.shape.php",
2232
+ "patterns": [
2233
+ {
2234
+ "include": "#type-annotation"
2235
+ },
2236
+ {
2237
+ "include": "#strings"
2238
+ },
2239
+ {
2240
+ "include": "#constants"
2241
+ }
2242
+ ]
2243
+ },
2244
+ {
2245
+ "begin": "\\(",
2246
+ "end": "\\)",
2247
+ "patterns": [
2248
+ {
2249
+ "include": "#type-annotation"
2250
+ }
2251
+ ]
2252
+ },
2253
+ {
2254
+ "include": "#class-name"
2255
+ },
2256
+ {
2257
+ "include": "#comments"
2258
+ }
2259
+ ]
2260
+ },
2261
+ "user-function-call": {
2262
+ "begin": "(?i)(?=[a-z_0-9\\\\]*[a-z_][a-z0-9_]*\\s*\\()",
2263
+ "end": "(?i)[a-z_][a-z_0-9]*(?=\\s*\\()",
2264
+ "endCaptures": {
2265
+ "0": {
2266
+ "name": "entity.name.function.php"
2267
+ }
2268
+ },
2269
+ "name": "meta.function-call.php",
2270
+ "patterns": [
2271
+ {
2272
+ "include": "#namespace"
2273
+ }
2274
+ ]
2275
+ },
2276
+ "var_basic": {
2277
+ "patterns": [
2278
+ {
2279
+ "captures": {
2280
+ "1": {
2281
+ "name": "punctuation.definition.variable.php"
2282
+ }
2283
+ },
2284
+ "match": "(?x)\n(\\$+)\n[a-zA-Z_\\x{7f}-\\x{ff}]\n[a-zA-Z0-9_\\x{7f}-\\x{ff}]*?\n\\b",
2285
+ "name": "variable.other.php"
2286
+ }
2287
+ ]
2288
+ },
2289
+ "var_global": {
2290
+ "captures": {
2291
+ "1": {
2292
+ "name": "punctuation.definition.variable.php"
2293
+ }
2294
+ },
2295
+ "match": "(\\$)((_(COOKIE|FILES|GET|POST|REQUEST))|arg(v|c))\\b",
2296
+ "name": "variable.other.global.php"
2297
+ },
2298
+ "var_global_safer": {
2299
+ "captures": {
2300
+ "1": {
2301
+ "name": "punctuation.definition.variable.php"
2302
+ }
2303
+ },
2304
+ "match": "(\\$)((GLOBALS|_(ENV|SERVER|SESSION)))",
2305
+ "name": "variable.other.global.safer.php"
2306
+ },
2307
+ "variable-name": {
2308
+ "patterns": [
2309
+ {
2310
+ "include": "#var_global"
2311
+ },
2312
+ {
2313
+ "include": "#var_global_safer"
2314
+ },
2315
+ {
2316
+ "captures": {
2317
+ "1": {
2318
+ "name": "variable.other.php"
2319
+ },
2320
+ "10": {
2321
+ "name": "string.unquoted.index.php"
2322
+ },
2323
+ "11": {
2324
+ "name": "punctuation.section.array.end.php"
2325
+ },
2326
+ "2": {
2327
+ "name": "punctuation.definition.variable.php"
2328
+ },
2329
+ "4": {
2330
+ "name": "keyword.operator.class.php"
2331
+ },
2332
+ "5": {
2333
+ "name": "variable.other.property.php"
2334
+ },
2335
+ "6": {
2336
+ "name": "punctuation.section.array.begin.php"
2337
+ },
2338
+ "7": {
2339
+ "name": "constant.numeric.index.php"
2340
+ },
2341
+ "8": {
2342
+ "name": "variable.other.index.php"
2343
+ },
2344
+ "9": {
2345
+ "name": "punctuation.definition.variable.php"
2346
+ }
2347
+ },
2348
+ "comment": "Simple syntax: $foo, $foo[0], $foo[$bar], $foo->bar",
2349
+ "match": "(?x)\n((\\$)(?<name>[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*))\n(?:\n (->)(\\g<name>)\n |\n (\\[)\n (?:(\\d+)|((\\$)\\g<name>)|(\\w+))\n (\\])\n)?"
2350
+ },
2351
+ {
2352
+ "captures": {
2353
+ "1": {
2354
+ "name": "variable.other.php"
2355
+ },
2356
+ "2": {
2357
+ "name": "punctuation.definition.variable.php"
2358
+ },
2359
+ "4": {
2360
+ "name": "punctuation.definition.variable.php"
2361
+ }
2362
+ },
2363
+ "comment": "Simple syntax with braces: \"foo${bar}baz\"",
2364
+ "match": "(?x)\n((\\$\\{)(?<name>[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(\\}))"
2365
+ }
2366
+ ]
2367
+ },
2368
+ "variables": {
2369
+ "patterns": [
2370
+ {
2371
+ "include": "#var_global"
2372
+ },
2373
+ {
2374
+ "include": "#var_global_safer"
2375
+ },
2376
+ {
2377
+ "include": "#var_basic"
2378
+ },
2379
+ {
2380
+ "begin": "(\\$\\{)(?=.*?\\})",
2381
+ "beginCaptures": {
2382
+ "1": {
2383
+ "name": "punctuation.definition.variable.php"
2384
+ }
2385
+ },
2386
+ "end": "(\\})",
2387
+ "endCaptures": {
2388
+ "1": {
2389
+ "name": "punctuation.definition.variable.php"
2390
+ }
2391
+ },
2392
+ "patterns": [
2393
+ {
2394
+ "include": "#language"
2395
+ }
2396
+ ]
2397
+ }
2398
+ ]
2399
+ },
2400
+ "xhp": {
2401
+ "comment": "Avoid < operator expressions as best we can using Zertosh's regex",
2402
+ "patterns": [
2403
+ {
2404
+ "applyEndPatternLast": 1,
2405
+ "begin": "(?<=\\(|\\{|\\[|,|&&|\\|\\||\\?|:|=|=>|\\Wreturn|^return|^)\\s*(?=<[_\\p{L}])",
2406
+ "contentName": "source.xhp",
2407
+ "end": "(?=.)",
2408
+ "patterns": [
2409
+ {
2410
+ "include": "#xhp-tag-element-name"
2411
+ }
2412
+ ]
2413
+ }
2414
+ ]
2415
+ },
2416
+ "xhp-assignment": {
2417
+ "patterns": [
2418
+ {
2419
+ "comment": "look for attribute assignment",
2420
+ "match": "=(?=\\s*(?:'|\"|{|/\\*|<|//|\\n))",
2421
+ "name": "keyword.operator.assignment.xhp"
2422
+ }
2423
+ ]
2424
+ },
2425
+ "xhp-attribute-name": {
2426
+ "patterns": [
2427
+ {
2428
+ "captures": {
2429
+ "0": {
2430
+ "name": "entity.other.attribute-name.xhp"
2431
+ }
2432
+ },
2433
+ "comment": "look for attribute name",
2434
+ "match": "(?<!\\S)([_\\p{L}](?:[\\p{L}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Nl}\\p{Pc}-](?<!\\.\\.))*+)(?<!\\.)(?=//|/\\*|=|\\s|>|/>)"
2435
+ }
2436
+ ]
2437
+ },
2438
+ "xhp-entities": {
2439
+ "patterns": [
2440
+ {
2441
+ "captures": {
2442
+ "0": {
2443
+ "name": "constant.character.entity.xhp"
2444
+ },
2445
+ "1": {
2446
+ "name": "punctuation.definition.entity.xhp"
2447
+ },
2448
+ "2": {
2449
+ "name": "entity.name.tag.html.xhp"
2450
+ },
2451
+ "3": {
2452
+ "name": "punctuation.definition.entity.xhp"
2453
+ }
2454
+ },
2455
+ "comment": "Embeded HTML entities &blah",
2456
+ "match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)"
2457
+ },
2458
+ {
2459
+ "comment": "Entity with & and invalid name",
2460
+ "match": "&\\S*;",
2461
+ "name": "invalid.illegal.bad-ampersand.xhp"
2462
+ }
2463
+ ]
2464
+ },
2465
+ "xhp-evaluated-code": {
2466
+ "begin": "{",
2467
+ "beginCaptures": {
2468
+ "0": {
2469
+ "name": "punctuation.section.embedded.begin.xhp"
2470
+ }
2471
+ },
2472
+ "contentName": "source.php.xhp",
2473
+ "end": "}",
2474
+ "endCaptures": {
2475
+ "0": {
2476
+ "name": "punctuation.section.embedded.end.xhp"
2477
+ }
2478
+ },
2479
+ "name": "meta.embedded.expression.php",
2480
+ "patterns": [
2481
+ {
2482
+ "include": "#language"
2483
+ }
2484
+ ]
2485
+ },
2486
+ "xhp-html-comments": {
2487
+ "begin": "<!--",
2488
+ "captures": {
2489
+ "0": {
2490
+ "name": "punctuation.definition.comment.html"
2491
+ }
2492
+ },
2493
+ "end": "--\\s*>",
2494
+ "name": "comment.block.html",
2495
+ "patterns": [
2496
+ {
2497
+ "match": "--(?!-*\\s*>)",
2498
+ "name": "invalid.illegal.bad-comments-or-CDATA.html"
2499
+ }
2500
+ ]
2501
+ },
2502
+ "xhp-string-double-quoted": {
2503
+ "begin": "\"",
2504
+ "beginCaptures": {
2505
+ "0": {
2506
+ "name": "punctuation.definition.string.begin.xhp"
2507
+ }
2508
+ },
2509
+ "end": "\"(?<!\\\\\")",
2510
+ "endCaptures": {
2511
+ "0": {
2512
+ "name": "punctuation.definition.string.end.xhp"
2513
+ }
2514
+ },
2515
+ "name": "string.quoted.double.php",
2516
+ "patterns": [
2517
+ {
2518
+ "include": "#xhp-entities"
2519
+ }
2520
+ ]
2521
+ },
2522
+ "xhp-string-single-quoted": {
2523
+ "begin": "'",
2524
+ "beginCaptures": {
2525
+ "0": {
2526
+ "name": "punctuation.definition.string.begin.xhp"
2527
+ }
2528
+ },
2529
+ "end": "'(?<!\\\\')",
2530
+ "endCaptures": {
2531
+ "0": {
2532
+ "name": "punctuation.definition.string.end.xhp"
2533
+ }
2534
+ },
2535
+ "name": "string.quoted.single.php",
2536
+ "patterns": [
2537
+ {
2538
+ "include": "#xhp-entities"
2539
+ }
2540
+ ]
2541
+ },
2542
+ "xhp-tag-attributes": {
2543
+ "patterns": [
2544
+ {
2545
+ "include": "#xhp-attribute-name"
2546
+ },
2547
+ {
2548
+ "include": "#xhp-assignment"
2549
+ },
2550
+ {
2551
+ "include": "#xhp-string-double-quoted"
2552
+ },
2553
+ {
2554
+ "include": "#xhp-string-single-quoted"
2555
+ },
2556
+ {
2557
+ "include": "#xhp-evaluated-code"
2558
+ },
2559
+ {
2560
+ "include": "#xhp-tag-element-name"
2561
+ },
2562
+ {
2563
+ "include": "#comments"
2564
+ }
2565
+ ]
2566
+ },
2567
+ "xhp-tag-element-name": {
2568
+ "patterns": [
2569
+ {
2570
+ "begin": "\\s*(<)([_\\p{L}](?:[:\\p{L}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Nl}\\p{Pc}-])*+)(?=[/>\\s])(?<![\\:])",
2571
+ "beginCaptures": {
2572
+ "1": {
2573
+ "name": "punctuation.definition.tag.xhp"
2574
+ },
2575
+ "2": {
2576
+ "name": "entity.name.tag.open.xhp"
2577
+ }
2578
+ },
2579
+ "comment": "Tags that end > are trapped in #xhp-tag-termination",
2580
+ "end": "\\s*(?<=</)(\\2)(>)|(/>)|((?<=</)[\\S ]*?)>",
2581
+ "endCaptures": {
2582
+ "1": {
2583
+ "name": "entity.name.tag.close.xhp"
2584
+ },
2585
+ "2": {
2586
+ "name": "punctuation.definition.tag.xhp"
2587
+ },
2588
+ "3": {
2589
+ "name": "punctuation.definition.tag.xhp"
2590
+ },
2591
+ "4": {
2592
+ "name": "invalid.illegal.termination.xhp"
2593
+ }
2594
+ },
2595
+ "patterns": [
2596
+ {
2597
+ "include": "#xhp-tag-termination"
2598
+ },
2599
+ {
2600
+ "include": "#xhp-html-comments"
2601
+ },
2602
+ {
2603
+ "include": "#xhp-tag-attributes"
2604
+ }
2605
+ ]
2606
+ }
2607
+ ]
2608
+ },
2609
+ "xhp-tag-termination": {
2610
+ "patterns": [
2611
+ {
2612
+ "begin": "(?<!--)(>)",
2613
+ "beginCaptures": {
2614
+ "0": {
2615
+ "name": "punctuation.definition.tag.xhp"
2616
+ },
2617
+ "1": {
2618
+ "name": "XHPStartTagEnd"
2619
+ }
2620
+ },
2621
+ "comment": "uses non consuming search for </ in </tag>",
2622
+ "end": "(</)",
2623
+ "endCaptures": {
2624
+ "0": {
2625
+ "name": "punctuation.definition.tag.xhp"
2626
+ },
2627
+ "1": {
2628
+ "name": "XHPEndTagStart"
2629
+ }
2630
+ },
2631
+ "patterns": [
2632
+ {
2633
+ "include": "#xhp-evaluated-code"
2634
+ },
2635
+ {
2636
+ "include": "#xhp-entities"
2637
+ },
2638
+ {
2639
+ "include": "#xhp-html-comments"
2640
+ },
2641
+ {
2642
+ "include": "#xhp-tag-element-name"
2643
+ }
2644
+ ]
2645
+ }
2646
+ ]
2647
+ }
2648
+ },
2649
+ "scopeName": "source.hack"
2650
+ }