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