PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.27.6
Code Block Pro – Beautiful Syntax Highlighting v1.27.6
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / build / shiki / languages / hack.tmLanguage.json

hack.tmLanguage.json in Code Block Pro – Beautiful Syntax Highlighting 1.27.6, at build/shiki/languages/hack.tmLanguage.json

2,646 lines 111.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "scopeName": "source.hack",
3 "name": "hack",
4 "fileTypes": ["hh", "php", "hack"],
5 "foldingStartMarker": "(/\\*|\\{\\s*$|<<<HTML)",
6 "foldingStopMarker": "(\\*/|^\\s*\\}|^HTML;)",
7 "patterns": [
8 {
9 "include": "text.html.basic"
10 },
11 {
12 "include": "#language"
13 }
14 ],
15 "repository": {
16 "class-builtin": {
17 "patterns": [
18 {
19 "captures": {
20 "1": {
21 "name": "punctuation.separator.inheritance.php"
22 }
23 },
24 "match": "(?i)(\\\\)?\\b(st(dClass|reamWrapper)|R(RD(Graph|Creator|Updater)|untimeException|e(sourceBundle|cursive(RegexIterator|Ca(chingIterator|llbackFilterIterator)|TreeIterator|Iterator(Iterator)?|DirectoryIterator|FilterIterator|ArrayIterator)|flect(ion(Method|Class|ZendExtension|Object|P(arameter|roperty)|Extension|Function(Abstract)?)?|or)|gexIterator)|angeException)|G(ender\\Gender|lobIterator|magick(Draw|Pixel)?)|X(sltProcessor|ML(Reader|Writer)|SLTProcessor)|M(ysqlndUh(Connection|PreparedStatement)|ongo(Re(sultException|gex)|Grid(fsFile|FS(Cursor|File)?)|BinData|C(o(de|llection)|ursor(Exception)?|lient)|Timestamp|I(nt(32|64)|d)|D(B(Ref)?|ate)|Pool|Log)?|u(tex|ltipleIterator)|e(ssageFormatter|mcache(d)?))|Bad(MethodCallException|FunctionCallException)|tidy(Node)?|S(tackable|impleXML(Iterator|Element)|oap(Server|Header|Client|Param|Var|Fault)|NMP|CA(_(SoapProxy|LocalProxy))?|p(hinxClient|oofchecker|l(M(inHeap|axHeap)|S(tack|ubject)|Heap|T(ype|empFileObject)|Ob(server|jectStorage)|DoublyLinkedList|PriorityQueue|Enum|Queue|Fi(le(Info|Object)|xedArray)))|e(ssionHandler(Interface)?|ekableIterator|rializable)|DO_(Model_(ReflectionDataObject|Type|Property)|Sequence|D(ata(Object|Factory)|AS_(Relational|XML(_Document)?|Setting|ChangeSummary|Data(Object|Factory)))|Exception|List)|wish(Result(s)?|Search)?|VM(Model)?|QLite(Result|3(Result|Stmt)?|Database|Unbuffered)|AM(Message|Connection))|H(ttp(Re(sponse|quest(Pool)?)|Message|InflateStream|DeflateStream|QueryString)|aru(Image|Outline|D(oc|estination)|Page|Encoder|Font|Annotation))|Yaf_(R(oute(_(Re(write|gex)|Map|S(tatic|imple|upervar)|Interface)|r)|e(sponse_Abstract|quest_(Simple|Http|Abstract)|gistry))|Session|Con(troller_Abstract|fig_(Simple|Ini|Abstract))|Dispatcher|Plugin_Abstract|Exception|View_(Simple|Interface)|Loader|A(ction_Abstract|pplication))|N(o(RewindIterator|rmalizer)|umberFormatter)|C(o(nd|untable|llator)|a(chingIterator|llbackFilterIterator))|T(hread|okyoTyrant(Table|Iterator|Query)?|ra(nsliterator|versable))|I(n(tlDateFormatter|validArgumentException|finiteIterator)|terator(Iterator|Aggregate)?|magick(Draw|Pixel(Iterator)?)?)|php_user_filter|ZipArchive|O(CI-(Collection|Lob)|ut(erIterator|Of(RangeException|BoundsException))|verflowException)|D(irectory(Iterator)?|omainException|OM(XPath|N(ode(list)?|amedNodeMap)|C(haracterData|omment|dataSection)|Text|Implementation|Document(Fragment)?|ProcessingInstruction|E(ntityReference|lement)|Attr)|ate(Time(Zone)?|Interval|Period))|Un(derflowException|expectedValueException)|JsonSerializable|finfo|P(har(Data|FileInfo)?|DO(Statement)?|arentIterator)|E(v(S(tat|ignal)|Ch(ild|eck)|Timer|I(o|dle)|P(eriodic|repare)|Embed|Fork|Watcher|Loop)?|rrorException|xception|mptyIterator)|V(8Js(Exception)?|arnish(Stat|Log|Admin))|KTaglib_(MPEG_(File|AudioProperties)|Tag|ID3v2_(Tag|Frame|AttachedPictureFrame))|QuickHash(StringIntHash|Int(S(tringHash|et)|Hash))|Fil(terIterator|esystemIterator)|mysqli(_(stmt|driver|warning|result))?|W(orker|eak(Map|ref))|L(imitIterator|o(cale|gicException)|ua(Closure)?|engthException|apack)|A(MQP(C(hannel|onnection)|E(nvelope|xchange)|Queue)|ppendIterator|PCIterator|rray(Iterator|Object|Access)))\\b",
25 "name": "support.class.builtin.php"
26 }
27 ]
28 },
29 "class-name": {
30 "patterns": [
31 {
32 "begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
33 "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
34 "endCaptures": {
35 "1": {
36 "name": "support.class.php"
37 }
38 },
39 "patterns": [
40 {
41 "include": "#namespace"
42 }
43 ]
44 },
45 {
46 "include": "#class-builtin"
47 },
48 {
49 "begin": "(?=[\\\\a-zA-Z_])",
50 "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
51 "endCaptures": {
52 "1": {
53 "name": "support.class.php"
54 }
55 },
56 "patterns": [
57 {
58 "include": "#namespace"
59 }
60 ]
61 }
62 ]
63 },
64 "comments": {
65 "patterns": [
66 {
67 "begin": "/\\*\\*(?:#@\\+)?\\s*$",
68 "captures": {
69 "0": {
70 "name": "punctuation.definition.comment.php"
71 }
72 },
73 "comment": "This now only highlights a docblock if the first line contains only /**\n- this is to stop highlighting everything as invalid when people do comment banners with /******** ...\n- Now matches /**#@+ too - used for docblock templates:\n http://manual.phpdoc.org/HTMLframesConverter/default/phpDocumentor/tutorial_phpDocumentor.howto.pkg.html#basics.docblocktemplate",
74 "end": "\\*/",
75 "name": "comment.block.documentation.phpdoc.php",
76 "patterns": [
77 {
78 "include": "#php_doc"
79 }
80 ]
81 },
82 {
83 "begin": "/\\*",
84 "captures": {
85 "0": {
86 "name": "punctuation.definition.comment.php"
87 }
88 },
89 "end": "\\*/",
90 "name": "comment.block.php"
91 },
92 {
93 "begin": "(^[ \\t]+)?(?=//)",
94 "beginCaptures": {
95 "1": {
96 "name": "punctuation.whitespace.comment.leading.php"
97 }
98 },
99 "end": "(?!\\G)",
100 "patterns": [
101 {
102 "begin": "//",
103 "beginCaptures": {
104 "0": {
105 "name": "punctuation.definition.comment.php"
106 }
107 },
108 "end": "\\n|(?=\\?>)",
109 "name": "comment.line.double-slash.php"
110 }
111 ]
112 }
113 ]
114 },
115 "generics": {
116 "patterns": [
117 {
118 "begin": "(<)",
119 "beginCaptures": {
120 "1": {
121 "name": "punctuation.definition.generics.php"
122 }
123 },
124 "end": "(>)",
125 "endCaptures": {
126 "1": {
127 "name": "punctuation.definition.generics.php"
128 }
129 },
130 "name": "meta.generics.php",
131 "patterns": [
132 {
133 "include": "#comments"
134 },
135 {
136 "include": "#generics"
137 },
138 {
139 "match": "([-+])?([A-Za-z_][A-Za-z0-9_]*)(?:\\s+(as|super)\\s+([A-Za-z_][A-Za-z0-9_]*))?",
140 "name": "support.type.php"
141 },
142 {
143 "include": "#type-annotation"
144 }
145 ]
146 }
147 ]
148 },
149 "implements": {
150 "patterns": [
151 {
152 "begin": "(?i)(implements)\\s+",
153 "beginCaptures": {
154 "1": {
155 "name": "storage.modifier.implements.php"
156 }
157 },
158 "end": "(?i)(?=[;{])",
159 "patterns": [
160 {
161 "include": "#comments"
162 },
163 {
164 "begin": "(?i)(?=[a-z0-9_\\\\]+)",
165 "contentName": "meta.other.inherited-class.php",
166 "end": "(?i)(?:\\s*(?:,|(?=[^a-z0-9_\\\\\\s]))\\s*)",
167 "patterns": [
168 {
169 "begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
170 "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
171 "endCaptures": {
172 "1": {
173 "name": "entity.other.inherited-class.php"
174 }
175 },
176 "patterns": [
177 {
178 "include": "#namespace"
179 }
180 ]
181 },
182 {
183 "include": "#class-builtin"
184 },
185 {
186 "include": "#namespace"
187 },
188 {
189 "match": "(?i)[a-z_][a-z_0-9]*",
190 "name": "entity.other.inherited-class.php"
191 }
192 ]
193 }
194 ]
195 }
196 ]
197 },
198 "attributes": {
199 "patterns": [
200 {
201 "begin": "(<<)(?!<)",
202 "beginCaptures": {
203 "1": {
204 "name": "punctuation.definition.attributes.php"
205 }
206 },
207 "end": "(>>)",
208 "endCaptures": {
209 "1": {
210 "name": "punctuation.definition.attributes.php"
211 }
212 },
213 "name": "meta.attributes.php",
214 "patterns": [
215 {
216 "include": "#comments"
217 },
218 {
219 "match": "([A-Za-z_][A-Za-z0-9_]*)",
220 "name": "entity.other.attribute-name.php"
221 },
222 {
223 "begin": "(\\()",
224 "beginCaptures": {
225 "1": {
226 "name": "punctuation.definition.parameters.begin.php"
227 }
228 },
229 "end": "(\\))",
230 "endCaptures": {
231 "1": {
232 "name": "punctuation.definition.parameters.end.php"
233 }
234 },
235 "patterns": [
236 {
237 "include": "#language"
238 }
239 ]
240 }
241 ]
242 }
243 ]
244 },
245 "constants": {
246 "patterns": [
247 {
248 "begin": "(?xi)\n(?=\n (\n (\\\\[a-z_][a-z_0-9]*\\\\[a-z_][a-z_0-9\\\\]*)\n |\n ([a-z_][a-z_0-9]*\\\\[a-z_][a-z_0-9\\\\]*)\n )\n [^a-z_0-9\\\\]\n)",
249 "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
250 "endCaptures": {
251 "1": {
252 "name": "constant.other.php"
253 }
254 },
255 "patterns": [
256 {
257 "include": "#namespace"
258 }
259 ]
260 },
261 {
262 "begin": "(?=\\\\?[a-zA-Z_\\x{7f}-\\x{ff}])",
263 "end": "(?=[^\\\\a-zA-Z_\\x{7f}-\\x{ff}])",
264 "patterns": [
265 {
266 "match": "(?i)\\b(TRUE|FALSE|NULL|__(FILE|DIR|FUNCTION|CLASS|METHOD|LINE|NAMESPACE)__)\\b",
267 "name": "constant.language.php"
268 },
269 {
270 "captures": {
271 "1": {
272 "name": "punctuation.separator.inheritance.php"
273 }
274 },
275 "match": "(\\\\)?\\b(STD(IN|OUT|ERR)|ZEND_(THREAD_SAFE|DEBUG_BUILD)|DEFAULT_INCLUDE_PATH|P(HP_(R(OUND_HALF_(ODD|DOWN|UP|EVEN)|ELEASE_VERSION)|M(INOR_VERSION|A(XPATHLEN|JOR_VERSION))|BINDIR|S(HLIB_SUFFIX|YSCONFDIR|API)|CONFIG_FILE_(SCAN_DIR|PATH)|INT_(MAX|SIZE)|ZTS|O(S|UTPUT_HANDLER_(START|CONT|END))|D(EBUG|ATADIR)|URL_(SCHEME|HOST|USER|P(ORT|A(SS|TH))|QUERY|FRAGMENT)|PREFIX|E(XT(RA_VERSION|ENSION_DIR)|OL)|VERSION(_ID)?|WINDOWS_(NT_(SERVER|DOMAIN_CONTROLLER|WORKSTATION)|VERSION_(M(INOR|AJOR)|BUILD|S(UITEMASK|P_M(INOR|AJOR))|P(RODUCTTYPE|LATFORM)))|L(IBDIR|OCALSTATEDIR))|EAR_(INSTALL_DIR|EXTENSION_DIR))|E_(RECOVERABLE_ERROR|STRICT|NOTICE|CO(RE_(ERROR|WARNING)|MPILE_(ERROR|WARNING))|DEPRECATED|USER_(NOTICE|DEPRECATED|ERROR|WARNING)|PARSE|ERROR|WARNING|ALL))\\b",
276 "name": "support.constant.core.php"
277 },
278 {
279 "captures": {
280 "1": {
281 "name": "punctuation.separator.inheritance.php"
282 }
283 },
284 "match": "(\\\\)?\\b(RADIXCHAR|GROUPING|M(_(1_PI|SQRT(1_2|2|3|PI)|2_(SQRTPI|PI)|PI(_(2|4))?|E(ULER)?|L(N(10|2|PI)|OG(10E|2E)))|ON_(GROUPING|1(1|2|0)?|7|2|8|THOUSANDS_SEP|3|DECIMAL_POINT|9|4|5|6))|S(TR_PAD_(RIGHT|BOTH|LEFT)|ORT_(REGULAR|STRING|NUMERIC|DESC|LOCALE_STRING|ASC)|EEK_(SET|CUR|END))|H(TML_(SPECIALCHARS|ENTITIES)|ASH_HMAC)|YES(STR|EXPR)|N(_(S(IGN_POSN|EP_BY_SPACE)|CS_PRECEDES)|O(STR|EXPR)|EGATIVE_SIGN|AN)|C(R(YPT_(MD5|BLOWFISH|S(HA(256|512)|TD_DES|ALT_LENGTH)|EXT_DES)|NCYSTR|EDITS_(G(ROUP|ENERAL)|MODULES|SAPI|DOCS|QA|FULLPAGE|ALL))|HAR_MAX|O(NNECTION_(NORMAL|TIMEOUT|ABORTED)|DESET|UNT_(RECURSIVE|NORMAL))|URRENCY_SYMBOL|ASE_(UPPER|LOWER))|__COMPILER_HALT_OFFSET__|T(HOUS(EP|ANDS_SEP)|_FMT(_AMPM)?)|IN(T_(CURR_SYMBOL|FRAC_DIGITS)|I_(S(YSTEM|CANNER_(RAW|NORMAL))|USER|PERDIR|ALL)|F(O_(GENERAL|MODULES|C(REDITS|ONFIGURATION)|ENVIRONMENT|VARIABLES|LICENSE|ALL))?)|D(_(T_FMT|FMT)|IRECTORY_SEPARATOR|ECIMAL_POINT|A(Y_(1|7|2|3|4|5|6)|TE_(R(SS|FC(1(123|036)|2822|8(22|50)|3339))|COOKIE|ISO8601|W3C|ATOM)))|UPLOAD_ERR_(NO_(TMP_DIR|FILE)|CANT_WRITE|INI_SIZE|OK|PARTIAL|EXTENSION|FORM_SIZE)|P(M_STR|_(S(IGN_POSN|EP_BY_SPACE)|CS_PRECEDES)|OSITIVE_SIGN|ATH(_SEPARATOR|INFO_(BASENAME|DIRNAME|EXTENSION|FILENAME)))|E(RA(_(YEAR|T_FMT|D_(T_FMT|FMT)))?|XTR_(REFS|SKIP|IF_EXISTS|OVERWRITE|PREFIX_(SAME|I(NVALID|F_EXISTS)|ALL))|NT_(NOQUOTES|COMPAT|IGNORE|QUOTES))|FRAC_DIGITS|L(C_(M(ONETARY|ESSAGES)|NUMERIC|C(TYPE|OLLATE)|TIME|ALL)|O(G_(MAIL|SYSLOG|N(O(TICE|WAIT)|DELAY|EWS)|C(R(IT|ON)|ONS)|INFO|ODELAY|D(EBUG|AEMON)|U(SER|UCP)|P(ID|ERROR)|E(RR|MERG)|KERN|WARNING|L(OCAL(1|7|2|3|4|5|0|6)|PR)|A(UTH(PRIV)?|LERT))|CK_(SH|NB|UN|EX)))|A(M_STR|B(MON_(1(1|2|0)?|7|2|8|3|9|4|5|6)|DAY_(1|7|2|3|4|5|6))|SSERT_(BAIL|CALLBACK|QUIET_EVAL|WARNING|ACTIVE)|LT_DIGITS))\\b",
285 "name": "support.constant.std.php"
286 },
287 {
288 "captures": {
289 "1": {
290 "name": "punctuation.separator.inheritance.php"
291 }
292 },
293 "match": "(\\\\)?\\b(GLOB_(MARK|BRACE|NO(SORT|CHECK|ESCAPE)|ONLYDIR|ERR|AVAILABLE_FLAGS)|XML_(SAX_IMPL|HTML_DOCUMENT_NODE|N(OTATION_NODE|AMESPACE_DECL_NODE)|C(OMMENT_NODE|DATA_SECTION_NODE)|TEXT_NODE|OPTION_(SKIP_(TAGSTART|WHITE)|CASE_FOLDING|TARGET_ENCODING)|D(TD_NODE|OCUMENT_(NODE|TYPE_NODE|FRAG_NODE))|PI_NODE|E(RROR_(RECURSIVE_ENTITY_REF|MISPLACED_XML_PI|B(INARY_ENTITY_REF|AD_CHAR_REF)|SYNTAX|NO(NE|_(MEMORY|ELEMENTS))|TAG_MISMATCH|IN(CORRECT_ENCODING|VALID_TOKEN)|DUPLICATE_ATTRIBUTE|UN(CLOSED_(CDATA_SECTION|TOKEN)|DEFINED_ENTITY|KNOWN_ENCODING)|JUNK_AFTER_DOC_ELEMENT|PAR(TIAL_CHAR|AM_ENTITY_REF)|EXTERNAL_ENTITY_HANDLING|A(SYNC_ENTITY|TTRIBUTE_EXTERNAL_ENTITY_REF))|NTITY_(REF_NODE|NODE|DECL_NODE)|LEMENT_(NODE|DECL_NODE))|LOCAL_NAMESPACE|ATTRIBUTE_(N(MTOKEN(S)?|O(TATION|DE))|CDATA|ID(REF(S)?)?|DECL_NODE|EN(TITY|UMERATION)))|M(HASH_(RIPEMD(1(28|60)|256|320)|GOST|MD(2|4|5)|S(HA(1|2(24|56)|384|512)|NEFRU256)|HAVAL(1(28|92|60)|2(24|56))|CRC32(B)?|TIGER(1(28|60))?|WHIRLPOOL|ADLER32)|YSQL(_(BOTH|NUM|CLIENT_(SSL|COMPRESS|I(GNORE_SPACE|NTERACTIVE))|ASSOC)|I_(RE(PORT_(STRICT|INDEX|OFF|ERROR|ALL)|FRESH_(GRANT|MASTER|BACKUP_LOG|S(TATUS|LAVE)|HOSTS|T(HREADS|ABLES)|LOG)|AD_DEFAULT_(GROUP|FILE))|GROUP_FLAG|MULTIPLE_KEY_FLAG|B(INARY_FLAG|OTH|LOB_FLAG)|S(T(MT_ATTR_(CURSOR_TYPE|UPDATE_MAX_LENGTH|PREFETCH_ROWS)|ORE_RESULT)|E(RVER_QUERY_(NO_(GOOD_INDEX_USED|INDEX_USED)|WAS_SLOW)|T_(CHARSET_NAME|FLAG)))|N(O(_D(EFAULT_VALUE_FLAG|ATA)|T_NULL_FLAG)|UM(_FLAG)?)|C(URSOR_TYPE_(READ_ONLY|SCROLLABLE|NO_CURSOR|FOR_UPDATE)|LIENT_(SSL|NO_SCHEMA|COMPRESS|I(GNORE_SPACE|NTERACTIVE)|FOUND_ROWS))|T(YPE_(GEOMETRY|MEDIUM_BLOB|B(IT|LOB)|S(HORT|TRING|ET)|YEAR|N(ULL|EWD(ECIMAL|ATE))|CHAR|TI(ME(STAMP)?|NY(_BLOB)?)|INT(24|ERVAL)|D(OUBLE|ECIMAL|ATE(TIME)?)|ENUM|VAR_STRING|FLOAT|LONG(_BLOB|LONG)?)|IMESTAMP_FLAG)|INIT_COMMAND|ZEROFILL_FLAG|O(N_UPDATE_NOW_FLAG|PT_(NET_(READ_BUFFER_SIZE|CMD_BUFFER_SIZE)|CONNECT_TIMEOUT|INT_AND_FLOAT_NATIVE|LOCAL_INFILE))|D(EBUG_TRACE_ENABLED|ATA_TRUNCATED)|U(SE_RESULT|N(SIGNED_FLAG|IQUE_KEY_FLAG))|P(RI_KEY_FLAG|ART_KEY_FLAG)|ENUM_FLAG|A(S(SOC|YNC)|UTO_INCREMENT_FLAG)))|CRYPT_(R(C(2|6)|IJNDAEL_(1(28|92)|256)|AND)|GOST|XTEA|M(ODE_(STREAM|NOFB|C(BC|FB)|OFB|ECB)|ARS)|BLOWFISH(_COMPAT)?|S(ERPENT|KIPJACK|AFER(128|PLUS|64))|C(RYPT|AST_(128|256))|T(RIPLEDES|HREEWAY|WOFISH)|IDEA|3DES|DE(S|CRYPT|V_(RANDOM|URANDOM))|PANAMA|EN(CRYPT|IGNA)|WAKE|LOKI97|ARCFOUR(_IV)?))|S(TREAM_(REPORT_ERRORS|M(UST_SEEK|KDIR_RECURSIVE)|BUFFER_(NONE|FULL|LINE)|S(HUT_(RD(WR)?|WR)|OCK_(R(DM|AW)|S(TREAM|EQPACKET)|DGRAM)|ERVER_(BIND|LISTEN))|NOTIFY_(RE(SOLVE|DIRECTED)|MIME_TYPE_IS|SEVERITY_(INFO|ERR|WARN)|CO(MPLETED|NNECT)|PROGRESS|F(ILE_SIZE_IS|AILURE)|AUTH_RE(SULT|QUIRED))|C(RYPTO_METHOD_(SSLv(2(_(SERVER|CLIENT)|3_(SERVER|CLIENT))|3_(SERVER|CLIENT))|TLS_(SERVER|CLIENT))|LIENT_(CONNECT|PERSISTENT|ASYNC_CONNECT)|AST_(FOR_SELECT|AS_STREAM))|I(GNORE_URL|S_URL|PPROTO_(RAW|TCP|I(CMP|P)|UDP))|O(OB|PTION_(READ_(BUFFER|TIMEOUT)|BLOCKING|WRITE_BUFFER))|U(RL_STAT_(QUIET|LINK)|SE_PATH)|P(EEK|F_(INET(6)?|UNIX))|ENFORCE_SAFE_MODE|FILTER_(READ|WRITE|ALL))|UNFUNCS_RET_(STRING|TIMESTAMP|DOUBLE)|QLITE(_(R(OW|EADONLY)|MIS(MATCH|USE)|B(OTH|USY)|SCHEMA|N(O(MEM|T(FOUND|ADB)|LFS)|UM)|C(O(RRUPT|NSTRAINT)|ANTOPEN)|TOOBIG|I(NTER(RUPT|NAL)|OERR)|OK|DONE|P(ROTOCOL|ERM)|E(RROR|MPTY)|F(ORMAT|ULL)|LOCKED|A(BORT|SSOC|UTH))|3_(B(OTH|LOB)|NU(M|LL)|TEXT|INTEGER|OPEN_(READ(ONLY|WRITE)|CREATE)|FLOAT|ASSOC)))|CURL(M(SG_DONE|_(BAD_(HANDLE|EASY_HANDLE)|CALL_MULTI_PERFORM|INTERNAL_ERROR|O(UT_OF_MEMORY|K)))|SSH_AUTH_(HOST|NONE|DEFAULT|P(UBLICKEY|ASSWORD)|KEYBOARD)|CLOSEPOLICY_(SLOWEST|CALLBACK|OLDEST|LEAST_(RECENTLY_USED|TRAFFIC))|_(HTTP_VERSION_(1_(1|0)|NONE)|NETRC_(REQUIRED|IGNORED|OPTIONAL)|TIMECOND_(IF(MODSINCE|UNMODSINCE)|LASTMOD)|IPRESOLVE_(V(4|6)|WHATEVER)|VERSION_(SSL|IPV6|KERBEROS4|LIBZ))|INFO_(RE(DIRECT_(COUNT|TIME)|QUEST_SIZE)|S(SL_VERIFYRESULT|TARTTRANSFER_TIME|IZE_(DOWNLOAD|UPLOAD)|PEED_(DOWNLOAD|UPLOAD))|H(TTP_CODE|EADER_(SIZE|OUT))|NAMELOOKUP_TIME|C(ON(NECT_TIME|TENT_(TYPE|LENGTH_(DOWNLOAD|UPLOAD)))|ERTINFO)|TOTAL_TIME|PR(IVATE|ETRANSFER_TIME)|EFFECTIVE_URL|FILETIME)|OPT_(R(E(SUME_FROM|TURNTRANSFER|DIR_PROTOCOLS|FERER|AD(DATA|FUNCTION))|AN(GE|DOM_FILE))|MAX(REDIRS|CONNECTS)|B(INARYTRANSFER|UFFERSIZE)|S(S(H_(HOST_PUBLIC_KEY_MD5|P(RIVATE_KEYFILE|UBLIC_KEYFILE)|AUTH_TYPES)|L(CERT(TYPE|PASSWD)?|_(CIPHER_LIST|VERIFY(HOST|PEER))|ENGINE(_DEFAULT)?|VERSION|KEY(TYPE|PASSWD)?))|TDERR)|H(TTP(GET|HEADER|200ALIASES|_VERSION|PROXYTUNNEL|AUTH)|EADER(FUNCTION)?)|N(O(BODY|SIGNAL|PROGRESS)|ETRC)|C(RLF|O(NNECTTIMEOUT(_MS)?|OKIE(SESSION|JAR|FILE)?)|USTOMREQUEST|ERTINFO|LOSEPOLICY|A(INFO|PATH))|T(RANSFERTEXT|CP_NODELAY|IME(CONDITION|OUT(_MS)?|VALUE))|I(N(TERFACE|FILE(SIZE)?)|PRESOLVE)|DNS_(CACHE_TIMEOUT|USE_GLOBAL_CACHE)|U(RL|SER(PWD|AGENT)|NRESTRICTED_AUTH|PLOAD)|P(R(IVATE|O(GRESSFUNCTION|XY(TYPE|USERPWD|PORT|AUTH)?|TOCOLS))|O(RT|ST(REDIR|QUOTE|FIELDS)?)|UT)|E(GDSOCKET|NCODING)|VERBOSE|K(RB4LEVEL|EYPASSWD)|QUOTE|F(RESH_CONNECT|TP(SSLAUTH|_(S(SL|KIP_PASV_IP)|CREATE_MISSING_DIRS|USE_EP(RT|SV)|FILEMETHOD)|PORT|LISTONLY|APPEND)|ILE(TIME)?|O(RBID_REUSE|LLOWLOCATION)|AILONERROR)|WRITE(HEADER|FUNCTION)|LOW_SPEED_(TIME|LIMIT)|AUTOREFERER)|PRO(XY_(SOCKS(4|5)|HTTP)|TO_(S(CP|FTP)|HTTP(S)?|T(ELNET|FTP)|DICT|F(TP(S)?|ILE)|LDAP(S)?|ALL))|E_(RE(CV_ERROR|AD_ERROR)|GOT_NOTHING|MALFORMAT_USER|BAD_(C(ONTENT_ENCODING|ALLING_ORDER)|PASSWORD_ENTERED|FUNCTION_ARGUMENT)|S(S(H|L_(C(IPHER|ONNECT_ERROR|ERTPROBLEM|ACERT)|PEER_CERTIFICATE|ENGINE_(SETFAILED|NOTFOUND)))|HARE_IN_USE|END_ERROR)|HTTP_(RANGE_ERROR|NOT_FOUND|PO(RT_FAILED|ST_ERROR))|COULDNT_(RESOLVE_(HOST|PROXY)|CONNECT)|T(OO_MANY_REDIRECTS|ELNET_OPTION_SYNTAX)|O(BSOLETE|UT_OF_MEMORY|PERATION_TIMEOUTED|K)|U(RL_MALFORMAT(_USER)?|N(SUPPORTED_PROTOCOL|KNOWN_TELNET_OPTION))|PARTIAL_FILE|F(TP_(BAD_DOWNLOAD_RESUME|SSL_FAILED|C(OULDNT_(RETR_FILE|GET_SIZE|S(TOR_FILE|ET_(BINARY|ASCII))|USE_REST)|ANT_(RECONNECT|GET_HOST))|USER_PASSWORD_INCORRECT|PORT_FAILED|QUOTE_ERROR|W(RITE_ERROR|EIRD_(SERVER_REPLY|227_FORMAT|USER_REPLY|PAS(S_REPLY|V_REPLY)))|ACCESS_DENIED)|ILE(SIZE_EXCEEDED|_COULDNT_READ_FILE)|UNCTION_NOT_FOUND|AILED_INIT)|WRITE_ERROR|L(IBRARY_NOT_FOUND|DAP_(SEARCH_FAILED|CANNOT_BIND|INVALID_URL))|ABORTED_BY_CALLBACK)|VERSION_NOW|FTP(METHOD_(MULTICWD|SINGLECWD|NOCWD)|SSL_(NONE|CONTROL|TRY|ALL)|AUTH_(SSL|TLS|DEFAULT))|AUTH_(GSSNEGOTIATE|BASIC|NTLM|DIGEST|ANY(SAFE)?))|I(MAGETYPE_(GIF|XBM|BMP|SWF|COUNT|TIFF_(MM|II)|I(CO|FF)|UNKNOWN|J(B2|P(X|2|C|EG(2000)?))|P(SD|NG)|WBMP)|NPUT_(REQUEST|GET|SE(RVER|SSION)|COOKIE|POST|ENV)|CONV_(MIME_DECODE_(STRICT|CONTINUE_ON_ERROR)|IMPL|VERSION))|D(NS_(MX|S(RV|OA)|HINFO|N(S|APTR)|CNAME|TXT|PTR|A(NY|LL|AAA|6)?)|OM(STRING_SIZE_ERR|_(SYNTAX_ERR|HIERARCHY_REQUEST_ERR|N(O(_(MODIFICATION_ALLOWED_ERR|DATA_ALLOWED_ERR)|T_(SUPPORTED_ERR|FOUND_ERR))|AMESPACE_ERR)|IN(DEX_SIZE_ERR|USE_ATTRIBUTE_ERR|VALID_(MODIFICATION_ERR|STATE_ERR|CHARACTER_ERR|ACCESS_ERR))|PHP_ERR|VALIDATION_ERR|WRONG_DOCUMENT_ERR)))|JSON_(HEX_(TAG|QUOT|A(MP|POS))|NUMERIC_CHECK|ERROR_(S(YNTAX|TATE_MISMATCH)|NONE|CTRL_CHAR|DEPTH|UTF8)|FORCE_OBJECT)|P(REG_(RECURSION_LIMIT_ERROR|GREP_INVERT|BA(CKTRACK_LIMIT_ERROR|D_UTF8_(OFFSET_ERROR|ERROR))|S(PLIT_(NO_EMPTY|OFFSET_CAPTURE|DELIM_CAPTURE)|ET_ORDER)|NO_ERROR|INTERNAL_ERROR|OFFSET_CAPTURE|PATTERN_ORDER)|SFS_(PASS_ON|ERR_FATAL|F(EED_ME|LAG_(NORMAL|FLUSH_(CLOSE|INC))))|CRE_VERSION|OSIX_(R_OK|X_OK|S_IF(REG|BLK|SOCK|CHR|IFO)|F_OK|W_OK))|F(NM_(NOESCAPE|CASEFOLD|P(ERIOD|ATHNAME))|IL(TER_(REQUIRE_(SCALAR|ARRAY)|SANITIZE_(MAGIC_QUOTES|S(TRI(NG|PPED)|PECIAL_CHARS)|NUMBER_(INT|FLOAT)|URL|E(MAIL|NCODED)|FULL_SPECIAL_CHARS)|NULL_ON_FAILURE|CALLBACK|DEFAULT|UNSAFE_RAW|VALIDATE_(REGEXP|BOOLEAN|I(NT|P)|URL|EMAIL|FLOAT)|F(ORCE_ARRAY|LAG_(S(CHEME_REQUIRED|TRIP_(BACKTICK|HIGH|LOW))|HOST_REQUIRED|NO(NE|_(RES_RANGE|PRIV_RANGE|ENCODE_QUOTES))|IPV(4|6)|PATH_REQUIRED|E(MPTY_STRING_NULL|NCODE_(HIGH|LOW|AMP))|QUERY_REQUIRED|ALLOW_(SCIENTIFIC|HEX|THOUSAND|OCTAL|FRACTION))))|E(_(BINARY|SKIP_EMPTY_LINES|NO_DEFAULT_CONTEXT|TEXT|IGNORE_NEW_LINES|USE_INCLUDE_PATH|APPEND)|INFO_(RAW|MIME(_(TYPE|ENCODING))?|SYMLINK|NONE|CONTINUE|DEVICES|PRESERVE_ATIME)))|ORCE_(GZIP|DEFLATE))|LIBXML_(XINCLUDE|N(SCLEAN|O(XMLDECL|BLANKS|NET|CDATA|E(RROR|MPTYTAG|NT)|WARNING))|COMPACT|D(TD(VALID|LOAD|ATTR)|OTTED_VERSION)|PARSEHUGE|ERR_(NONE|ERROR|FATAL|WARNING)|VERSION|LOADED_VERSION))\\b",
294 "name": "support.constant.ext.php"
295 },
296 {
297 "captures": {
298 "1": {
299 "name": "punctuation.separator.inheritance.php"
300 }
301 },
302 "match": "(\\\\)?\\bT_(RE(TURN|QUIRE(_ONCE)?)|G(OTO|LOBAL)|XOR_EQUAL|M(INUS_EQUAL|OD_EQUAL|UL_EQUAL|ETHOD_C|L_COMMENT)|B(REAK|OOL(_CAST|EAN_(OR|AND))|AD_CHARACTER)|S(R(_EQUAL)?|T(RING(_(CAST|VARNAME))?|A(RT_HEREDOC|TIC))|WITCH|L(_EQUAL)?)|HALT_COMPILER|N(S_(SEPARATOR|C)|UM_STRING|EW|AMESPACE)|C(HARACTER|O(MMENT|N(ST(ANT_ENCAPSED_STRING)?|CAT_EQUAL|TINUE))|URLY_OPEN|L(O(SE_TAG|NE)|ASS(_C)?)|A(SE|TCH))|T(RY|HROW)|I(MPLEMENTS|S(SET|_(GREATER_OR_EQUAL|SMALLER_OR_EQUAL|NOT_(IDENTICAL|EQUAL)|IDENTICAL|EQUAL))|N(STANCEOF|C(LUDE(_ONCE)?)?|T(_CAST|ERFACE)|LINE_HTML)|F)|O(R_EQUAL|BJECT_(CAST|OPERATOR)|PEN_TAG(_WITH_ECHO)?|LD_FUNCTION)|D(NUMBER|I(R|V_EQUAL)|O(C_COMMENT|UBLE_(C(OLON|AST)|ARROW)|LLAR_OPEN_CURLY_BRACES)?|E(C(LARE)?|FAULT))|U(SE|NSET(_CAST)?)|P(R(I(NT|VATE)|OTECTED)|UBLIC|LUS_EQUAL|AAMAYIM_NEKUDOTAYIM)|E(X(TENDS|IT)|MPTY|N(CAPSED_AND_WHITESPACE|D(SWITCH|_HEREDOC|IF|DECLARE|FOR(EACH)?|WHILE))|CHO|VAL|LSE(IF)?)|VAR(IABLE)?|F(I(NAL|LE)|OR(EACH)?|UNC(_C|TION))|WHI(TESPACE|LE)|L(NUMBER|I(ST|NE)|OGICAL_(XOR|OR|AND))|A(RRAY(_CAST)?|BSTRACT|S|ND_EQUAL))\\b",
303 "name": "support.constant.parser-token.php"
304 },
305 {
306 "comment": "In PHP, any identifier which is not a variable is taken to be a constant.\nHowever, if there is no constant defined with the given name then a notice\nis generated and the constant is assumed to have the value of its name.",
307 "match": "[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*",
308 "name": "constant.other.php"
309 }
310 ]
311 }
312 ]
313 },
314 "function-return-type": {
315 "patterns": [
316 {
317 "begin": "(:)",
318 "beginCaptures": {
319 "1": {
320 "name": "punctuation.definition.type.php"
321 }
322 },
323 "end": "(?=[{;])",
324 "patterns": [
325 {
326 "include": "#comments"
327 },
328 {
329 "include": "#type-annotation"
330 },
331 {
332 "include": "#class-name"
333 }
334 ]
335 }
336 ]
337 },
338 "type-annotation": {
339 "name": "support.type.php",
340 "patterns": [
341 {
342 "match": "\\b(?:bool|int|float|string|resource|mixed|arraykey|nonnull|dict|vec|keyset)\\b",
343 "name": "support.type.php"
344 },
345 {
346 "begin": "([A-Za-z_][A-Za-z0-9_]*)<",
347 "beginCaptures": {
348 "1": {
349 "name": "support.class.php"
350 }
351 },
352 "end": ">",
353 "patterns": [
354 {
355 "include": "#type-annotation"
356 }
357 ]
358 },
359 {
360 "begin": "(shape\\()",
361 "end": "((,|\\.\\.\\.)?\\s*\\))",
362 "endCaptures": {
363 "1": {
364 "name": "keyword.operator.key.php"
365 }
366 },
367 "name": "storage.type.shape.php",
368 "patterns": [
369 {
370 "include": "#type-annotation"
371 },
372 {
373 "include": "#strings"
374 },
375 {
376 "include": "#constants"
377 }
378 ]
379 },
380 {
381 "begin": "\\(",
382 "end": "\\)",
383 "patterns": [
384 {
385 "include": "#type-annotation"
386 }
387 ]
388 },
389 {
390 "include": "#class-name"
391 },
392 {
393 "include": "#comments"
394 }
395 ]
396 },
397 "function-arguments": {
398 "patterns": [
399 {
400 "include": "#comments"
401 },
402 {
403 "include": "#attributes"
404 },
405 {
406 "include": "#type-annotation"
407 },
408 {
409 "begin": "(?xi)((\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*) # The variable name",
410 "end": "(?xi)\n\\s*(?=,|\\)|$) # A closing parentheses (end of argument list) or a comma",
411 "beginCaptures": {
412 "1": {
413 "name": "variable.other.php"
414 },
415 "2": {
416 "name": "punctuation.definition.variable.php"
417 }
418 },
419 "patterns": [
420 {
421 "begin": "(=)",
422 "end": "(?=,|\\))",
423 "beginCaptures": {
424 "1": {
425 "name": "keyword.operator.assignment.php"
426 }
427 },
428 "patterns": [
429 {
430 "include": "#language"
431 }
432 ]
433 }
434 ]
435 }
436 ]
437 },
438 "literal-collections": {
439 "patterns": [
440 {
441 "begin": "(Vector|ImmVector|Set|ImmSet|Map|ImmMap|Pair)\\s*({)",
442 "end": "(})",
443 "beginCaptures": {
444 "1": {
445 "name": "support.class.php"
446 },
447 "2": {
448 "name": "punctuation.section.array.begin.php"
449 }
450 },
451 "endCaptures": {
452 "1": {
453 "name": "punctuation.section.array.end.php"
454 }
455 },
456 "name": "meta.collection.literal.php",
457 "patterns": [
458 {
459 "include": "#language"
460 }
461 ]
462 }
463 ]
464 },
465 "function-call": {
466 "patterns": [
467 {
468 "begin": "(?i)(?=\\\\?[a-z_0-9\\\\]+\\\\[a-z_][a-z0-9_]*\\s*\\()",
469 "comment": "Functions in a user-defined namespace (overrides any built-ins)",
470 "end": "(?=\\s*\\()",
471 "patterns": [
472 {
473 "include": "#user-function-call"
474 }
475 ]
476 },
477 {
478 "match": "(?i)\\b(print|echo)\\b",
479 "name": "support.function.construct.php"
480 },
481 {
482 "begin": "(?i)(\\\\)?(?=\\b[a-z_][a-z_0-9]*\\s*\\()",
483 "beginCaptures": {
484 "1": {
485 "name": "punctuation.separator.inheritance.php"
486 }
487 },
488 "comment": "Root namespace function calls (built-in or user)",
489 "end": "(?=\\s*\\()",
490 "patterns": [
491 {
492 "match": "(?i)\\b(isset|unset|e(val|mpty)|list)(?=\\s*\\()",
493 "name": "support.function.construct.php"
494 },
495 {
496 "include": "#support"
497 },
498 {
499 "include": "#user-function-call"
500 }
501 ]
502 }
503 ]
504 },
505 "heredoc": {
506 "patterns": [
507 {
508 "begin": "<<<\\s*(\"?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\1)\\s*$",
509 "beginCaptures": {
510 "2": {
511 "name": "keyword.operator.heredoc.php"
512 }
513 },
514 "end": "^(\\2)(?=;?$)",
515 "endCaptures": {
516 "1": {
517 "name": "keyword.operator.heredoc.php"
518 }
519 },
520 "name": "string.unquoted.heredoc.php",
521 "patterns": [
522 {
523 "include": "#interpolation"
524 }
525 ]
526 },
527 {
528 "begin": "<<<\\s*('?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\\1)\\s*$",
529 "beginCaptures": {
530 "2": {
531 "name": "keyword.operator.heredoc.php"
532 }
533 },
534 "end": "^(\\2)(?=;?$)",
535 "endCaptures": {
536 "1": {
537 "name": "keyword.operator.heredoc.php"
538 }
539 },
540 "name": "string.unquoted.heredoc.nowdoc.php"
541 }
542 ]
543 },
544 "instantiation": {
545 "begin": "(?i)(new)\\s+",
546 "beginCaptures": {
547 "1": {
548 "name": "keyword.other.new.php"
549 }
550 },
551 "end": "(?i)(?=[^$a-z0-9_\\\\])",
552 "patterns": [
553 {
554 "match": "(parent|static|self)(?=[^a-z0-9_])",
555 "name": "support.type.php"
556 },
557 {
558 "include": "#class-name"
559 },
560 {
561 "include": "#variable-name"
562 }
563 ]
564 },
565 "interpolation": {
566 "comment": "http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing",
567 "patterns": [
568 {
569 "comment": "Interpolating octal values e.g. \\01 or \\07.",
570 "match": "\\\\[0-7]{1,3}",
571 "name": "constant.numeric.octal.php"
572 },
573 {
574 "comment": "Interpolating hex values e.g. \\x1 or \\xFF.",
575 "match": "\\\\x[0-9A-Fa-f]{1,2}",
576 "name": "constant.numeric.hex.php"
577 },
578 {
579 "comment": "Escaped characters in double-quoted strings e.g. \\n or \\t.",
580 "match": "\\\\[nrt\\\\\\$\\\"]",
581 "name": "constant.character.escape.php"
582 },
583 {
584 "comment": "Interpolating expressions in double-quoted strings with {} e.g. {$x->y->z[0][1]}.",
585 "match": "(\\{\\$.*?\\})",
586 "name": "variable.other.php"
587 },
588 {
589 "comment": "Interpolating simple variables, e.g. $x, $x->y, $x[z] but not $x->y->z.",
590 "match": "(\\$[a-zA-Z_][a-zA-Z0-9_]*((->[a-zA-Z_][a-zA-Z0-9_]*)|(\\[[a-zA-Z0-9_]+\\]))?)",
591 "name": "variable.other.php"
592 }
593 ]
594 },
595 "invoke-call": {
596 "captures": {
597 "1": {
598 "name": "punctuation.definition.variable.php"
599 },
600 "2": {
601 "name": "variable.other.php"
602 }
603 },
604 "match": "(?i)(\\$+)([a-z_][a-z_0-9]*)(?=\\s*\\()",
605 "name": "meta.function-call.invoke.php"
606 },
607 "interface": {
608 "begin": "^(?i)\\s*(?:(public|internal)\\s+)?(interface)\\b",
609 "beginCaptures": {
610 "1": {
611 "name": "storage.modifier.php"
612 },
613 "2": {
614 "name": "storage.type.interface.php"
615 }
616 },
617 "name": "meta.interface.php",
618 "end": "(?=[;{])",
619 "patterns": [
620 {
621 "include": "#comments"
622 },
623 {
624 "match": "\\b(extends)\\b",
625 "captures": {
626 "1": {
627 "name": "storage.modifier.extends.php"
628 }
629 }
630 },
631 {
632 "include": "#generics"
633 },
634 {
635 "include": "#namespace"
636 },
637 {
638 "match": "(?i)[a-z0-9_]+",
639 "name": "entity.name.type.class.php"
640 }
641 ]
642 },
643 "language": {
644 "patterns": [
645 {
646 "include": "#comments"
647 },
648 {
649 "begin": "(?=^\\s*<<)",
650 "end": "(?<=>>)",
651 "patterns": [
652 {
653 "include": "#attributes"
654 }
655 ]
656 },
657 {
658 "include": "#xhp"
659 },
660 {
661 "include": "#interface"
662 },
663 {
664 "begin": "(?xi)\n^\\s*\n(?:(module)\\s*)?(type|newtype)\n\\s+\n([a-z0-9_]+)",
665 "beginCaptures": {
666 "1": {
667 "name": "storage.modifier.php"
668 },
669 "2": {
670 "name": "storage.type.typedecl.php"
671 },
672 "3": {
673 "name": "entity.name.type.typedecl.php"
674 }
675 },
676 "end": "(;)",
677 "endCaptures": {
678 "1": {
679 "name": "punctuation.termination.expression.php"
680 }
681 },
682 "name": "meta.typedecl.php",
683 "patterns": [
684 {
685 "include": "#comments"
686 },
687 {
688 "include": "#generics"
689 },
690 {
691 "match": "(=)",
692 "name": "keyword.operator.assignment.php"
693 },
694 {
695 "include": "#type-annotation"
696 }
697 ]
698 },
699 {
700 "begin": "(?i)^\\s*(?:(public|internal)\\s+)?(enum)\\s+(class)\\s+([a-z0-9_]+)\\s*:?",
701 "beginCaptures": {
702 "1": {
703 "name": "storage.modifier.php"
704 },
705 "2": {
706 "name": "storage.modifier.php"
707 },
708 "3": {
709 "name": "storage.type.class.enum.php"
710 },
711 "4": {
712 "name": "entity.name.type.class.enum.php"
713 }
714 },
715 "end": "(?=[{])",
716 "name": "meta.class.enum.php",
717 "patterns": [
718 {
719 "match": "\\b(extends)\\b",
720 "name": "storage.modifier.extends.php"
721 },
722 {
723 "include": "#type-annotation"
724 }
725 ]
726 },
727 {
728 "begin": "(?i)^\\s*(?:(public|internal)\\s+)?(enum)\\s+([a-z0-9_]+)\\s*:?",
729 "beginCaptures": {
730 "1": {
731 "name": "storage.modifier.php"
732 },
733 "2": {
734 "name": "storage.type.enum.php"
735 },
736 "3": {
737 "name": "entity.name.type.enum.php"
738 }
739 },
740 "end": "\\{",
741 "name": "meta.enum.php",
742 "patterns": [
743 {
744 "include": "#comments"
745 },
746 {
747 "include": "#type-annotation"
748 }
749 ]
750 },
751 {
752 "begin": "(?i)^\\s*(?:(public|internal)\\s+)?(trait)\\s+([a-z0-9_]+)\\s*",
753 "beginCaptures": {
754 "1": {
755 "name": "storage.modifier.php"
756 },
757 "2": {
758 "name": "storage.type.trait.php"
759 },
760 "3": {
761 "name": "entity.name.type.class.php"
762 }
763 },
764 "end": "(?=[{])",
765 "name": "meta.trait.php",
766 "patterns": [
767 {
768 "include": "#comments"
769 },
770 {
771 "include": "#generics"
772 },
773 {
774 "include": "#implements"
775 }
776 ]
777 },
778 {
779 "begin": "^\\s*(new)\\s+(module)\\s+([A-Za-z0-9_\\.]+)\\b",
780 "beginCaptures": {
781 "1": {
782 "name": "storage.type.module.php"
783 },
784 "2": {
785 "name": "storage.type.module.php"
786 },
787 "3": {
788 "name": "entity.name.type.module.php"
789 }
790 },
791 "end": "(?=[{])",
792 "name": "meta.module.php",
793 "patterns": [
794 {
795 "include": "#comments"
796 }
797 ]
798 },
799 {
800 "begin": "^\\s*(module)\\s+([A-Za-z0-9_\\.]+)\\b",
801 "beginCaptures": {
802 "1": {
803 "name": "keyword.other.module.php"
804 },
805 "2": {
806 "name": "entity.name.type.module.php"
807 }
808 },
809 "end": "$|(?=[\\s;])",
810 "name": "meta.use.module.php",
811 "patterns": [
812 {
813 "include": "#comments"
814 }
815 ]
816 },
817 {
818 "begin": "(?i)(?:^\\s*|\\s*)(namespace)\\b\\s+(?=([a-z0-9_\\\\]*\\s*($|[;{]|(\\/[\\/*])))|$)",
819 "beginCaptures": {
820 "1": {
821 "name": "keyword.other.namespace.php"
822 }
823 },
824 "contentName": "entity.name.type.namespace.php",
825 "end": "(?i)(?=\\s*$|[^a-z0-9_\\\\])",
826 "name": "meta.namespace.php",
827 "patterns": [
828 {
829 "match": "\\\\",
830 "name": "punctuation.separator.inheritance.php"
831 }
832 ]
833 },
834 {
835 "begin": "(?i)\\s*\\b(use)\\s+",
836 "beginCaptures": {
837 "1": {
838 "name": "keyword.other.use.php"
839 }
840 },
841 "end": "(?=;|(?:^\\s*$))",
842 "name": "meta.use.php",
843 "patterns": [
844 {
845 "include": "#comments"
846 },
847 {
848 "begin": "(?i)\\s*(?=[a-z_0-9\\\\])",
849 "end": "(?xi)\n(?:\n (?:\\s*(as)\\b\\s*([a-z_0-9]*)\\s*(?=,|;|$))|\n (?=,|;|$)\n)",
850 "endCaptures": {
851 "1": {
852 "name": "keyword.other.use-as.php"
853 },
854 "2": {
855 "name": "support.other.namespace.use-as.php"
856 }
857 },
858 "patterns": [
859 {
860 "include": "#class-builtin"
861 },
862 {
863 "begin": "(?i)\\s*(?=[\\\\a-z_0-9])",
864 "end": "$|(?=[\\s,;])",
865 "name": "support.other.namespace.use.php",
866 "patterns": [
867 {
868 "match": "\\\\",
869 "name": "punctuation.separator.inheritance.php"
870 }
871 ]
872 }
873 ]
874 },
875 {
876 "match": "\\s*,\\s*"
877 }
878 ]
879 },
880 {
881 "begin": "(?i)^\\s*((?:(?:final|abstract|public|internal)\\s+)*)(class)\\s+([a-z0-9_]+)\\s*",
882 "beginCaptures": {
883 "1": {
884 "patterns": [
885 {
886 "match": "final|abstract|public|internal",
887 "name": "storage.modifier.php"
888 }
889 ]
890 },
891 "2": {
892 "name": "storage.type.class.php"
893 },
894 "3": {
895 "name": "entity.name.type.class.php"
896 }
897 },
898 "end": "(?=[;{])",
899 "name": "meta.class.php",
900 "patterns": [
901 {
902 "include": "#comments"
903 },
904 {
905 "include": "#generics"
906 },
907 {
908 "include": "#implements"
909 },
910 {
911 "begin": "(?i)(extends)\\s+",
912 "beginCaptures": {
913 "1": {
914 "name": "storage.modifier.extends.php"
915 }
916 },
917 "contentName": "meta.other.inherited-class.php",
918 "end": "(?i)(?=[^a-z_0-9\\\\])",
919 "patterns": [
920 {
921 "begin": "(?i)(?=\\\\?[a-z_0-9]+\\\\)",
922 "end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])",
923 "endCaptures": {
924 "1": {
925 "name": "entity.other.inherited-class.php"
926 }
927 },
928 "patterns": [
929 {
930 "include": "#namespace"
931 }
932 ]
933 },
934 {
935 "include": "#class-builtin"
936 },
937 {
938 "include": "#namespace"
939 },
940 {
941 "match": "(?i)[a-z_][a-z_0-9]*",
942 "name": "entity.other.inherited-class.php"
943 }
944 ]
945 }
946 ]
947 },
948 {
949 "captures": {
950 "1": {
951 "name": "keyword.control.php"
952 }
953 },
954 "match": "\\s*\\b(await|break|c(ase|ontinue)|concurrent|default|do|else|for(each)?|if|return|switch|use|while)\\b"
955 },
956 {
957 "begin": "(?i)\\b((?:require|include)(?:_once)?)\\b\\s*",
958 "beginCaptures": {
959 "1": {
960 "name": "keyword.control.import.include.php"
961 }
962 },
963 "end": "(?=\\s|;|$)",
964 "name": "meta.include.php",
965 "patterns": [
966 {
967 "include": "#language"
968 }
969 ]
970 },
971 {
972 "begin": "\\b(catch)\\s*(\\()",
973 "beginCaptures": {
974 "1": {
975 "name": "keyword.control.exception.catch.php"
976 },
977 "2": {
978 "name": "punctuation.definition.parameters.begin.bracket.round.php"
979 }
980 },
981 "end": "\\)",
982 "endCaptures": {
983 "0": {
984 "name": "punctuation.definition.parameters.end.bracket.round.php"
985 }
986 },
987 "name": "meta.catch.php",
988 "patterns": [
989 {
990 "include": "#namespace"
991 },
992 {
993 "match": "(?xi)\n([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*) # Exception class\n((?:\\s*\\|\\s*[a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)*) # Optional additional exception classes\n\\s*\n((\\$+)[a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*) # Variable",
994 "captures": {
995 "1": {
996 "name": "support.class.exception.php"
997 },
998 "2": {
999 "patterns": [
1000 {
1001 "match": "(?i)[a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*",
1002 "name": "support.class.exception.php"
1003 },
1004 {
1005 "match": "\\|",
1006 "name": "punctuation.separator.delimiter.php"
1007 }
1008 ]
1009 },
1010 "3": {
1011 "name": "variable.other.php"
1012 },
1013 "4": {
1014 "name": "punctuation.definition.variable.php"
1015 }
1016 }
1017 }
1018 ]
1019 },
1020 {
1021 "match": "\\b(catch|try|throw|exception|finally)\\b",
1022 "name": "keyword.control.exception.php"
1023 },
1024 {
1025 "begin": "(?i)\\s*(?:(public|internal)\\s+)?(function)\\s*(?=\\()",
1026 "beginCaptures": {
1027 "1": {
1028 "name": "storage.modifier.php"
1029 },
1030 "2": {
1031 "name": "storage.type.function.php"
1032 }
1033 },
1034 "end": "\\{|\\)",
1035 "name": "meta.function.closure.php",
1036 "patterns": [
1037 {
1038 "begin": "(\\()",
1039 "beginCaptures": {
1040 "1": {
1041 "name": "punctuation.definition.parameters.begin.php"
1042 }
1043 },
1044 "contentName": "meta.function.arguments.php",
1045 "end": "(\\))",
1046 "endCaptures": {
1047 "1": {
1048 "name": "punctuation.definition.parameters.end.php"
1049 }
1050 },
1051 "patterns": [
1052 {
1053 "include": "#function-arguments"
1054 }
1055 ]
1056 },
1057 {
1058 "begin": "(?i)(use)\\s*(\\()",
1059 "beginCaptures": {
1060 "1": {
1061 "name": "keyword.other.function.use.php"
1062 },
1063 "2": {
1064 "name": "punctuation.definition.parameters.begin.php"
1065 }
1066 },
1067 "end": "(\\))",
1068 "endCaptures": {
1069 "1": {
1070 "name": "punctuation.definition.parameters.end.php"
1071 }
1072 },
1073 "patterns": [
1074 {
1075 "captures": {
1076 "1": {
1077 "name": "storage.modifier.reference.php"
1078 },
1079 "2": {
1080 "name": "variable.other.php"
1081 },
1082 "3": {
1083 "name": "punctuation.definition.variable.php"
1084 }
1085 },
1086 "match": "(?:\\s*(&))?\\s*((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\\s*(?=,|\\))",
1087 "name": "meta.function.closure.use.php"
1088 }
1089 ]
1090 }
1091 ]
1092 },
1093 {
1094 "begin": "(?x)\n\\s*((?:(?:final|abstract|public|private|protected|internal|static|async)\\s+)*)\n(function)\n(?:\\s+)\n(?:\n (__(?:call|construct|destruct|get|set|isset|unset|tostring|clone|set_state|sleep|wakeup|autoload|invoke|callStatic|dispose|disposeAsync)(?=[^a-zA-Z0-9_\\x7f-\\xff]))\n |\n ([a-zA-Z0-9_]+)\n)",
1095 "beginCaptures": {
1096 "1": {
1097 "patterns": [
1098 {
1099 "match": "final|abstract|public|private|protected|internal|static|async",
1100 "name": "storage.modifier.php"
1101 }
1102 ]
1103 },
1104 "2": {
1105 "name": "storage.type.function.php"
1106 },
1107 "3": {
1108 "name": "support.function.magic.php"
1109 },
1110 "4": {
1111 "name": "entity.name.function.php"
1112 },
1113 "5": {
1114 "name": "meta.function.generics.php"
1115 }
1116 },
1117 "end": "(?=[{;])",
1118 "name": "meta.function.php",
1119 "patterns": [
1120 {
1121 "include": "#generics"
1122 },
1123 {
1124 "begin": "(\\()",
1125 "beginCaptures": {
1126 "1": {
1127 "name": "punctuation.definition.parameters.begin.php"
1128 }
1129 },
1130 "end": "(?=\\))",
1131 "contentName": "meta.function.arguments.php",
1132 "patterns": [
1133 {
1134 "include": "#function-arguments"
1135 }
1136 ]
1137 },
1138 {
1139 "begin": "(\\))",
1140 "beginCaptures": {
1141 "1": {
1142 "name": "punctuation.definition.parameters.end.php"
1143 }
1144 },
1145 "end": "(?=[{;])",
1146 "patterns": [
1147 {
1148 "include": "#function-return-type"
1149 }
1150 ]
1151 }
1152 ]
1153 },
1154 {
1155 "include": "#invoke-call"
1156 },
1157 {
1158 "begin": "(?xi)\n\\s*\n (?=\n [a-z_0-9$\\\\]+(::)\n (?:\n ([a-z_][a-z_0-9]*)\\s*\\(\n |\n ((\\$+)[a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\n |\n ([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)\n )?\n )",
1159 "end": "(?x)\n(::)\n(?:\n ([A-Za-z_][A-Za-z_0-9]*)\\s*\\(\n |\n ((\\$+)[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n |\n ([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n)?",
1160 "endCaptures": {
1161 "1": {
1162 "name": "keyword.operator.class.php"
1163 },
1164 "2": {
1165 "name": "meta.function-call.static.php"
1166 },
1167 "3": {
1168 "name": "variable.other.class.php"
1169 },
1170 "4": {
1171 "name": "punctuation.definition.variable.php"
1172 },
1173 "5": {
1174 "name": "constant.other.class.php"
1175 }
1176 },
1177 "patterns": [
1178 {
1179 "match": "(self|static|parent)\\b",
1180 "name": "support.type.php"
1181 },
1182 {
1183 "include": "#class-name"
1184 },
1185 {
1186 "include": "#variable-name"
1187 }
1188 ]
1189 },
1190 {
1191 "include": "#variables"
1192 },
1193 {
1194 "include": "#strings"
1195 },
1196 {
1197 "captures": {
1198 "1": {
1199 "name": "support.function.construct.php"
1200 },
1201 "2": {
1202 "name": "punctuation.definition.array.begin.php"
1203 },
1204 "3": {
1205 "name": "punctuation.definition.array.end.php"
1206 }
1207 },
1208 "match": "(array)(\\()(\\))",
1209 "name": "meta.array.empty.php"
1210 },
1211 {
1212 "begin": "(array)(\\()",
1213 "beginCaptures": {
1214 "1": {
1215 "name": "support.function.construct.php"
1216 },
1217 "2": {
1218 "name": "punctuation.definition.array.begin.php"
1219 }
1220 },
1221 "end": "\\)",
1222 "endCaptures": {
1223 "0": {
1224 "name": "punctuation.definition.array.end.php"
1225 }
1226 },
1227 "name": "meta.array.php",
1228 "patterns": [
1229 {
1230 "include": "#language"
1231 }
1232 ]
1233 },
1234 {
1235 "captures": {
1236 "1": {
1237 "name": "support.type.php"
1238 }
1239 },
1240 "match": "(?i)\\s*\\(\\s*(array|real|double|float|int(eger)?|bool(ean)?|string|object|binary|unset|arraykey|nonnull|dict|vec|keyset)\\s*\\)"
1241 },
1242 {
1243 "match": "(?i)\\b(array|real|double|float|int(eger)?|bool(ean)?|string|class|clone|var|function|interface|trait|parent|self|object|arraykey|nonnull|dict|vec|keyset)\\b",
1244 "name": "support.type.php"
1245 },
1246 {
1247 "match": "(?i)\\b(global|abstract|const|extends|implements|final|p(r(ivate|otected)|ublic)|internal|static)\\b",
1248 "name": "storage.modifier.php"
1249 },
1250 {
1251 "include": "#object"
1252 },
1253 {
1254 "match": ";",
1255 "name": "punctuation.terminator.expression.php"
1256 },
1257 {
1258 "include": "#heredoc"
1259 },
1260 {
1261 "match": "\\.=?",
1262 "name": "keyword.operator.string.php"
1263 },
1264 {
1265 "match": "=>",
1266 "name": "keyword.operator.key.php"
1267 },
1268 {
1269 "match": "==>",
1270 "name": "keyword.operator.lambda.php"
1271 },
1272 {
1273 "match": "\\|>",
1274 "name": "keyword.operator.pipe.php"
1275 },
1276 {
1277 "match": "(!==|!=|===|==)",
1278 "name": "keyword.operator.comparison.php"
1279 },
1280 {
1281 "match": "=|\\+=|\\-=|\\*=|/=|%=|&=|\\|=|\\^=|<<=|>>=",
1282 "name": "keyword.operator.assignment.php"
1283 },
1284 {
1285 "match": "(<=|>=|<|>)",
1286 "name": "keyword.operator.comparison.php"
1287 },
1288 {
1289 "match": "(\\-\\-|\\+\\+)",
1290 "name": "keyword.operator.increment-decrement.php"
1291 },
1292 {
1293 "match": "(\\-|\\+|\\*|/|%)",
1294 "name": "keyword.operator.arithmetic.php"
1295 },
1296 {
1297 "match": "(!|&&|\\|\\|)",
1298 "name": "keyword.operator.logical.php"
1299 },
1300 {
1301 "begin": "(?i)\\b(as|is)\\b\\s+(?=[\\\\$a-z_])",
1302 "beginCaptures": {
1303 "1": {
1304 "name": "keyword.operator.type.php"
1305 }
1306 },
1307 "end": "(?=[^\\\\$A-Za-z_0-9])",
1308 "patterns": [
1309 {
1310 "include": "#class-name"
1311 },
1312 {
1313 "include": "#variable-name"
1314 }
1315 ]
1316 },
1317 {
1318 "match": "(?i)\\b(is|as)\\b",
1319 "name": "keyword.operator.type.php"
1320 },
1321 {
1322 "include": "#function-call"
1323 },
1324 {
1325 "match": "<<|>>|~|\\^|&|\\|",
1326 "name": "keyword.operator.bitwise.php"
1327 },
1328 {
1329 "include": "#numbers"
1330 },
1331 {
1332 "include": "#instantiation"
1333 },
1334 {
1335 "begin": "\\[",
1336 "beginCaptures": {
1337 "0": {
1338 "name": "punctuation.section.array.begin.php"
1339 }
1340 },
1341 "end": "\\]",
1342 "endCaptures": {
1343 "0": {
1344 "name": "punctuation.section.array.end.php"
1345 }
1346 },
1347 "patterns": [
1348 {
1349 "include": "#language"
1350 }
1351 ]
1352 },
1353 {
1354 "include": "#literal-collections"
1355 },
1356 {
1357 "begin": "\\{",
1358 "beginCaptures": {
1359 "0": {
1360 "name": "punctuation.section.scope.begin.php"
1361 }
1362 },
1363 "end": "\\}",
1364 "endCaptures": {
1365 "0": {
1366 "name": "punctuation.section.scope.end.php"
1367 }
1368 },
1369 "patterns": [
1370 {
1371 "include": "#language"
1372 }
1373 ]
1374 },
1375 {
1376 "include": "#constants"
1377 }
1378 ]
1379 },
1380 "namespace": {
1381 "begin": "(?i)((namespace)|[a-z0-9_]+)?(\\\\)(?=.*?[^a-z_0-9\\\\])",
1382 "beginCaptures": {
1383 "1": {
1384 "name": "entity.name.type.namespace.php"
1385 },
1386 "3": {
1387 "name": "punctuation.separator.inheritance.php"
1388 }
1389 },
1390 "end": "(?i)(?=[a-z0-9_]*[^a-z0-9_\\\\])",
1391 "name": "support.other.namespace.php",
1392 "patterns": [
1393 {
1394 "name": "entity.name.type.namespace.php",
1395 "match": "(?i)[a-z0-9_]+(?=\\\\)"
1396 },
1397 {
1398 "captures": {
1399 "1": {
1400 "name": "punctuation.separator.inheritance.php"
1401 }
1402 },
1403 "match": "(?i)(\\\\)"
1404 }
1405 ]
1406 },
1407 "numbers": {
1408 "match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b",
1409 "name": "constant.numeric.php"
1410 },
1411 "object": {
1412 "patterns": [
1413 {
1414 "begin": "(->)(\\$?\\{)",
1415 "beginCaptures": {
1416 "1": {
1417 "name": "keyword.operator.class.php"
1418 },
1419 "2": {
1420 "name": "punctuation.definition.variable.php"
1421 }
1422 },
1423 "end": "(\\})",
1424 "endCaptures": {
1425 "1": {
1426 "name": "punctuation.definition.variable.php"
1427 }
1428 },
1429 "patterns": [
1430 {
1431 "include": "#language"
1432 }
1433 ]
1434 },
1435 {
1436 "captures": {
1437 "1": {
1438 "name": "keyword.operator.class.php"
1439 },
1440 "2": {
1441 "name": "meta.function-call.object.php"
1442 },
1443 "3": {
1444 "name": "variable.other.property.php"
1445 },
1446 "4": {
1447 "name": "punctuation.definition.variable.php"
1448 }
1449 },
1450 "match": "(?x)\n(->)\n (?:\n ([A-Za-z_][A-Za-z_0-9]*)\\s*\\(\n |\n ((\\$+)?[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n )?"
1451 }
1452 ]
1453 },
1454 "parameter-default-types": {
1455 "patterns": [
1456 {
1457 "include": "#strings"
1458 },
1459 {
1460 "include": "#numbers"
1461 },
1462 {
1463 "include": "#variables"
1464 },
1465 {
1466 "match": "=>",
1467 "name": "keyword.operator.key.php"
1468 },
1469 {
1470 "match": "=",
1471 "name": "keyword.operator.assignment.php"
1472 },
1473 {
1474 "include": "#instantiation"
1475 },
1476 {
1477 "begin": "(?xi)\n\\s*\n(?=\n [a-z_0-9\\\\]+(::)\n ([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?\n)",
1478 "end": "(?i)(::)([a-z_\\x{7f}-\\x{ff}][a-z0-9_\\x{7f}-\\x{ff}]*)?",
1479 "endCaptures": {
1480 "1": {
1481 "name": "keyword.operator.class.php"
1482 },
1483 "2": {
1484 "name": "constant.other.class.php"
1485 }
1486 },
1487 "patterns": [
1488 {
1489 "include": "#class-name"
1490 }
1491 ]
1492 },
1493 {
1494 "include": "#constants"
1495 }
1496 ]
1497 },
1498 "php_doc": {
1499 "patterns": [
1500 {
1501 "comment": "PHPDocumentor only recognises lines with an asterisk as the first non-whitespaces character",
1502 "match": "^(?!\\s*\\*).*$\\n?",
1503 "name": "invalid.illegal.missing-asterisk.phpdoc.php"
1504 },
1505 {
1506 "captures": {
1507 "1": {
1508 "name": "keyword.other.phpdoc.php"
1509 },
1510 "3": {
1511 "name": "storage.modifier.php"
1512 },
1513 "4": {
1514 "name": "invalid.illegal.wrong-access-type.phpdoc.php"
1515 }
1516 },
1517 "match": "^\\s*\\*\\s*(@access)\\s+((public|private|protected|internal)|(.+))\\s*$"
1518 },
1519 {
1520 "captures": {
1521 "1": {
1522 "name": "keyword.other.phpdoc.php"
1523 },
1524 "2": {
1525 "name": "markup.underline.link.php"
1526 }
1527 },
1528 "match": "(@xlink)\\s+(.+)\\s*$"
1529 },
1530 {
1531 "match": "\\@(a(bstract|uthor)|c(ategory|opyright)|example|global|internal|li(cense|nk)|pa(ckage|ram)|return|s(ee|ince|tatic|ubpackage)|t(hrows|odo)|v(ar|ersion)|uses|deprecated|final|ignore)\\b",
1532 "name": "keyword.other.phpdoc.php"
1533 },
1534 {
1535 "captures": {
1536 "1": {
1537 "name": "keyword.other.phpdoc.php"
1538 }
1539 },
1540 "match": "\\{(@(link)).+?\\}",
1541 "name": "meta.tag.inline.phpdoc.php"
1542 }
1543 ]
1544 },
1545 "regex-double-quoted": {
1546 "begin": "(?x)\n(?<=re)\"/ (?=(\\\\.|[^\"/])++/[imsxeADSUXu]*\")",
1547 "beginCaptures": {
1548 "0": {
1549 "name": "punctuation.definition.string.begin.php"
1550 }
1551 },
1552 "end": "(/)([imsxeADSUXu]*)(\")",
1553 "endCaptures": {
1554 "0": {
1555 "name": "punctuation.definition.string.end.php"
1556 }
1557 },
1558 "name": "string.regexp.double-quoted.php",
1559 "patterns": [
1560 {
1561 "comment": "Escaped from the regexp – there can also be 2 backslashes (since 1 will escape the first)",
1562 "match": "(\\\\){1,2}[.$^\\[\\]{}]",
1563 "name": "constant.character.escape.regex.php"
1564 },
1565 {
1566 "include": "#interpolation"
1567 },
1568 {
1569 "captures": {
1570 "1": {
1571 "name": "punctuation.definition.arbitrary-repetition.php"
1572 },
1573 "3": {
1574 "name": "punctuation.definition.arbitrary-repetition.php"
1575 }
1576 },
1577 "match": "(\\{)\\d+(,\\d+)?(\\})",
1578 "name": "string.regexp.arbitrary-repetition.php"
1579 },
1580 {
1581 "begin": "\\[(?:\\^?\\])?",
1582 "captures": {
1583 "0": {
1584 "name": "punctuation.definition.character-class.php"
1585 }
1586 },
1587 "end": "\\]",
1588 "name": "string.regexp.character-class.php",
1589 "patterns": [
1590 {
1591 "include": "#interpolation"
1592 }
1593 ]
1594 },
1595 {
1596 "match": "[$^+*]",
1597 "name": "keyword.operator.regexp.php"
1598 }
1599 ]
1600 },
1601 "regex-single-quoted": {
1602 "begin": "(?x)\n(?<=re)'/ (?=(\\\\.|[^'/])++/[imsxeADSUXu]*')",
1603 "beginCaptures": {
1604 "0": {
1605 "name": "punctuation.definition.string.begin.php"
1606 }
1607 },
1608 "end": "(/)([imsxeADSUXu]*)(')",
1609 "endCaptures": {
1610 "0": {
1611 "name": "punctuation.definition.string.end.php"
1612 }
1613 },
1614 "name": "string.regexp.single-quoted.php",
1615 "patterns": [
1616 {
1617 "captures": {
1618 "1": {
1619 "name": "punctuation.definition.arbitrary-repetition.php"
1620 },
1621 "3": {
1622 "name": "punctuation.definition.arbitrary-repetition.php"
1623 }
1624 },
1625 "match": "(\\{)\\d+(,\\d+)?(\\})",
1626 "name": "string.regexp.arbitrary-repetition.php"
1627 },
1628 {
1629 "comment": "Escaped from the regexp – there can also be 2 backslashes (since 1 will escape the first)",
1630 "match": "(\\\\){1,2}[.$^\\[\\]{}]",
1631 "name": "constant.character.escape.regex.php"
1632 },
1633 {
1634 "comment": "Escaped from the PHP string – there can also be 2 backslashes (since 1 will escape the first)",
1635 "match": "\\\\{1,2}[\\\\']",
1636 "name": "constant.character.escape.php"
1637 },
1638 {
1639 "begin": "\\[(?:\\^?\\])?",
1640 "captures": {
1641 "0": {
1642 "name": "punctuation.definition.character-class.php"
1643 }
1644 },
1645 "end": "\\]",
1646 "name": "string.regexp.character-class.php",
1647 "patterns": [
1648 {
1649 "match": "\\\\[\\\\'\\[\\]]",
1650 "name": "constant.character.escape.php"
1651 }
1652 ]
1653 },
1654 {
1655 "match": "[$^+*]",
1656 "name": "keyword.operator.regexp.php"
1657 }
1658 ]
1659 },
1660 "sql-string-double-quoted": {
1661 "begin": "\"\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)",
1662 "beginCaptures": {
1663 "0": {
1664 "name": "punctuation.definition.string.begin.php"
1665 }
1666 },
1667 "contentName": "source.sql.embedded.php",
1668 "end": "\"",
1669 "endCaptures": {
1670 "0": {
1671 "name": "punctuation.definition.string.end.php"
1672 }
1673 },
1674 "name": "string.quoted.double.sql.php",
1675 "patterns": [
1676 {
1677 "comment": "Open parens cause the next escaped character to not be captured as an\nescape character. Example: $x = \"SELECT (\")\";",
1678 "match": "\\(",
1679 "name": "punctuation.definition.parameters.begin.bracket.round.php"
1680 },
1681 {
1682 "match": "#(\\\\\"|[^\"])*(?=\"|$\\n?)",
1683 "name": "comment.line.number-sign.sql"
1684 },
1685 {
1686 "match": "--(\\\\\"|[^\"])*(?=\"|$\\n?)",
1687 "name": "comment.line.double-dash.sql"
1688 },
1689 {
1690 "match": "\\\\[\\\\\"`']",
1691 "name": "constant.character.escape.php"
1692 },
1693 {
1694 "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\nSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
1695 "match": "'(?=((\\\\')|[^'\"])*(\"|$))",
1696 "name": "string.quoted.single.unclosed.sql"
1697 },
1698 {
1699 "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\nSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
1700 "match": "`(?=((\\\\`)|[^`\"])*(\"|$))",
1701 "name": "string.quoted.other.backtick.unclosed.sql"
1702 },
1703 {
1704 "begin": "'",
1705 "end": "'",
1706 "name": "string.quoted.single.sql",
1707 "patterns": [
1708 {
1709 "include": "#interpolation"
1710 }
1711 ]
1712 },
1713 {
1714 "begin": "`",
1715 "end": "`",
1716 "name": "string.quoted.other.backtick.sql",
1717 "patterns": [
1718 {
1719 "include": "#interpolation"
1720 }
1721 ]
1722 },
1723 {
1724 "include": "#interpolation"
1725 },
1726 {
1727 "include": "source.sql"
1728 }
1729 ]
1730 },
1731 "sql-string-single-quoted": {
1732 "begin": "'\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\\b)",
1733 "beginCaptures": {
1734 "0": {
1735 "name": "punctuation.definition.string.begin.php"
1736 }
1737 },
1738 "contentName": "source.sql.embedded.php",
1739 "end": "'",
1740 "endCaptures": {
1741 "0": {
1742 "name": "punctuation.definition.string.end.php"
1743 }
1744 },
1745 "name": "string.quoted.single.sql.php",
1746 "patterns": [
1747 {
1748 "comment": "Open parens cause the next escaped character to not be captured as an\nescape character. Example: $x = 'SELECT (')';",
1749 "match": "\\(",
1750 "name": "punctuation.definition.parameters.begin.bracket.round.php"
1751 },
1752 {
1753 "match": "#(\\\\'|[^'])*(?='|$\\n?)",
1754 "name": "comment.line.number-sign.sql"
1755 },
1756 {
1757 "match": "--(\\\\'|[^'])*(?='|$\\n?)",
1758 "name": "comment.line.double-dash.sql"
1759 },
1760 {
1761 "match": "\\\\[\\\\'`\"]",
1762 "name": "constant.character.escape.php"
1763 },
1764 {
1765 "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\nSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
1766 "match": "`(?=((\\\\`)|[^`'])*('|$))",
1767 "name": "string.quoted.other.backtick.unclosed.sql"
1768 },
1769 {
1770 "comment": "Unclosed strings must be captured to avoid them eating the remainder of the PHP script\nSample case: $sql = \"SELECT * FROM bar WHERE foo = '\" . $variable . \"'\"",
1771 "match": "\"(?=((\\\\\")|[^\"'])*('|$))",
1772 "name": "string.quoted.double.unclosed.sql"
1773 },
1774 {
1775 "include": "source.sql"
1776 }
1777 ]
1778 },
1779 "string-double-quoted": {
1780 "begin": "\"",
1781 "beginCaptures": {
1782 "0": {
1783 "name": "punctuation.definition.string.begin.php"
1784 }
1785 },
1786 "comment": "This contentName is just to allow the usage of “select scope” to select the string contents first, then the string with quotes",
1787 "contentName": "meta.string-contents.quoted.double.php",
1788 "end": "\"",
1789 "endCaptures": {
1790 "0": {
1791 "name": "punctuation.definition.string.end.php"
1792 }
1793 },
1794 "name": "string.quoted.double.php",
1795 "patterns": [
1796 {
1797 "include": "#interpolation"
1798 }
1799 ]
1800 },
1801 "string-single-quoted": {
1802 "begin": "'",
1803 "beginCaptures": {
1804 "0": {
1805 "name": "punctuation.definition.string.begin.php"
1806 }
1807 },
1808 "contentName": "meta.string-contents.quoted.single.php",
1809 "end": "'",
1810 "endCaptures": {
1811 "0": {
1812 "name": "punctuation.definition.string.end.php"
1813 }
1814 },
1815 "name": "string.quoted.single.php",
1816 "patterns": [
1817 {
1818 "match": "\\\\[\\\\']",
1819 "name": "constant.character.escape.php"
1820 }
1821 ]
1822 },
1823 "strings": {
1824 "patterns": [
1825 {
1826 "include": "#regex-double-quoted"
1827 },
1828 {
1829 "include": "#sql-string-double-quoted"
1830 },
1831 {
1832 "include": "#string-double-quoted"
1833 },
1834 {
1835 "include": "#regex-single-quoted"
1836 },
1837 {
1838 "include": "#sql-string-single-quoted"
1839 },
1840 {
1841 "include": "#string-single-quoted"
1842 }
1843 ]
1844 },
1845 "support": {
1846 "patterns": [
1847 {
1848 "match": "(?i)\\bapc_(s(tore|ma_info)|c(ompile_file|lear_cache|a(s|che_info))|inc|de(c|fine_constants|lete(_file)?)|exists|fetch|load_constants|add|bin_(dump(file)?|load(file)?))\\b",
1849 "name": "support.function.apc.php"
1850 },
1851 {
1852 "match": "(?i)\\b(s(huffle|izeof|ort)|n(ext|at(sort|casesort))|c(o(unt|mpact)|urrent)|in_array|u(sort|ksort|asort)|p(os|rev)|e(nd|ach|xtract)|k(sort|ey|rsort)|list|a(sort|r(sort|ray(_(s(hift|um|plice|earch|lice)|c(h(unk|ange_key_case)|o(unt_values|mbine))|intersect(_(u(key|assoc)|key|assoc))?|diff(_(u(key|assoc)|key|assoc))?|u(n(shift|ique)|intersect(_(uassoc|assoc))?|diff(_(uassoc|assoc))?)|p(op|ush|ad|roduct)|values|key(s|_exists)|f(il(ter|l(_keys)?)|lip)|walk(_recursive)?|r(e(duce|place(_recursive)?|verse)|and)|m(ultisort|erge(_recursive)?|ap)))?))|r(sort|eset|ange))\\b",
1853 "name": "support.function.array.php"
1854 },
1855 {
1856 "match": "(?i)\\b(s(how_source|ys_getloadavg|leep)|highlight_(string|file)|con(stant|nection_(status|timeout|aborted))|time_(sleep_until|nanosleep)|ignore_user_abort|d(ie|efine(d)?)|u(sleep|n(iqid|pack))|__halt_compiler|p(hp_(strip_whitespace|check_syntax)|ack)|e(val|xit)|get_browser)\\b",
1857 "name": "support.function.basic_functions.php"
1858 },
1859 {
1860 "match": "(?i)\\bbc(s(cale|ub|qrt)|comp|div|pow(mod)?|add|m(od|ul))\\b",
1861 "name": "support.function.bcmath.php"
1862 },
1863 {
1864 "match": "(?i)\\bbz(c(ompress|lose)|open|decompress|err(str|no|or)|flush|write|read)\\b",
1865 "name": "support.function.bz2.php"
1866 },
1867 {
1868 "match": "(?i)\\b(GregorianToJD|cal_(to_jd|info|days_in_month|from_jd)|unixtojd|jdto(unix|jewish)|easter_da(ys|te)|J(ulianToJD|ewishToJD|D(MonthName|To(Gregorian|Julian|French)|DayOfWeek))|FrenchToJD)\\b",
1869 "name": "support.function.calendar.php"
1870 },
1871 {
1872 "match": "(?i)\\b(c(lass_(exists|alias)|all_user_method(_array)?)|trait_exists|i(s_(subclass_of|a)|nterface_exists)|__autoload|property_exists|get_(c(lass(_(vars|methods))?|alled_class)|object_vars|declared_(classes|traits|interfaces)|parent_class)|method_exists)\\b",
1873 "name": "support.function.classobj.php"
1874 },
1875 {
1876 "match": "(?i)\\b(com_(set|create_guid|i(senum|nvoke)|pr(int_typeinfo|op(set|put|get))|event_sink|load(_typelib)?|addref|release|get(_active_object)?|message_pump)|variant_(s(ub|et(_type)?)|n(ot|eg)|c(a(st|t)|mp)|i(nt|div|mp)|or|d(iv|ate_(to_timestamp|from_timestamp))|pow|eqv|fix|a(nd|dd|bs)|round|get_type|xor|m(od|ul)))\\b",
1877 "name": "support.function.com.php"
1878 },
1879 {
1880 "match": "(?i)\\bctype_(space|cntrl|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit)\\b",
1881 "name": "support.function.ctype.php"
1882 },
1883 {
1884 "match": "(?i)\\bcurl_(setopt(_array)?|c(opy_handle|lose)|init|e(rr(no|or)|xec)|version|getinfo|multi_(select|close|in(it|fo_read)|exec|add_handle|remove_handle|getcontent))\\b",
1885 "name": "support.function.curl.php"
1886 },
1887 {
1888 "match": "(?i)\\b(str(totime|ptime|ftime)|checkdate|time(zone_(name_(from_abbr|get)|transitions_get|identifiers_list|o(pen|ffset_get)|version_get|location_get|abbreviations_list))?|idate|date(_(su(n(set|_info|rise)|b)|create(_from_format)?|time(stamp_(set|get)|zone_(set|get)|_set)|i(sodate_set|nterval_(create_from_date_string|format))|offset_get|d(iff|efault_timezone_(set|get)|ate_set)|parse(_from_format)?|format|add|get_last_errors|modify))?|localtime|g(et(timeofday|date)|m(strftime|date|mktime))|m(icrotime|ktime))\\b",
1889 "name": "support.function.datetime.php"
1890 },
1891 {
1892 "match": "(?i)\\bdba_(sync|handlers|nextkey|close|insert|op(timize|en)|delete|popen|exists|key_split|f(irstkey|etch)|list|replace)\\b",
1893 "name": "support.function.dba.php"
1894 },
1895 {
1896 "match": "(?i)\\bdbx_(sort|c(o(nnect|mpare)|lose)|e(scape_string|rror)|query|fetch_row)\\b",
1897 "name": "support.function.dbx.php"
1898 },
1899 {
1900 "match": "(?i)\\b(scandir|c(h(dir|root)|losedir)|opendir|dir|re(winddir|addir)|getcwd)\\b",
1901 "name": "support.function.dir.php"
1902 },
1903 {
1904 "match": "(?i)\\bdotnet_load\\b",
1905 "name": "support.function.dotnet.php"
1906 },
1907 {
1908 "match": "(?i)\\beio_(s(y(nc(_file_range|fs)?|mlink)|tat(vfs)?|e(ndfile|t_m(in_parallel|ax_(idle|p(oll_(time|reqs)|arallel)))|ek))|n(threads|op|pending|re(qs|ady))|c(h(own|mod)|ustom|lose|ancel)|truncate|init|open|dup2|u(nlink|time)|poll|event_loop|f(s(ync|tat(vfs)?)|ch(own|mod)|truncate|datasync|utime|allocate)|write|l(stat|ink)|r(e(name|a(d(dir|link|ahead)?|lpath))|mdir)|g(et_(event_stream|last_error)|rp(_(cancel|limit|add))?)|mk(nod|dir)|busy)\\b",
1909 "name": "support.function.eio.php"
1910 },
1911 {
1912 "match": "(?i)\\benchant_(dict_(s(tore_replacement|uggest)|check|is_in_session|describe|quick_check|add_to_(session|personal)|get_error)|broker_(set_ordering|init|d(ict_exists|escribe)|free(_dict)?|list_dicts|request_(dict|pwl_dict)|get_error))\\b",
1913 "name": "support.function.enchant.php"
1914 },
1915 {
1916 "match": "(?i)\\b(s(plit(i)?|ql_regcase)|ereg(i(_replace)?|_replace)?)\\b",
1917 "name": "support.function.ereg.php"
1918 },
1919 {
1920 "match": "(?i)\\b(set_e(rror_handler|xception_handler)|trigger_error|debug_(print_backtrace|backtrace)|user_error|error_(log|reporting|get_last)|restore_e(rror_handler|xception_handler))\\b",
1921 "name": "support.function.errorfunc.php"
1922 },
1923 {
1924 "match": "(?i)\\b(s(hell_exec|ystem)|p(assthru|roc_(nice|close|terminate|open|get_status))|e(scapeshell(cmd|arg)|xec))\\b",
1925 "name": "support.function.exec.php"
1926 },
1927 {
1928 "match": "(?i)\\b(exif_(t(humbnail|agname)|imagetype|read_data)|read_exif_data)\\b",
1929 "name": "support.function.exif.php"
1930 },
1931 {
1932 "match": "(?i)\\b(s(ymlink|tat|et_file_buffer)|c(h(own|grp|mod)|opy|learstatcache)|t(ouch|empnam|mpfile)|is_(dir|uploaded_file|executable|file|writ(eable|able)|link|readable)|d(i(sk(_(total_space|free_space)|freespace)|rname)|elete)|u(nlink|mask)|p(close|open|a(thinfo|rse_ini_(string|file)))|f(s(canf|tat|eek)|nmatch|close|t(ell|runcate)|ile(size|ctime|type|inode|owner|_(put_contents|exists|get_contents)|perms|atime|group|mtime)?|open|p(ut(s|csv)|assthru)|eof|flush|write|lock|read|get(s(s)?|c(sv)?))|l(stat|ch(own|grp)|ink(info)?)|r(e(name|wind|a(d(file|link)|lpath(_cache_(size|get))?))|mdir)|glob|m(ove_uploaded_file|kdir)|basename)\\b",
1933 "name": "support.function.file.php"
1934 },
1935 {
1936 "match": "(?i)\\b(finfo_(set_flags|close|open|file|buffer)|mime_content_type)\\b",
1937 "name": "support.function.fileinfo.php"
1938 },
1939 {
1940 "match": "(?i)\\bfilter_(has_var|i(nput(_array)?|d)|var(_array)?|list)\\b",
1941 "name": "support.function.filter.php"
1942 },
1943 {
1944 "match": "(?i)\\b(c(all_user_func(_array)?|reate_function)|unregister_tick_function|f(orward_static_call(_array)?|unc(tion_exists|_(num_args|get_arg(s)?)))|register_(shutdown_function|tick_function)|get_defined_functions)\\b",
1945 "name": "support.function.funchand.php"
1946 },
1947 {
1948 "match": "(?i)\\b(ngettext|textdomain|d(ngettext|c(ngettext|gettext)|gettext)|gettext|bind(textdomain|_textdomain_codeset))\\b",
1949 "name": "support.function.gettext.php"
1950 },
1951 {
1952 "match": "(?i)\\bgmp_(s(can(1|0)|trval|ign|ub|etbit|qrt(rem)?)|hamdist|ne(g|xtprime)|c(om|lrbit|mp)|testbit|in(tval|it|vert)|or|div(_(q(r)?|r)|exact)?|jacobi|p(o(pcount|w(m)?)|erfect_square|rob_prime)|fact|legendre|a(nd|dd|bs)|random|gcd(ext)?|xor|m(od|ul))\\b",
1953 "name": "support.function.gmp.php"
1954 },
1955 {
1956 "match": "(?i)\\bhash(_(hmac(_file)?|copy|init|update(_(stream|file))?|pbkdf2|fi(nal|le)|algos))?\\b",
1957 "name": "support.function.hash.php"
1958 },
1959 {
1960 "match": "(?i)\\b(http_(s(upport|end_(st(atus|ream)|content_(type|disposition)|data|file|last_modified))|head|negotiate_(c(harset|ontent_type)|language)|c(hunked_decode|ache_(etag|last_modified))|throttle|inflate|d(eflate|ate)|p(ost_(data|fields)|ut_(stream|data|file)|ersistent_handles_(c(ount|lean)|ident)|arse_(headers|cookie|params|message))|re(direct|quest(_(method_(name|unregister|exists|register)|body_encode))?)|get(_request_(headers|body(_stream)?))?|match_(etag|request_header|modified)|build_(str|cookie|url))|ob_(inflatehandler|deflatehandler|etaghandler))\\b",
1961 "name": "support.function.http.php"
1962 },
1963 {
1964 "match": "(?i)\\b(iconv(_(s(tr(pos|len|rpos)|ubstr|et_encoding)|get_encoding|mime_(decode(_headers)?|encode)))?|ob_iconv_handler)\\b",
1965 "name": "support.function.iconv.php"
1966 },
1967 {
1968 "match": "(?i)\\biis_(s(t(op_serv(ice|er)|art_serv(ice|er))|et_(s(cript_map|erver_rights)|dir_security|app_settings))|add_server|remove_server|get_(s(cript_map|erv(ice_state|er_(rights|by_(comment|path))))|dir_security))\\b",
1969 "name": "support.function.iisfunc.php"
1970 },
1971 {
1972 "match": "(?i)\\b(i(ptc(parse|embed)|mage(s(y|tring(up)?|et(style|t(hickness|ile)|pixel|brush)|avealpha|x)|c(har(up)?|o(nvolution|py(res(ized|ampled)|merge(gray)?)?|lor(s(total|et|forindex)|closest(hwb|alpha)?|transparent|deallocate|exact(alpha)?|a(t|llocate(alpha)?)|resolve(alpha)?|match))|reate(truecolor|from(string|jpeg|png|wbmp|g(if|d(2(part)?)?)|x(pm|bm)))?)|t(ypes|tf(text|bbox)|ruecolortopalette)|i(struecolor|nterlace)|2wbmp|d(estroy|ashedline)|jpeg|_type_to_(extension|mime_type)|p(s(slantfont|text|e(ncodefont|xtendfont)|freefont|loadfont|bbox)|ng|olygon|alettecopy)|ellipse|f(t(text|bbox)|il(ter|l(toborder|ed(polygon|ellipse|arc|rectangle))?)|ont(height|width))|wbmp|l(ine|oadfont|ayereffect)|a(ntialias|lphablending|rc)|r(otate|ectangle)|g(if|d(2)?|ammacorrect|rab(screen|window))|xbm))|jpeg2wbmp|png2wbmp|g(d_info|etimagesize(fromstring)?))\\b",
1973 "name": "support.function.image.php"
1974 },
1975 {
1976 "match": "(?i)\\b(s(ys_get_temp_dir|et_(time_limit|include_path|magic_quotes_runtime))|ini_(set|alter|restore|get(_all)?)|zend_(thread_id|version|logo_guid)|dl|p(hp(credits|info|_(sapi_name|ini_(scanned_files|loaded_file)|uname|logo_guid)|version)|utenv)|extension_loaded|version_compare|assert(_options)?|restore_include_path|g(c_(collect_cycles|disable|enable(d)?)|et(opt|_(c(urrent_user|fg_var)|include(d_files|_path)|defined_constants|extension_funcs|loaded_extensions|required_files|magic_quotes_(runtime|gpc))|env|lastmod|rusage|my(inode|uid|pid|gid)))|m(emory_get_(usage|peak_usage)|a(in|gic_quotes_runtime)))\\b",
1977 "name": "support.function.info.php"
1978 },
1979 {
1980 "match": "(?i)\\bibase_(se(t_event_handler|rv(ice_(detach|attach)|er_info))|n(um_(params|fields)|ame_result)|c(o(nnect|mmit(_ret)?)|lose)|trans|d(elete_user|rop_db|b_info)|p(connect|aram_info|repare)|e(rr(code|msg)|xecute)|query|f(ield_info|etch_(object|assoc|row)|ree_(event_handler|query|result))|wait_event|a(dd_user|ffected_rows)|r(ollback(_ret)?|estore)|gen_id|m(odify_user|aintain_db)|b(lob_(c(lose|ancel|reate)|i(nfo|mport)|open|echo|add|get)|ackup))\\b",
1981 "name": "support.function.interbase.php"
1982 },
1983 {
1984 "match": "(?i)\\b(n(ormalizer_(normalize|is_normalized)|umfmt_(set_(symbol|text_attribute|pattern|attribute)|create|parse(_currency)?|format(_currency)?|get_(symbol|text_attribute|pattern|error_(code|message)|locale|attribute)))|collator_(s(ort(_with_sort_keys)?|et_(strength|attribute))|c(ompare|reate)|asort|get_(s(trength|ort_key)|error_(code|message)|locale|attribute))|transliterator_(create(_(inverse|from_rules))?|transliterate|list_ids|get_error_(code|message))|i(ntl_(is_failure|error_name|get_error_(code|message))|dn_to_(u(nicode|tf8)|ascii))|datefmt_(set_(calendar|timezone(_id)?|pattern|lenient)|create|is_lenient|parse|format(_object)?|localtime|get_(calendar(_object)?|time(type|zone(_id)?)|datetype|pattern|error_(code|message)|locale))|locale_(set_default|compose|parse|filter_matches|lookup|accept_from_http|get_(script|d(isplay_(script|name|variant|language|region)|efault)|primary_language|keywords|all_variants|region))|resourcebundle_(c(ount|reate)|locales|get(_error_(code|message))?)|grapheme_(s(tr(str|i(str|pos)|pos|len|r(ipos|pos))|ubstr)|extract)|msgfmt_(set_pattern|create|parse(_message)?|format(_message)?|get_(pattern|error_(code|message)|locale)))\\b",
1985 "name": "support.function.intl.php"
1986 },
1987 {
1988 "match": "(?i)\\bjson_(decode|encode|last_error)\\b",
1989 "name": "support.function.json.php"
1990 },
1991 {
1992 "match": "(?i)\\bldap_(s(tart_tls|ort|e(t_(option|rebind_proc)|arch)|asl_bind)|next_(entry|attribute|reference)|c(o(n(nect|trol_paged_result(_response)?)|unt_entries|mpare)|lose)|t61_to_8859|d(n2ufn|elete)|8859_to_t61|unbind|parse_re(sult|ference)|e(rr(no|2str|or)|xplode_dn)|f(irst_(entry|attribute|reference)|ree_result)|list|add|re(name|ad)|get_(option|dn|entries|values(_len)?|attributes)|mod(ify|_(del|add|replace))|bind)\\b",
1993 "name": "support.function.ldap.php"
1994 },
1995 {
1996 "match": "(?i)\\blibxml_(set_(streams_context|external_entity_loader)|clear_errors|disable_entity_loader|use_internal_errors|get_(errors|last_error))\\b",
1997 "name": "support.function.libxml.php"
1998 },
1999 {
2000 "match": "(?i)\\b(ezmlm_hash|mail)\\b",
2001 "name": "support.function.mail.php"
2002 },
2003 {
2004 "match": "(?i)\\b(s(in(h)?|qrt|rand)|h(ypot|exdec)|c(os(h)?|eil)|tan(h)?|is_(nan|infinite|finite)|octdec|de(c(hex|oct|bin)|g2rad)|p(i|ow)|exp(m1)?|f(loor|mod)|l(cg_value|og(1(p|0))?)|a(sin(h)?|cos(h)?|tan(h|2)?|bs)|r(ound|a(nd|d2deg))|getrandmax|m(t_(srand|rand|getrandmax)|in|ax)|b(indec|ase_convert))\\b",
2005 "name": "support.function.math.php"
2006 },
2007 {
2008 "match": "(?i)\\bmb_(s(tr(str|cut|to(upper|lower)|i(str|pos|mwidth)|pos|width|len|r(chr|i(chr|pos)|pos))|ubst(itute_character|r(_count)?)|plit|end_mail)|http_(input|output)|c(heck_encoding|onvert_(case|encoding|variables|kana))|internal_encoding|output_handler|de(code_(numericentity|mimeheader)|tect_(order|encoding))|p(arse_str|referred_mime_name)|e(ncod(ing_aliases|e_(numericentity|mimeheader))|reg(i(_replace)?|_(search(_(setpos|init|pos|regs|get(pos|regs)))?|replace(_callback)?|match))?)|l(ist_encodings|anguage)|regex_(set_options|encoding)|get_info)\\b",
2009 "name": "support.function.mbstring.php"
2010 },
2011 {
2012 "match": "(?i)\\bm(crypt_(c(fb|reate_iv|bc)|ofb|decrypt|e(nc(_(self_test|is_block_(algorithm(_mode)?|mode)|get_(supported_key_sizes|iv_size|key_size|algorithms_name|modes_name|block_size))|rypt)|cb)|list_(algorithms|modes)|ge(neric(_(init|deinit|end))?|t_(cipher_name|iv_size|key_size|block_size))|module_(self_test|close|is_block_(algorithm(_mode)?|mode)|open|get_(supported_key_sizes|algo_(key_size|block_size))))|decrypt_generic)\\b",
2013 "name": "support.function.mcrypt.php"
2014 },
2015 {
2016 "match": "(?i)\\bmemcache_debug\\b",
2017 "name": "support.function.memcache.php"
2018 },
2019 {
2020 "match": "(?i)\\bmhash(_(count|keygen_s2k|get_(hash_name|block_size)))?\\b",
2021 "name": "support.function.mhash.php"
2022 },
2023 {
2024 "match": "(?i)\\bbson_(decode|encode)\\b",
2025 "name": "support.function.mongo.php"
2026 },
2027 {
2028 "match": "(?i)\\bmysql_(s(tat|e(t_charset|lect_db))|num_(fields|rows)|c(onnect|l(ient_encoding|ose)|reate_db)|t(hread_id|ablename)|in(sert_id|fo)|d(ata_seek|rop_db|b_(name|query))|unbuffered_query|p(connect|ing)|e(scape_string|rr(no|or))|query|f(ield_(seek|name|t(ype|able)|flags|len)|etch_(object|field|lengths|a(ssoc|rray)|row)|ree_result)|list_(tables|dbs|processes|fields)|affected_rows|re(sult|al_escape_string)|get_(server_info|host_info|client_info|proto_info))\\b",
2029 "name": "support.function.mysql.php"
2030 },
2031 {
2032 "match": "(?i)\\bmysqli_(s(sl_set|t(ore_result|at|mt_(s(tore_result|end_long_data)|next_result|close|init|data_seek|prepare|execute|f(etch|ree_result)|attr_(set|get)|res(ult_metadata|et)|get_(warnings|result)|more_results|bind_(param|result)))|e(nd_(query|long_data)|t_(charset|opt|local_infile_(handler|default))|lect_db)|lave_query)|next_result|c(ha(nge_user|racter_set_name)|o(nnect|mmit)|l(ient_encoding|ose))|thread_safe|init|options|d(isable_r(pl_parse|eads_from_master)|ump_debug_info|ebug|ata_seek)|use_result|p(ing|oll|aram_count|repare)|e(scape_string|nable_r(pl_parse|eads_from_master)|xecute|mbedded_server_(start|end))|kill|query|f(ield_seek|etch(_(object|field(s|_direct)?|a(ssoc|ll|rray)|row))?|ree_result)|autocommit|r(ollback|pl_(p(arse_enabled|robe)|query_type)|e(port|fresh|a(p_async_query|l_(connect|escape_string|query))))|get_(c(harset|onnection_stats|lient_(stats|info|version)|ache_stats)|warnings|metadata)|m(ore_results|ulti_query|aster_query)|bind_(param|result))\\b",
2033 "name": "support.function.mysqli.php"
2034 },
2035 {
2036 "match": "(?i)\\bmysqlnd_memcache_(set|get_config)\\b",
2037 "name": "support.function.mysqlnd-memcache.php"
2038 },
2039 {
2040 "match": "(?i)\\bmysqlnd_ms_(set_(user_pick_server|qos)|query_is_select|get_(stats|last_(used_connection|gtid))|match_wild)\\b",
2041 "name": "support.function.mysqlnd-ms.php"
2042 },
2043 {
2044 "match": "(?i)\\bmysqlnd_qc_(set_(storage_handler|cache_condition|is_select|user_handlers)|clear_cache|get_(normalized_query_trace_log|c(ore_stats|ache_info)|query_trace_log|available_handlers))\\b",
2045 "name": "support.function.mysqlnd-qc.php"
2046 },
2047 {
2048 "match": "(?i)\\bmysqlnd_uh_(set_(statement_proxy|connection_proxy)|convert_to_mysqlnd)\\b",
2049 "name": "support.function.mysqlnd-uh.php"
2050 },
2051 {
2052 "match": "(?i)\\b(s(yslog|ocket_(set_(timeout|blocking)|get_status)|et(cookie|rawcookie))|h(ttp_response_code|eader(s_(sent|list)|_re(gister_callback|move))?)|c(heckdnsrr|loselog)|i(net_(ntop|pton)|p2long)|openlog|d(ns_(check_record|get_(record|mx))|efine_syslog_variables)|pfsockopen|fsockopen|long2ip|get(servby(name|port)|host(name|by(name(l)?|addr))|protobyn(umber|ame)|mxrr))\\b",
2053 "name": "support.function.network.php"
2054 },
2055 {
2056 "match": "(?i)\\bnsapi_(virtual|re(sponse_headers|quest_headers))\\b",
2057 "name": "support.function.nsapi.php"
2058 },
2059 {
2060 "match": "(?i)\\b(deaggregate|aggregat(ion_info|e(_(info|properties(_by_(list|regexp))?|methods(_by_(list|regexp))?))?))\\b",
2061 "name": "support.function.objaggregation.php"
2062 },
2063 {
2064 "match": "(?i)\\boci(s(tatementtype|e(tprefetch|rverversion)|avelob(file)?)|n(umcols|ew(c(ollection|ursor)|descriptor)|logon)|c(o(l(umn(s(cale|ize)|name|type(raw)?|isnull|precision)|l(size|trim|a(ssign(elem)?|ppend)|getelem|max))|mmit)|loselob|ancel)|internaldebug|definebyname|_(s(tatement_type|e(t_(client_i(nfo|dentifier)|prefetch|edition|action|module_name)|rver_version))|n(um_(fields|rows)|ew_(c(o(nnect|llection)|ursor)|descriptor))|c(o(nnect|mmit)|l(ient_version|ose)|ancel)|internal_debug|define_by_name|p(connect|a(ssword_change|rse))|e(rror|xecute)|f(ield_(s(cale|ize)|name|type(_raw)?|is_null|precision)|etch(_(object|a(ssoc|ll|rray)|row))?|ree_(statement|descriptor))|lob_(copy|is_equal)|r(ollback|esult)|bind_(array_by_name|by_name))|p(logon|arse)|e(rror|xecute)|f(etch(statement|into)?|ree(statement|c(ollection|ursor)|desc))|write(temporarylob|lobtofile)|lo(adlob|go(n|ff))|r(o(wcount|llback)|esult)|bindbyname)\\b",
2065 "name": "support.function.oci8.php"
2066 },
2067 {
2068 "match": "(?i)\\bopenssl_(s(ign|eal)|c(sr_(sign|new|export(_to_file)?|get_(subject|public_key))|ipher_iv_length)|open|d(h_compute_key|igest|ecrypt)|p(ublic_(decrypt|encrypt)|k(cs(12_(export(_to_file)?|read)|7_(sign|decrypt|encrypt|verify))|ey_(new|export(_to_file)?|free|get_(details|p(ublic|rivate))))|rivate_(decrypt|encrypt))|e(ncrypt|rror_string)|verify|free_key|random_pseudo_bytes|get_(cipher_methods|p(ublickey|rivatekey)|md_methods)|x509_(check(_private_key|purpose)|parse|export(_to_file)?|free|read))\\b",
2069 "name": "support.function.openssl.php"
2070 },
2071 {
2072 "match": "(?i)\\b(o(utput_(add_rewrite_var|reset_rewrite_vars)|b_(start|clean|implicit_flush|end_(clean|flush)|flush|list_handlers|g(zhandler|et_(status|c(ontents|lean)|flush|le(ngth|vel)))))|flush)\\b",
2073 "name": "support.function.output.php"
2074 },
2075 {
2076 "match": "(?i)\\bpassword_(hash|needs_rehash|verify|get_info)\\b",
2077 "name": "support.function.password.php"
2078 },
2079 {
2080 "match": "(?i)\\bpcntl_(s(ig(nal(_dispatch)?|timedwait|procmask|waitinfo)|etpriority)|exec|fork|w(stopsig|termsig|if(s(topped|ignaled)|exited)|exitstatus|ait(pid)?)|alarm|getpriority)\\b",
2081 "name": "support.function.pcntl.php"
2082 },
2083 {
2084 "match": "(?i)\\bpg_(se(nd_(prepare|execute|query(_params)?)|t_(client_encoding|error_verbosity)|lect)|host|num_(fields|rows)|c(o(n(nect(ion_(status|reset|busy))?|vert)|py_(to|from))|l(ient_encoding|ose)|ancel_query)|t(ty|ra(nsaction_status|ce))|insert|options|d(elete|bname)|u(n(trace|escape_bytea)|pdate)|p(connect|ing|ort|ut_line|arameter_status|repare)|e(scape_(string|identifier|literal|bytea)|nd_copy|xecute)|version|query(_params)?|f(ield_(size|n(um|ame)|t(ype(_oid)?|able)|is_null|prtlen)|etch_(object|a(ssoc|ll(_columns)?|rray)|r(ow|esult))|ree_result)|l(o_(seek|c(lose|reate)|tell|import|open|unlink|export|write|read(_all)?)|ast_(notice|oid|error))|affected_rows|result_(s(tatus|eek)|error(_field)?)|get_(notify|pid|result)|meta_data)\\b",
2085 "name": "support.function.pgsql.php"
2086 },
2087 {
2088 "match": "(?i)\\b(virtual|apache_(setenv|note|child_terminate|lookup_uri|re(s(ponse_headers|et_timeout)|quest_headers)|get(_(version|modules)|env))|getallheaders)\\b",
2089 "name": "support.function.php_apache.php"
2090 },
2091 {
2092 "match": "(?i)\\bdom_import_simplexml\\b",
2093 "name": "support.function.php_dom.php"
2094 },
2095 {
2096 "match": "(?i)\\bftp_(s(sl_connect|ystype|i(te|ze)|et_option)|n(list|b_(continue|put|f(put|get)|get))|c(h(dir|mod)|onnect|dup|lose)|delete|p(ut|wd|asv)|exec|quit|f(put|get)|login|alloc|r(ename|aw(list)?|mdir)|get(_option)?|m(dtm|kdir))\\b",
2097 "name": "support.function.php_ftp.php"
2098 },
2099 {
2100 "match": "(?i)\\bimap_(s(can(mailbox)?|tatus|ort|ubscribe|e(t(_quota|flag_full|acl)|arch)|avebody)|header(s|info)?|num_(recent|msg)|c(heck|l(ose|earflag_full)|reate(mailbox)?)|t(hread|imeout)|open|delete(mailbox)?|8bit|u(n(subscribe|delete)|tf(7_(decode|encode)|8)|id)|ping|e(rrors|xpunge)|qprint|fetch(structure|header|text|_overview|mime|body)|l(sub|ist(s(can|ubscribed)|mailbox)?|ast_error)|a(ppend|lerts)|r(e(name(mailbox)?|open)|fc822_(parse_(headers|adrlist)|write_address))|g(c|et(subscribed|_quota(root)?|acl|mailboxes))|m(sgno|ime_header_decode|ail(_(co(py|mpose)|move)|boxmsginfo)?)|b(inary|ody(struct)?|ase64))\\b",
2101 "name": "support.function.php_imap.php"
2102 },
2103 {
2104 "match": "(?i)\\bmssql_(select_db|n(um_(fields|rows)|ext_result)|c(onnect|lose)|init|data_seek|pconnect|execute|query|f(ield_(seek|name|type|length)|etch_(object|field|a(ssoc|rray)|row|batch)|ree_(statement|result))|r(ows_affected|esult)|g(uid_string|et_last_message)|min_(error_severity|message_severity)|bind)\\b",
2105 "name": "support.function.php_mssql.php"
2106 },
2107 {
2108 "match": "(?i)\\bodbc_(s(tatistics|pecialcolumns|etoption)|n(um_(fields|rows)|ext_result)|c(o(nnect|lumn(s|privileges)|mmit)|ursor|lose(_all)?)|table(s|privileges)|d(o|ata_source)|p(connect|r(imarykeys|ocedure(s|columns)|epare))|e(rror(msg)?|xec(ute)?)|f(ield_(scale|n(um|ame)|type|precision|len)|oreignkeys|etch_(into|object|array|row)|ree_result)|longreadlen|autocommit|r(ollback|esult(_all)?)|gettypeinfo|binmode)\\b",
2109 "name": "support.function.php_odbc.php"
2110 },
2111 {
2112 "match": "(?i)\\bpreg_(split|quote|filter|last_error|replace(_callback)?|grep|match(_all)?)\\b",
2113 "name": "support.function.php_pcre.php"
2114 },
2115 {
2116 "match": "(?i)\\b(spl_(classes|object_hash|autoload(_(call|unregister|extensions|functions|register))?)|class_(implements|uses|parents)|iterator_(count|to_array|apply))\\b",
2117 "name": "support.function.php_spl.php"
2118 },
2119 {
2120 "match": "(?i)\\bzip_(close|open|entry_(name|c(ompress(ionmethod|edsize)|lose)|open|filesize|read)|read)\\b",
2121 "name": "support.function.php_zip.php"
2122 },
2123 {
2124 "match": "(?i)\\bposix_(s(trerror|et(sid|uid|pgid|e(uid|gid)|gid))|ctermid|t(tyname|imes)|i(satty|nitgroups)|uname|errno|kill|access|get(sid|cwd|uid|_last_error|p(id|pid|w(nam|uid)|g(id|rp))|e(uid|gid)|login|rlimit|g(id|r(nam|oups|gid)))|mk(nod|fifo))\\b",
2125 "name": "support.function.posix.php"
2126 },
2127 {
2128 "match": "(?i)\\bset(threadtitle|proctitle)\\b",
2129 "name": "support.function.proctitle.php"
2130 },
2131 {
2132 "match": "(?i)\\bpspell_(s(tore_replacement|uggest|ave_wordlist)|new(_(config|personal))?|c(heck|onfig_(save_repl|create|ignore|d(ict_dir|ata_dir)|personal|r(untogether|epl)|mode)|lear_session)|add_to_(session|personal))\\b",
2133 "name": "support.function.pspell.php"
2134 },
2135 {
2136 "match": "(?i)\\breadline(_(c(ompletion_function|lear_history|allback_(handler_(install|remove)|read_char))|info|on_new_line|write_history|list_history|add_history|re(display|ad_history)))?\\b",
2137 "name": "support.function.readline.php"
2138 },
2139 {
2140 "match": "(?i)\\brecode(_(string|file))?\\b",
2141 "name": "support.function.recode.php"
2142 },
2143 {
2144 "match": "(?i)\\brrd_(create|tune|info|update|error|version|f(irst|etch)|last(update)?|restore|graph|xport)\\b",
2145 "name": "support.function.rrd.php"
2146 },
2147 {
2148 "match": "(?i)\\b(s(hm_(has_var|detach|put_var|attach|remove(_var)?|get_var)|em_(acquire|re(lease|move)|get))|ftok|msg_(s(tat_queue|e(nd|t_queue))|queue_exists|re(ceive|move_queue)|get_queue))\\b",
2149 "name": "support.function.sem.php"
2150 },
2151 {
2152 "match": "(?i)\\bsession_(s(ta(tus|rt)|et_(save_handler|cookie_params)|ave_path)|name|c(ommit|ache_(expire|limiter))|i(s_registered|d)|de(stroy|code)|un(set|register)|encode|write_close|reg(ister(_shutdown)?|enerate_id)|get_cookie_params|module_name)\\b",
2153 "name": "support.function.session.php"
2154 },
2155 {
2156 "match": "(?i)\\bshmop_(size|close|open|delete|write|read)\\b",
2157 "name": "support.function.shmop.php"
2158 },
2159 {
2160 "match": "(?i)\\bsimplexml_(import_dom|load_(string|file))\\b",
2161 "name": "support.function.simplexml.php"
2162 },
2163 {
2164 "match": "(?i)\\bsnmp(set|2_(set|walk|real_walk|get(next)?)|_(set_(oid_(numeric_print|output_format)|enum_print|valueretrieval|quick_print)|read_mib|get_(valueretrieval|quick_print))|3_(set|walk|real_walk|get(next)?)|walk(oid)?|realwalk|get(next)?)\\b",
2165 "name": "support.function.snmp.php"
2166 },
2167 {
2168 "match": "(?i)\\b(is_soap_fault|use_soap_error_handler)\\b",
2169 "name": "support.function.soap.php"
2170 },
2171 {
2172 "match": "(?i)\\bsocket_(s(hutdown|trerror|e(nd(to)?|t_(nonblock|option|block)|lect))|c(onnect|l(ose|ear_error)|reate(_(pair|listen))?)|import_stream|write|l(isten|ast_error)|accept|re(cv(from)?|ad)|get(sockname|_option|peername)|bind)\\b",
2173 "name": "support.function.sockets.php"
2174 },
2175 {
2176 "match": "(?i)\\bsqlite_(s(ingle_query|eek)|has_(prev|more)|n(um_(fields|rows)|ext)|c(hanges|olumn|urrent|lose|reate_(function|aggregate))|open|u(nbuffered_query|df_(decode_binary|encode_binary))|p(open|rev)|e(scape_string|rror_string|xec)|valid|key|query|f(ield_name|etch_(s(tring|ingle)|column_types|object|a(ll|rray))|actory)|l(ib(encoding|version)|ast_(insert_rowid|error))|array_query|rewind|busy_timeout)\\b",
2177 "name": "support.function.sqlite.php"
2178 },
2179 {
2180 "match": "(?i)\\bsqlsrv_(se(nd_stream_data|rver_info)|has_rows|n(um_(fields|rows)|ext_result)|c(o(n(nect|figure)|mmit)|l(ient_info|ose)|ancel)|prepare|e(rrors|xecute)|query|f(ield_metadata|etch(_(object|array))?|ree_stmt)|ro(ws_affected|llback)|get_(config|field)|begin_transaction)\\b",
2181 "name": "support.function.sqlsrv.php"
2182 },
2183 {
2184 "match": "(?i)\\bstats_(s(ta(ndard_deviation|t_(noncentral_t|correlation|in(nerproduct|dependent_t)|p(owersum|ercentile|aired_t)|gennch|binomial_coef))|kew)|harmonic_mean|c(ovariance|df_(n(oncentral_(chisquare|f)|egative_binomial)|c(hisquare|auchy)|t|uniform|poisson|exponential|f|weibull|l(ogistic|aplace)|gamma|b(inomial|eta)))|den(s_(n(ormal|egative_binomial)|c(hisquare|auchy)|t|pmf_(hypergeometric|poisson|binomial)|exponential|f|weibull|l(ogistic|aplace)|gamma|beta)|_uniform)|variance|kurtosis|absolute_deviation|rand_(setall|phrase_to_seeds|ranf|ge(n_(no(ncen(tral_(t|f)|ral_chisquare)|rmal)|chisquare|t|i(nt|uniform|poisson|binomial(_negative)?)|exponential|f(uniform)?|gamma|beta)|t_seeds)))\\b",
2185 "name": "support.function.stats.php"
2186 },
2187 {
2188 "match": "(?i)\\bs(tream_(s(ocket_(s(hutdown|e(ndto|rver))|client|pair|enable_crypto|accept|recvfrom|get_name)|upports_lock|e(t_(chunk_size|timeout|write_buffer|read_buffer|blocking)|lect))|notification_callback|co(ntext_(set_(option|default|params)|create|get_(options|default|params))|py_to_stream)|is_local|encoding|filter_(prepend|append|re(gister|move))|wrapper_(unregister|re(store|gister))|re(solve_include_path|gister_wrapper)|get_(contents|transports|filters|wrappers|line|meta_data)|bucket_(new|prepend|append|make_writeable))|et_socket_blocking)\\b",
2189 "name": "support.function.streamsfuncs.php"
2190 },
2191 {
2192 "match": "(?i)\\b(s(scanf|ha1(_file)?|tr(s(tr|pn)|n(c(asecmp|mp)|atc(asecmp|mp))|c(spn|hr|oll|asecmp|mp)|t(o(upper|k|lower)|r)|i(str|p(slashes|cslashes|os|_tags))|_(s(huffle|plit)|ireplace|pad|word_count|r(ot13|ep(eat|lace))|getcsv)|p(os|brk)|len|r(chr|ipos|pos|ev))|imilar_text|oundex|ubstr(_(co(unt|mpare)|replace))?|printf|etlocale)|h(tml(specialchars(_decode)?|_entity_decode|entities)|e(x2bin|brev(c)?))|n(umber_format|l(2br|_langinfo))|c(h(op|unk_split|r)|o(nvert_(cyr_string|uu(decode|encode))|unt_chars)|r(ypt|c32))|trim|implode|ord|uc(first|words)|join|p(arse_str|rint(f)?)|e(cho|xplode)|v(sprintf|printf|fprintf)|quote(d_printable_(decode|encode)|meta)|fprintf|wordwrap|l(cfirst|trim|ocaleconv|evenshtein)|add(slashes|cslashes)|rtrim|get_html_translation_table|m(oney_format|d5(_file)?|etaphone)|bin2hex)\\b",
2193 "name": "support.function.string.php"
2194 },
2195 {
2196 "match": "(?i)\\bsybase_(se(t_message_handler|lect_db)|num_(fields|rows)|c(onnect|lose)|d(eadlock_retry_count|ata_seek)|unbuffered_query|pconnect|query|f(ield_seek|etch_(object|field|a(ssoc|rray)|row)|ree_result)|affected_rows|result|get_last_message|min_(server_severity|client_severity|error_severity|message_severity))\\b",
2197 "name": "support.function.sybase.php"
2198 },
2199 {
2200 "match": "(?i)\\b(taint|is_tainted|untaint)\\b",
2201 "name": "support.function.taint.php"
2202 },
2203 {
2204 "match": "(?i)\\b(tidy_(s(et(opt|_encoding)|ave_config)|c(onfig_count|lean_repair)|is_x(html|ml)|diagnose|parse_(string|file)|error_count|warning_count|load_config|access_count|re(set_config|pair_(string|file))|get(opt|_(status|h(tml(_ver)?|ead)|config|o(utput|pt_doc)|r(oot|elease)|body)))|ob_tidyhandler)\\b",
2205 "name": "support.function.tidy.php"
2206 },
2207 {
2208 "match": "(?i)\\btoken_(name|get_all)\\b",
2209 "name": "support.function.tokenizer.php"
2210 },
2211 {
2212 "match": "(?i)\\btrader_(s(t(och(f|rsi)?|ddev)|in(h)?|u(m|b)|et_(compat|unstable_period)|qrt|ar(ext)?|ma)|ht_(sine|trend(line|mode)|dcp(hase|eriod)|phasor)|natr|c(ci|o(s(h)?|rrel)|dl(s(ho(otingstar|rtline)|t(icksandwich|alledpattern)|pinningtop|eparatinglines)|h(i(kkake(mod)?|ghwave)|omingpigeon|a(ngingman|rami(cross)?|mmer))|c(o(ncealbabyswall|unterattack)|losingmarubozu)|t(hrusting|a(sukigap|kuri)|ristar)|i(n(neck|vertedhammer)|dentical3crows)|2crows|onneck|d(oji(star)?|arkcloudcover|ragonflydoji)|u(nique3river|psidegap2crows)|3(starsinsouth|inside|outside|whitesoldiers|linestrike|blackcrows)|piercing|e(ngulfing|vening(star|dojistar))|kicking(bylength)?|l(ongl(ine|eggeddoji)|adderbottom)|a(dvanceblock|bandonedbaby)|ri(sefall3methods|ckshawman)|g(apsidesidewhite|ravestonedoji)|xsidegap3methods|m(orning(star|dojistar)|a(t(hold|chinglow)|rubozu))|b(elthold|reakaway))|eil|mo)|t(sf|ypprice|3|ema|an(h)?|r(i(x|ma)|ange))|obv|d(iv|ema|x)|ultosc|p(po|lus_d(i|m))|e(rrno|xp|ma)|var|kama|floor|w(clprice|illr|ma)|l(n|inearreg(_(slope|intercept|angle))?|og10)|a(sin|cos|t(an|r)|d(osc|d|x(r)?)?|po|vgprice|roon(osc)?)|r(si|oc(p|r(100)?)?)|get_(compat|unstable_period)|m(i(n(index|us_d(i|m)|max(index)?)?|dp(oint|rice))|om|ult|edprice|fi|a(cd(ext|fix)?|vp|x(index)?|ma)?)|b(op|eta|bands))\\b",
2213 "name": "support.function.trader.php"
2214 },
2215 {
2216 "match": "(?i)\\b(http_build_query|url(decode|encode)|parse_url|rawurl(decode|encode)|get_(headers|meta_tags)|base64_(decode|encode))\\b",
2217 "name": "support.function.url.php"
2218 },
2219 {
2220 "match": "(?i)\\b(s(trval|e(ttype|rialize))|i(s(set|_(s(calar|tring)|nu(ll|meric)|callable|int(eger)?|object|double|float|long|array|re(source|al)|bool|arraykey|nonnull|dict|vec|keyset))|ntval|mport_request_variables)|d(oubleval|ebug_zval_dump)|unse(t|rialize)|print_r|empty|var_(dump|export)|floatval|get(type|_(defined_vars|resource_type))|boolval)\\b",
2221 "name": "support.function.var.php"
2222 },
2223 {
2224 "match": "(?i)\\bwddx_(serialize_va(lue|rs)|deserialize|packet_(start|end)|add_vars)\\b",
2225 "name": "support.function.wddx.php"
2226 },
2227 {
2228 "match": "(?i)\\bxhprof_(sample_(disable|enable)|disable|enable)\\b",
2229 "name": "support.function.xhprof.php"
2230 },
2231 {
2232 "match": "(?i)\\b(utf8_(decode|encode)|xml_(set_(start_namespace_decl_handler|notation_decl_handler|character_data_handler|object|default_handler|unparsed_entity_decl_handler|processing_instruction_handler|e(nd_namespace_decl_handler|lement_handler|xternal_entity_ref_handler))|parse(_into_struct|r_(set_option|create(_ns)?|free|get_option))?|error_string|get_(current_(column_number|line_number|byte_index)|error_code)))\\b",
2233 "name": "support.function.xml.php"
2234 },
2235 {
2236 "match": "(?i)\\bxmlrpc_(se(t_type|rver_(c(all_method|reate)|destroy|add_introspection_data|register_(introspection_callback|method)))|is_fault|decode(_request)?|parse_method_descriptions|encode(_request)?|get_type)\\b",
2237 "name": "support.function.xmlrpc.php"
2238 },
2239 {
2240 "match": "(?i)\\bxmlwriter_(s(tart_(c(omment|data)|d(td(_(e(ntity|lement)|attlist))?|ocument)|pi|element(_ns)?|attribute(_ns)?)|et_indent(_string)?)|text|o(utput_memory|pen_(uri|memory))|end_(c(omment|data)|d(td(_(e(ntity|lement)|attlist))?|ocument)|pi|element|attribute)|f(ull_end_element|lush)|write_(c(omment|data)|dtd(_(e(ntity|lement)|attlist))?|pi|element(_ns)?|attribute(_ns)?|raw))\\b",
2241 "name": "support.function.xmlwriter.php"
2242 },
2243 {
2244 "match": "(?i)\\bxslt_(set(opt|_(s(cheme_handler(s)?|ax_handler(s)?)|object|e(ncoding|rror_handler)|log|base))|create|process|err(no|or)|free|getopt|backend_(name|info|version))\\b",
2245 "name": "support.function.xslt.php"
2246 },
2247 {
2248 "match": "(?i)\\b(zlib_(decode|encode|get_coding_type)|readgzfile|gz(seek|c(ompress|lose)|tell|inflate|open|de(code|flate)|uncompress|p(uts|assthru)|e(ncode|of)|file|write|re(wind|ad)|get(s(s)?|c)))\\b",
2249 "name": "support.function.zlib.php"
2250 },
2251 {
2252 "match": "(?i)\\bis_int(eger)?\\b",
2253 "name": "support.function.alias.php"
2254 }
2255 ]
2256 },
2257 "user-function-call": {
2258 "begin": "(?i)(?=[a-z_0-9\\\\]*[a-z_][a-z0-9_]*\\s*\\()",
2259 "end": "(?i)[a-z_][a-z_0-9]*(?=\\s*\\()",
2260 "endCaptures": {
2261 "0": {
2262 "name": "entity.name.function.php"
2263 }
2264 },
2265 "name": "meta.function-call.php",
2266 "patterns": [
2267 {
2268 "include": "#namespace"
2269 }
2270 ]
2271 },
2272 "var_basic": {
2273 "patterns": [
2274 {
2275 "captures": {
2276 "1": {
2277 "name": "punctuation.definition.variable.php"
2278 }
2279 },
2280 "match": "(?x)\n(\\$+)\n[a-zA-Z_\\x{7f}-\\x{ff}]\n[a-zA-Z0-9_\\x{7f}-\\x{ff}]*?\n\\b",
2281 "name": "variable.other.php"
2282 }
2283 ]
2284 },
2285 "var_global": {
2286 "captures": {
2287 "1": {
2288 "name": "punctuation.definition.variable.php"
2289 }
2290 },
2291 "match": "(\\$)((_(COOKIE|FILES|GET|POST|REQUEST))|arg(v|c))\\b",
2292 "name": "variable.other.global.php"
2293 },
2294 "var_global_safer": {
2295 "captures": {
2296 "1": {
2297 "name": "punctuation.definition.variable.php"
2298 }
2299 },
2300 "match": "(\\$)((GLOBALS|_(ENV|SERVER|SESSION)))",
2301 "name": "variable.other.global.safer.php"
2302 },
2303 "variable-name": {
2304 "patterns": [
2305 {
2306 "include": "#var_global"
2307 },
2308 {
2309 "include": "#var_global_safer"
2310 },
2311 {
2312 "captures": {
2313 "1": {
2314 "name": "variable.other.php"
2315 },
2316 "2": {
2317 "name": "punctuation.definition.variable.php"
2318 },
2319 "4": {
2320 "name": "keyword.operator.class.php"
2321 },
2322 "5": {
2323 "name": "variable.other.property.php"
2324 },
2325 "6": {
2326 "name": "punctuation.section.array.begin.php"
2327 },
2328 "7": {
2329 "name": "constant.numeric.index.php"
2330 },
2331 "8": {
2332 "name": "variable.other.index.php"
2333 },
2334 "9": {
2335 "name": "punctuation.definition.variable.php"
2336 },
2337 "10": {
2338 "name": "string.unquoted.index.php"
2339 },
2340 "11": {
2341 "name": "punctuation.section.array.end.php"
2342 }
2343 },
2344 "comment": "Simple syntax: $foo, $foo[0], $foo[$bar], $foo->bar",
2345 "match": "(?x)\n((\\$)(?<name>[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*))\n(?:\n (->)(\\g<name>)\n |\n (\\[)\n (?:(\\d+)|((\\$)\\g<name>)|(\\w+))\n (\\])\n)?"
2346 },
2347 {
2348 "captures": {
2349 "1": {
2350 "name": "variable.other.php"
2351 },
2352 "2": {
2353 "name": "punctuation.definition.variable.php"
2354 },
2355 "4": {
2356 "name": "punctuation.definition.variable.php"
2357 }
2358 },
2359 "comment": "Simple syntax with braces: \"foo${bar}baz\"",
2360 "match": "(?x)\n((\\$\\{)(?<name>[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(\\}))"
2361 }
2362 ]
2363 },
2364 "variables": {
2365 "patterns": [
2366 {
2367 "include": "#var_global"
2368 },
2369 {
2370 "include": "#var_global_safer"
2371 },
2372 {
2373 "include": "#var_basic"
2374 },
2375 {
2376 "begin": "(\\$\\{)(?=.*?\\})",
2377 "beginCaptures": {
2378 "1": {
2379 "name": "punctuation.definition.variable.php"
2380 }
2381 },
2382 "end": "(\\})",
2383 "endCaptures": {
2384 "1": {
2385 "name": "punctuation.definition.variable.php"
2386 }
2387 },
2388 "patterns": [
2389 {
2390 "include": "#language"
2391 }
2392 ]
2393 }
2394 ]
2395 },
2396 "xhp": {
2397 "comment": "Avoid < operator expressions as best we can using Zertosh's regex",
2398 "patterns": [
2399 {
2400 "contentName": "source.xhp",
2401 "begin": "(?<=\\(|\\{|\\[|,|&&|\\|\\||\\?|:|=|=>|\\Wreturn|^return|^)\\s*(?=<[_\\p{L}])",
2402 "end": "(?=.)",
2403 "applyEndPatternLast": 1,
2404 "patterns": [
2405 {
2406 "include": "#xhp-tag-element-name"
2407 }
2408 ]
2409 }
2410 ]
2411 },
2412 "xhp-tag-element-name": {
2413 "patterns": [
2414 {
2415 "comment": "Tags that end > are trapped in #xhp-tag-termination",
2416 "begin": "\\s*(<)([_\\p{L}](?:[:\\p{L}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Nl}\\p{Pc}-])*+)(?=[/>\\s])(?<![\\:])",
2417 "end": "\\s*(?<=</)(\\2)(>)|(/>)|((?<=</)[\\S ]*?)>",
2418 "beginCaptures": {
2419 "1": {
2420 "name": "punctuation.definition.tag.xhp"
2421 },
2422 "2": {
2423 "name": "entity.name.tag.open.xhp"
2424 }
2425 },
2426 "endCaptures": {
2427 "1": {
2428 "name": "entity.name.tag.close.xhp"
2429 },
2430 "2": {
2431 "name": "punctuation.definition.tag.xhp"
2432 },
2433 "3": {
2434 "name": "punctuation.definition.tag.xhp"
2435 },
2436 "4": {
2437 "name": "invalid.illegal.termination.xhp"
2438 }
2439 },
2440 "patterns": [
2441 {
2442 "include": "#xhp-tag-termination"
2443 },
2444 {
2445 "include": "#xhp-html-comments"
2446 },
2447 {
2448 "include": "#xhp-tag-attributes"
2449 }
2450 ]
2451 }
2452 ]
2453 },
2454 "xhp-tag-termination": {
2455 "patterns": [
2456 {
2457 "comment": "uses non consuming search for </ in </tag>",
2458 "begin": "(?<!--)(>)",
2459 "end": "(</)",
2460 "beginCaptures": {
2461 "0": {
2462 "name": "punctuation.definition.tag.xhp"
2463 },
2464 "1": {
2465 "name": "XHPStartTagEnd"
2466 }
2467 },
2468 "endCaptures": {
2469 "0": {
2470 "name": "punctuation.definition.tag.xhp"
2471 },
2472 "1": {
2473 "name": "XHPEndTagStart"
2474 }
2475 },
2476 "patterns": [
2477 {
2478 "include": "#xhp-evaluated-code"
2479 },
2480 {
2481 "include": "#xhp-entities"
2482 },
2483 {
2484 "include": "#xhp-html-comments"
2485 },
2486 {
2487 "include": "#xhp-tag-element-name"
2488 }
2489 ]
2490 }
2491 ]
2492 },
2493 "xhp-tag-attributes": {
2494 "patterns": [
2495 {
2496 "include": "#xhp-attribute-name"
2497 },
2498 {
2499 "include": "#xhp-assignment"
2500 },
2501 {
2502 "include": "#xhp-string-double-quoted"
2503 },
2504 {
2505 "include": "#xhp-string-single-quoted"
2506 },
2507 {
2508 "include": "#xhp-evaluated-code"
2509 },
2510 {
2511 "include": "#xhp-tag-element-name"
2512 },
2513 {
2514 "include": "#comments"
2515 }
2516 ]
2517 },
2518 "xhp-attribute-name": {
2519 "patterns": [
2520 {
2521 "comment": "look for attribute name",
2522 "match": "(?<!\\S)([_\\p{L}](?:[\\p{L}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Nl}\\p{Pc}-](?<!\\.\\.))*+)(?<!\\.)(?=//|/\\*|=|\\s|>|/>)",
2523 "captures": {
2524 "0": {
2525 "name": "entity.other.attribute-name.xhp"
2526 }
2527 }
2528 }
2529 ]
2530 },
2531 "xhp-assignment": {
2532 "patterns": [
2533 {
2534 "comment": "look for attribute assignment",
2535 "name": "keyword.operator.assignment.xhp",
2536 "match": "=(?=\\s*(?:'|\"|{|/\\*|<|//|\\n))"
2537 }
2538 ]
2539 },
2540 "xhp-string-double-quoted": {
2541 "name": "string.quoted.double.php",
2542 "begin": "\"",
2543 "end": "\"(?<!\\\\\")",
2544 "beginCaptures": {
2545 "0": {
2546 "name": "punctuation.definition.string.begin.xhp"
2547 }
2548 },
2549 "endCaptures": {
2550 "0": {
2551 "name": "punctuation.definition.string.end.xhp"
2552 }
2553 },
2554 "patterns": [
2555 {
2556 "include": "#xhp-entities"
2557 }
2558 ]
2559 },
2560 "xhp-string-single-quoted": {
2561 "name": "string.quoted.single.php",
2562 "begin": "'",
2563 "end": "'(?<!\\\\')",
2564 "beginCaptures": {
2565 "0": {
2566 "name": "punctuation.definition.string.begin.xhp"
2567 }
2568 },
2569 "endCaptures": {
2570 "0": {
2571 "name": "punctuation.definition.string.end.xhp"
2572 }
2573 },
2574 "patterns": [
2575 {
2576 "include": "#xhp-entities"
2577 }
2578 ]
2579 },
2580 "xhp-evaluated-code": {
2581 "name": "meta.embedded.expression.php",
2582 "begin": "{",
2583 "end": "}",
2584 "beginCaptures": {
2585 "0": {
2586 "name": "punctuation.section.embedded.begin.xhp"
2587 }
2588 },
2589 "endCaptures": {
2590 "0": {
2591 "name": "punctuation.section.embedded.end.xhp"
2592 }
2593 },
2594 "contentName": "source.php.xhp",
2595 "patterns": [
2596 {
2597 "include": "#language"
2598 }
2599 ]
2600 },
2601 "xhp-entities": {
2602 "patterns": [
2603 {
2604 "comment": "Embeded HTML entities &blah",
2605 "match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",
2606 "captures": {
2607 "0": {
2608 "name": "constant.character.entity.xhp"
2609 },
2610 "1": {
2611 "name": "punctuation.definition.entity.xhp"
2612 },
2613 "2": {
2614 "name": "entity.name.tag.html.xhp"
2615 },
2616 "3": {
2617 "name": "punctuation.definition.entity.xhp"
2618 }
2619 }
2620 },
2621 {
2622 "comment": "Entity with & and invalid name",
2623 "match": "&\\S*;",
2624 "name": "invalid.illegal.bad-ampersand.xhp"
2625 }
2626 ]
2627 },
2628 "xhp-html-comments": {
2629 "begin": "<!--",
2630 "captures": {
2631 "0": {
2632 "name": "punctuation.definition.comment.html"
2633 }
2634 },
2635 "end": "--\\s*>",
2636 "name": "comment.block.html",
2637 "patterns": [
2638 {
2639 "match": "--(?!-*\\s*>)",
2640 "name": "invalid.illegal.bad-comments-or-CDATA.html"
2641 }
2642 ]
2643 }
2644 }
2645 }
2646