Skip to content

Instantly share code, notes, and snippets.

@zessx
Created June 29, 2015 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zessx/6fb7f5c6a880f61554ca to your computer and use it in GitHub Desktop.
Save zessx/6fb7f5c6a880f61554ca to your computer and use it in GitHub Desktop.
Updated PHP language definition for Sublime Text 3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>comment</key>
<string>TODO:
• Try to improve parameters list syntax – scope numbers, ‘=’, ‘,’ and possibly be intelligent about entity ordering
• Is meta.function-call the correct scope? I've added it to my theme but by default it's not highlighted</string>
<key>fileTypes</key>
<array>
<!-- .php files are actually opened with HTML.tmLanguage, this is just a bit of trickery to make it look like PHP.tmLanguage is used to open them -->
<string>php</string>
</array>
<key>firstLineMatch</key>
<string>^#!.*(?&lt;!-)php[0-9]{0,1}\b</string>
<key>foldingStartMarker</key>
<string>(/\*|\{\s*$|&lt;&lt;&lt;HTML)</string>
<key>foldingStopMarker</key>
<string>(\*/|^\s*\}|^HTML;)</string>
<key>name</key>
<string>PHP</string>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.whitespace.embedded.leading.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>source.php.embedded.line.empty.html</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.begin.php</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>meta.consecutive-tags.php</string>
</dict>
<key>5</key>
<dict>
<key>name</key>
<string>source.php</string>
</dict>
<key>6</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.end.php</string>
</dict>
<key>7</key>
<dict>
<key>name</key>
<string>source.php</string>
</dict>
<key>8</key>
<dict>
<key>name</key>
<string>punctuation.whitespace.embedded.trailing.php</string>
</dict>
</dict>
<key>comment</key>
<string>Matches empty tags.</string>
<key>match</key>
<string>(?x)
(^\s*)? # 1 - Leading whitespace
( # 2 - meta.embedded.line.empty.php
( # 3 - Open Tag
(?:
((?&lt;=\?&gt;)&lt;) # 4 - Consecutive tags
| &lt;
)
\?(?i:php|=)?
)
(\s*) # 5 - Loneliness
((\?)&gt;) # 6 - Close Tag
# 7 - Scope ? as scope.php
)
(
\1 # Match nothing if there was no
# leading whitespace...
| (\s*$\n)? # or match trailing whitespace.
)
</string>
</dict>
<dict>
<key>begin</key>
<string>^\s*(?=&lt;\?)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.whitespace.embedded.leading.php</string>
</dict>
</dict>
<key>comment</key>
<string>Catches tags with preceeding whitespace.</string>
<key>end</key>
<string>(?&lt;=\?&gt;)(\s*$\n)?</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.whitespace.embedded.trailing.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>&lt;\?(?i:php|=)?</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.begin.php</string>
</dict>
</dict>
<key>end</key>
<string>(\?)&gt;</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.end.php</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>source.php</string>
</dict>
</dict>
<key>name</key>
<string>source.php.embedded.block.html</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#language</string>
</dict>
</array>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(((?&lt;=\?&gt;)&lt;)|&lt;)\?(?i:php|=)?</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.begin.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>meta.consecutive-tags.php</string>
</dict>
</dict>
<key>comment</key>
<string>Catches the remainder.</string>
<key>end</key>
<string>(\?)&gt;</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.end.php</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>source.php</string>
</dict>
</dict>
<key>name</key>
<string>source.php.embedded.line.html</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#language</string>
</dict>
</array>
</dict>
</array>
<key>repository</key>
<dict>
<key>class-builtin</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.separator.inheritance.php</string>
</dict>
</dict>
<key>match</key>
<string>(?i)(\\)?\b(st(dClass|reamWrapper)|R(RD(Graph|Creator|Updater)|untimeException|e(sourceBundle|cursive(RegexIterator|CachingIterator|TreeIterator|Iterator(Iterator)?|DirectoryIterator|FilterIterator|ArrayIterator)|flect(ion(Method|Class|Object|P(arameter|roperty)|Extension|Function(Abstract)?)?|or)|gexIterator)|angeException)|G(lobIterator|magick(Draw|Pixel)?)|X(ML(Reader|Writer)|SLTProcessor)|M(ongo(Regex|Grid(fsFile|FS(Cursor|File)?)|BinData|C(o(de|llection)|ursor)|Timestamp|I(nt(32|64)|d)|D(B(Ref)?|ate))?|ultipleIterator|e(ssageFormatter|mcache(d)?))|Bad(MethodCallException|FunctionCallException)|tidy(Node)?|S(impleXML(Iterator|Element)|oap(Server|Header|Client|Param|Var|Fault)|NMP|CA(_(SoapProxy|LocalProxy))?|p(hinxClient|l(M(inHeap|axHeap)|Bool|S(t(ack|ring)|ubject)|Heap|TempFileObject|Int|Ob(server|jectStorage)|DoublyLinkedList|PriorityQueue|Enum|Queue|F(i(le(Info|Object)|xedArray)|loat)))|e(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))|N(o(RewindIterator|rmalizer)|umberFormatter)|C(o(untable|llator)|achingIterator)|T(okyoTyrant(Table|Query)?|ra(nsliterator|versable))|I(n(tlDateFormatter|validArgumentException|finiteIterator)|terator(Iterator|Aggregate)?|magick(Draw|Pixel(Iterator)?)?)|ZipArchive|O(CI-(Collection|Lob)|ut(erIterator|Of(RangeException|BoundsException))|verflowException)|D(irectoryIterator|om(XsltStylesheet|Node|Document(Type)?|ProcessingInstruction|Element|ainException|Attribute)|OM(XPath|N(ode(list)?|amedNodeMap)|C(haracterData|omment)|Text|Implementation|Document(Fragment)?|ProcessingInstruction|E(ntityReference|lement)|Attr)|ate(Time(Zone)?|Interval|Period))|Un(derflowException|expectedValueException)|finfo|P(har(Data|FileInfo)?|DO(Statement)?|arentIterator)|E(rrorException|xception|mptyIterator)|V8Js(Exception)?|KTaglib_(MPEG_(File|AudioProperties)|Tag|ID3v2_(Tag|Frame|AttachedPictureFrame))|Fil(terIterator|esystemIterator)|mysqli(_(stmt|driver|warning|result))?|L(imitIterator|o(cale|gicException)|engthException)|A(MQP(Connection|Exchange|Queue)|ppendIterator|PCIterator|rray(Iterator|Object|Access)))\b</string>
<key>name</key>
<string>support.class.builtin.php</string>
</dict>
</array>
</dict>
<key>class-name</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>(?i)(?=\\?[a-z_0-9]+\\)</string>
<key>end</key>
<string>(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\])</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>support.class.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#namespace</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#class-builtin</string>
</dict>
<dict>
<key>begin</key>
<string>(?=[\\a-zA-Z_])</string>
<key>end</key>
<string>(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\])</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>support.class.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#namespace</string>
</dict>
</array>
</dict>
</array>
</dict>
<key>comments</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>/\*\*(?:#@\+)?\s*$</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.php</string>
</dict>
</dict>
<key>comment</key>
<string>This now only highlights a docblock if the first line contains only /**
- this is to stop highlighting everything as invalid when people do comment banners with /******** ...
- Now matches /**#@+ too - used for docblock templates: http://manual.phpdoc.org/HTMLframesConverter/default/phpDocumentor/tutorial_phpDocumentor.howto.pkg.html#basics.docblocktemplate</string>
<key>end</key>
<string>\*/</string>
<key>name</key>
<string>comment.block.documentation.phpdoc.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#php_doc</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>/\*</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.php</string>
</dict>
</dict>
<key>end</key>
<string>\*/</string>
<key>name</key>
<string>comment.block.php</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.php</string>
</dict>
</dict>
<key>match</key>
<string>(//).*?($\n?|(?=\?&gt;))</string>
<key>name</key>
<string>comment.line.double-slash.php</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.php</string>
</dict>
</dict>
<key>match</key>
<string>(#).*?($\n?|(?=\?&gt;))</string>
<key>name</key>
<string>comment.line.number-sign.php</string>
</dict>
</array>
</dict>
<key>constants</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>(?xi)(?=
(
(\\[a-z_][a-z_0-9]*\\[a-z_][a-z_0-9\\]*)|
([a-z_][a-z_0-9]*\\[a-z_][a-z_0-9\\]*)
)
[^a-z_0-9\\])</string>
<key>end</key>
<string>(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\])</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>constant.other.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#namespace</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(?=\\?[a-zA-Z_\x{7f}-\x{ff}])</string>
<key>end</key>
<string>(?=[^\\a-zA-Z_\x{7f}-\x{ff}])</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>(?i)\b(TRUE|FALSE|NULL|__(FILE|DIR|FUNCTION|CLASS|METHOD|LINE|NAMESPACE)__|ON|OFF|YES|NO|NL|BR|TAB)\b</string>
<key>name</key>
<string>constant.language.php</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.separator.inheritance.php</string>
</dict>
</dict>
<key>match</key>
<string>(\\)?\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</string>
<key>name</key>
<string>support.constant.core.php</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.separator.inheritance.php</string>
</dict>
</dict>
<key>match</key>
<string>(\\)?\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</string>
<key>name</key>
<string>support.constant.std.php</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.separator.inheritance.php</string>
</dict>
</dict>
<key>match</key>
<string>(\\)?\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</string>
<key>name</key>
<string>support.constant.ext.php</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.separator.inheritance.php</string>
</dict>
</dict>
<key>match</key>
<string>(\\)?\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</string>
<key>name</key>
<string>support.constant.parser-token.php</string>
</dict>
<dict>
<key>comment</key>
<string>In PHP, any identifier which is not a variable is taken to be a constant.
However, if there is no constant defined with the given name then a notice
is generated and the constant is assumed to have the value of its name.</string>
<key>match</key>
<string>[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*</string>
<key>name</key>
<string>constant.other.php</string>
</dict>
</array>
</dict>
</array>
</dict>
<key>function-arguments</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comments</string>
</dict>
<dict>
<key>begin</key>
<string>(?x)
\s*(array) # Typehint
\s*(&amp;)? # Reference
\s*((\$+)[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*) # The variable name
\s*(=) # A default value
\s*(array)\s*(\()
</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.type.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.modifier.reference.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>variable.other.php</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
<key>5</key>
<dict>
<key>name</key>
<string>keyword.operator.assignment.php</string>
</dict>
<key>6</key>
<dict>
<key>name</key>
<string>support.function.construct.php</string>
</dict>
<key>7</key>
<dict>
<key>name</key>
<string>punctuation.definition.array.begin.php</string>
</dict>
</dict>
<key>contentName</key>
<string>meta.array.php</string>
<key>end</key>
<string>\)</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.array.end.php</string>
</dict>
</dict>
<key>name</key>
<string>meta.function.argument.array.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comments</string>
</dict>
<dict>
<key>include</key>
<string>#strings</string>
</dict>
<dict>
<key>include</key>
<string>#numbers</string>
</dict>
</array>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.type.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.modifier.reference.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>variable.other.php</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
<key>5</key>
<dict>
<key>name</key>
<string>keyword.operator.assignment.php</string>
</dict>
<key>6</key>
<dict>
<key>name</key>
<string>constant.language.php</string>
</dict>
<key>7</key>
<dict>
<key>name</key>
<string>invalid.illegal.non-null-typehinted.php</string>
</dict>
</dict>
<key>match</key>
<string>(?xi)
\s*(array) # Typehint
\s*(&amp;)? # Reference
\s*((\$+)[a-z_\x{7f}-\x{ff}][a-z0-9_\x{7f}-\x{ff}]*) # The variable name
(?:
\s*(?:(=)\s*(?:(null)|((?:\S*?\(\))|(?:\S*?)))) # A default value
)?
\s*(?=,|\)|/[/*]|\#|$) # A closing parentheses (end of argument list) or a comma or a comment
</string>
<key>name</key>
<string>meta.function.argument.array.php</string>
</dict>
<dict>
<key>begin</key>
<string>(?i)(?=[a-z_0-9\\]*[a-z_][a-z_0-9]*\s*&amp;?\s*\$)</string>
<key>end</key>
<string>(?=,|\)|/[/*]|\#|$)</string>
<key>name</key>
<string>meta.function.argument.typehinted.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#class-name</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>support.class.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.modifier.reference.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>variable.other.php</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
<key>5</key>
<dict>
<key>name</key>
<string>keyword.operator.assignment.php</string>
</dict>
<key>6</key>
<dict>
<key>name</key>
<string>constant.language.php</string>
</dict>
<key>7</key>
<dict>
<key>name</key>
<string>invalid.illegal.non-null-typehinted.php</string>
</dict>
</dict>
<key>match</key>
<string>(?xi)
\s*([a-z_][a-z_0-9]*)? # Typehinted class name
\s*(&amp;)? # Reference
\s*((\$+)[a-z_\x{7f}-\x{ff}][a-z0-9_\x{7f}-\x{ff}]*) # The variable name
(?:
\s*(?:(=)\s*(?:(null)|((?:\S*?\(\))|(?:\S*?)))) # A default value
)?
\s*(?=,|\)|/[/*]|\#|$) # A closing parentheses (end of argument list) or a comma
</string>
</dict>
</array>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.modifier.reference.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>variable.other.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>match</key>
<string>(\s*&amp;)?\s*((\$+)[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)\s*(?=,|\)|/[/*]|\#)</string>
<key>name</key>
<string>meta.function.argument.no-default.php</string>
</dict>
<dict>
<key>begin</key>
<string>(\s*&amp;)?\s*((\$+)[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)(?:\s*(=)\s*)\s*</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.modifier.reference.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>variable.other.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>keyword.operator.assignment.php</string>
</dict>
</dict>
<key>end</key>
<string>(?=,|\)|/[/*]|\#)</string>
<key>name</key>
<string>meta.function.argument.default.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#parameter-default-types</string>
</dict>
</array>
</dict>
</array>
</dict>
<key>function-call</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>(?i)(?=\\?[a-z_0-9\\]+\\[a-z_][a-z0-9_]*\s*\()</string>
<key>comment</key>
<string>Functions in a user-defined namespace (overrides any built-ins)</string>
<key>end</key>
<string>(?=\s*\()</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#user-function-call</string>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(print|echo)\b</string>
<key>name</key>
<string>support.function.construct.php</string>
</dict>
<dict>
<key>begin</key>
<string>(?i)(\\)?(?=\b[a-z_][a-z_0-9]*\s*\()</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.separator.inheritance.php</string>
</dict>
</dict>
<key>comment</key>
<string>Root namespace function calls (built-in or user)</string>
<key>end</key>
<string>(?=\s*\()</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>(?i)\b(isset|unset|e(val|mpty)|list)(?=\s*\()</string>
<key>name</key>
<string>support.function.construct.php</string>
</dict>
<dict>
<key>include</key>
<string>#support</string>
</dict>
<dict>
<key>include</key>
<string>#user-function-call</string>
</dict>
</array>
</dict>
</array>
</dict>
<key>heredoc</key>
<dict>
<key>begin</key>
<string>(?=&lt;&lt;&lt;\s*('?)([a-zA-Z_]+[a-zA-Z0-9_]*)(\1)\s*$)</string>
<key>end</key>
<string>^((HTML|XML|SQL|JAVASCRIPT|JSON|CSS)|\2)\b</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.heredoc.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.end.php</string>
</dict>
</dict>
<key>name</key>
<string>string.unquoted.heredoc.php</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>(&lt;&lt;&lt;)\s*(HTML)\s*$\n?</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.begin.php</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.operator.heredoc.php</string>
</dict>
</dict>
<key>contentName</key>
<string>text.html</string>
<key>end</key>
<string>(?=^\2\b)</string>
<key>name</key>
<string>meta.embedded.html</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>text.html.basic</string>
</dict>
<dict>
<key>include</key>
<string>#interpolation</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(&lt;&lt;&lt;)\s*(XML)\s*$\n?</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.begin.php</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.operator.heredoc.php</string>
</dict>
</dict>
<key>contentName</key>
<string>text.xml</string>
<key>end</key>
<string>(?=^\2\b)</string>
<key>name</key>
<string>meta.embedded.xml</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>text.xml</string>
</dict>
<dict>
<key>include</key>
<string>#interpolation</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(&lt;&lt;&lt;)\s*(SQL)\s*$\n?</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.begin.php</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.operator.heredoc.php</string>
</dict>
</dict>
<key>contentName</key>
<string>source.sql</string>
<key>end</key>
<string>(?=^\2\b)</string>
<key>name</key>
<string>meta.embedded.sql</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>source.sql</string>
</dict>
<dict>
<key>include</key>
<string>#interpolation</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(&lt;&lt;&lt;)\s*(JAVASCRIPT)\s*$\n?</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.begin.php</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.operator.heredoc.php</string>
</dict>
</dict>
<key>contentName</key>
<string>source.js</string>
<key>end</key>
<string>(?=^\2\b)</string>
<key>name</key>
<string>meta.embedded.js</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>source.js</string>
</dict>
<dict>
<key>include</key>
<string>#interpolation</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(&lt;&lt;&lt;)\s*(JSON)\s*$\n?</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.begin.php</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.operator.heredoc.php</string>
</dict>
</dict>
<key>contentName</key>
<string>source.json</string>
<key>end</key>
<string>(?=^\2\b)</string>
<key>name</key>
<string>meta.embedded.json</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>source.json</string>
</dict>
<dict>
<key>include</key>
<string>#interpolation</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(&lt;&lt;&lt;)\s*(CSS)\s*$\n?</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.begin.php</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.operator.heredoc.php</string>
</dict>
</dict>
<key>contentName</key>
<string>source.css</string>
<key>end</key>
<string>(?=^\2\b)</string>
<key>name</key>
<string>meta.embedded.css</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>source.css</string>
</dict>
<dict>
<key>include</key>
<string>#interpolation</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(&lt;&lt;&lt;)\s*([a-zA-Z_]+[a-zA-Z0-9_]*)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.operator.heredoc.php</string>
</dict>
</dict>
<key>end</key>
<string>(?=^\2\b)</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#interpolation</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(&lt;&lt;&lt;)\s*'([a-zA-Z_]+[a-zA-Z0-9_]*)'</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.operator.heredoc.php</string>
</dict>
</dict>
<key>end</key>
<string>(?=^\2\b)</string>
<key>name</key>
<string>string.unquoted.nowdoc.php</string>
</dict>
</array>
</dict>
<key>instantiation</key>
<dict>
<key>begin</key>
<string>(?i)(new)\s+</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.new.php</string>
</dict>
</dict>
<key>end</key>
<string>(?i)(?=[^$a-z0-9_\\])</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>(parent|static|self)(?=[^a-z0-9_])</string>
<key>name</key>
<string>storage.type.php</string>
</dict>
<dict>
<key>include</key>
<string>#class-name</string>
</dict>
<dict>
<key>include</key>
<string>#variable-name</string>
</dict>
</array>
</dict>
<key>interpolation</key>
<dict>
<key>comment</key>
<string>http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\[0-7]{1,3}</string>
<key>name</key>
<string>constant.numeric.octal.php</string>
</dict>
<dict>
<key>match</key>
<string>\\x[0-9A-Fa-f]{1,2}</string>
<key>name</key>
<string>constant.numeric.hex.php</string>
</dict>
<dict>
<key>match</key>
<string>\\[nrt\\\$\"]</string>
<key>name</key>
<string>constant.character.escape.php</string>
</dict>
<dict>
<key>begin</key>
<string>(\{)(?=\$.*?\})</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>end</key>
<string>(\})</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#language</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#variable-name</string>
</dict>
</array>
</dict>
<key>invoke-call</key>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>variable.other.php</string>
</dict>
</dict>
<key>match</key>
<string>(?i)(\$+)([a-z_][a-z_0-9]*)(?=\s*\()</string>
<key>name</key>
<string>meta.function-call.invoke.php</string>
</dict>
<key>language</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comments</string>
</dict>
<dict>
<key>begin</key>
<string>(?i)^\s*(interface|trait)\s+([a-z0-9_]+)\s*(extends)?\s*</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.type.interface.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>entity.name.type.interface.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>storage.modifier.extends.php</string>
</dict>
</dict>
<key>end</key>
<string>([a-zA-Z0-9_]+)?\s*(?:(?=\{)|$)</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.other.inherited-class.php</string>
</dict>
</dict>
<key>name</key>
<string>meta.interface.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#namespace</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(?i)^\s*(namespace)\b\s+(?=([a-z0-9_\\]+\s*($|[;{]|(\/[\/*])))|$)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.namespace.php</string>
</dict>
</dict>
<key>contentName</key>
<string>entity.name.type.namespace.php</string>
<key>end</key>
<string>(?i)(?=\s*$|[^a-z0-9_\\])</string>
<key>name</key>
<string>meta.namespace.php</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\</string>
<key>name</key>
<string>punctuation.separator.inheritance.php</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(?i)\s*\b(use)\s+</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.use.php</string>
</dict>
</dict>
<key>end</key>
<string>(?=;|(?:^\s*$))</string>
<key>name</key>
<string>meta.use.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comments</string>
</dict>
<dict>
<key>begin</key>
<string>(?i)\s*(?=[a-z_0-9\\])</string>
<key>end</key>
<string>(?xi)(?:
(?:\s*(as)\b\s*([a-z_0-9]*)\s*(?=,|;|$))
|(?=,|;|$)
)</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.use-as.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>support.other.namespace.use-as.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#class-builtin</string>
</dict>
<dict>
<key>begin</key>
<string>(?i)\s*(?=[\\a-z_0-9])</string>
<key>end</key>
<string>$|(?=[\s,;])</string>
<key>name</key>
<string>support.other.namespace.use.php</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\</string>
<key>name</key>
<string>punctuation.separator.inheritance.php</string>
</dict>
</array>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>\s*,\s*</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(?i)^\s*(abstract|final)?\s*(class)\s+([a-z0-9_]+)\s*</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.modifier.abstract.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.type.class.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>entity.name.type.class.php</string>
</dict>
</dict>
<key>end</key>
<string>(?=[;{])</string>
<key>name</key>
<string>meta.class.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comments</string>
</dict>
<dict>
<key>begin</key>
<string>(?i)(extends)\s+</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.modifier.extends.php</string>
</dict>
</dict>
<key>contentName</key>
<string>meta.other.inherited-class.php</string>
<key>end</key>
<string>(?i)(?=[^a-z_0-9\\])</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>(?i)(?=\\?[a-z_0-9]+\\)</string>
<key>end</key>
<string>(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\])</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.other.inherited-class.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#namespace</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#class-builtin</string>
</dict>
<dict>
<key>include</key>
<string>#namespace</string>
</dict>
<dict>
<key>match</key>
<string>(?i)[a-z_][a-z_0-9]*</string>
<key>name</key>
<string>entity.other.inherited-class.php</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(?i)(implements)\s+</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.modifier.implements.php</string>
</dict>
</dict>
<key>end</key>
<string>(?i)(?=[;{])</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comments</string>
</dict>
<dict>
<key>begin</key>
<string>(?i)(?=[a-z0-9_\\]+)</string>
<key>contentName</key>
<string>meta.other.inherited-class.php</string>
<key>end</key>
<string>(?i)(?:\s*(?:,|(?=[^a-z0-9_\\\s]))\s*)</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>(?i)(?=\\?[a-z_0-9]+\\)</string>
<key>end</key>
<string>(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\])</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.other.inherited-class.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#namespace</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#class-builtin</string>
</dict>
<dict>
<key>include</key>
<string>#namespace</string>
</dict>
<dict>
<key>match</key>
<string>(?i)[a-z_][a-z_0-9]*</string>
<key>name</key>
<string>entity.other.inherited-class.php</string>
</dict>
</array>
</dict>
</array>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>\s*\b(break|c(ase|ontinue)|d(e(clare|fault)|ie|o)|e(lse(if)?|nd(declare|for(each)?|if|switch|while)|xit)|for(each)?|if|return|switch|use|while)\b</string>
<key>name</key>
<string>keyword.control.php</string>
</dict>
<dict>
<key>begin</key>
<string>(?i)\b((?:require|include)(?:_once)?)\b\s*</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.import.include.php</string>
</dict>
</dict>
<key>end</key>
<string>(?=\s|;|$)</string>
<key>name</key>
<string>meta.include.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#language</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>\b(catch)\b\s*\(\s*</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.exception.catch.php</string>
</dict>
</dict>
<key>end</key>
<string>([A-Za-z_][A-Za-z_0-9]*)\s*((\$+)[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)\s*\)</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>support.class.exception.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>variable.other.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>name</key>
<string>meta.catch.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#namespace</string>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>\b(catch|try|throw|exception)\b</string>
<key>name</key>
<string>keyword.control.exception.php</string>
</dict>
<dict>
<key>begin</key>
<string>(?i)\b(function)\s*(&amp;\s*)?(?=\()</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.type.function.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.modifier.reference.php</string>
</dict>
</dict>
<key>end</key>
<string>\{</string>
<key>name</key>
<string>meta.function.closure.php</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>(\()</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.parameters.begin.php</string>
</dict>
</dict>
<key>contentName</key>
<string>meta.function.arguments.php</string>
<key>end</key>
<string>(\))</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.parameters.end.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#function-arguments</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(?i)(use)\s*(\()</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.function.use.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.definition.parameters.begin.php</string>
</dict>
</dict>
<key>end</key>
<string>(\))</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.parameters.end.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.modifier.reference.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>variable.other.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>match</key>
<string>(\s*&amp;)?\s*((\$+)[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)\s*(?=,|\))</string>
<key>name</key>
<string>meta.function.closure.use.php</string>
</dict>
</array>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(?x)\s*
((?:(?:final|abstract|public|private|protected|static)\s+)*)
(function)
(?:\s+|(\s*&amp;\s*))
(?:
(__(?:call|construct|destruct|get|set|isset|unset|tostring|clone|set_state|sleep|wakeup|autoload|invoke|callStatic))
|([a-zA-Z0-9_]+)
)
\s*
(\()</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.modifier.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.type.function.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>storage.modifier.reference.php</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>support.function.magic.php</string>
</dict>
<key>5</key>
<dict>
<key>name</key>
<string>entity.name.function.php</string>
</dict>
<key>6</key>
<dict>
<key>name</key>
<string>punctuation.definition.parameters.begin.php</string>
</dict>
</dict>
<key>contentName</key>
<string>meta.function.arguments.php</string>
<key>end</key>
<string>(\))</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.parameters.end.php</string>
</dict>
</dict>
<key>name</key>
<string>meta.function.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#function-arguments</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#invoke-call</string>
</dict>
<dict>
<key>begin</key>
<string>(?xi)\s*(?=
[a-z_0-9$\\]+(::)
(?:
([a-z_][a-z_0-9]*)\s*\(
|
((\$+)[a-z_\x{7f}-\x{ff}][a-z0-9_\x{7f}-\x{ff}]*)
|
([a-z_\x{7f}-\x{ff}][a-z0-9_\x{7f}-\x{ff}]*)
)?
)</string>
<key>end</key>
<string>(?x)(::)
(?:
([A-Za-z_][A-Za-z_0-9]*)\s*\(
|
((\$+)[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)
|
([a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)
)?</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.class.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>meta.function-call.static.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>variable.other.class.php</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
<key>5</key>
<dict>
<key>name</key>
<string>constant.other.class.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>(self|static|parent)\b</string>
<key>name</key>
<string>storage.type.php</string>
</dict>
<dict>
<key>include</key>
<string>#class-name</string>
</dict>
<dict>
<key>include</key>
<string>#variable-name</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#variables</string>
</dict>
<dict>
<key>include</key>
<string>#strings</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>support.function.construct.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.definition.array.begin.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>punctuation.definition.array.end.php</string>
</dict>
</dict>
<key>match</key>
<string>(array)(\()(\))</string>
<key>name</key>
<string>meta.array.empty.php</string>
</dict>
<dict>
<key>begin</key>
<string>(array)(\()</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>support.function.construct.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.definition.array.begin.php</string>
</dict>
</dict>
<key>end</key>
<string>\)</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.array.end.php</string>
</dict>
</dict>
<key>name</key>
<string>meta.array.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#language</string>
</dict>
</array>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.type.php</string>
</dict>
</dict>
<key>match</key>
<string>(?i)\s*\(\s*(array|real|double|float|int(eger)?|bool(ean)?|string|object|binary|unset)\s*\)</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(array|real|double|float|int(eger)?|bool(ean)?|string|class|clone|var|function|interface|trait|parent|self|object)\b</string>
<key>name</key>
<string>storage.type.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(global|abstract|const|extends|implements|final|p(r(ivate|otected)|ublic)|static)\b</string>
<key>name</key>
<string>storage.modifier.php</string>
</dict>
<dict>
<key>include</key>
<string>#object</string>
</dict>
<dict>
<key>match</key>
<string>;</string>
<key>name</key>
<string>punctuation.terminator.expression.php</string>
</dict>
<dict>
<key>include</key>
<string>#heredoc</string>
</dict>
<dict>
<key>match</key>
<string>\.=?</string>
<key>name</key>
<string>keyword.operator.string.php</string>
</dict>
<dict>
<key>match</key>
<string>=&gt;</string>
<key>name</key>
<string>keyword.operator.key.php</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.assignment.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.modifier.reference.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>storage.modifier.reference.php</string>
</dict>
</dict>
<key>match</key>
<string>(?:(\=)(&amp;))|(&amp;(?=[$A-Za-z_]))</string>
</dict>
<dict>
<key>match</key>
<string>(@)</string>
<key>name</key>
<string>keyword.operator.error-control.php</string>
</dict>
<dict>
<key>match</key>
<string>(\-\-|\+\+)</string>
<key>name</key>
<string>keyword.operator.increment-decrement.php</string>
</dict>
<dict>
<key>match</key>
<string>(\-|\+|\*|/|%)</string>
<key>name</key>
<string>keyword.operator.arithmetic.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)(!|&amp;&amp;|\|\|)|\b(and|or|xor|as)\b</string>
<key>name</key>
<string>keyword.operator.logical.php</string>
</dict>
<dict>
<key>include</key>
<string>#function-call</string>
</dict>
<dict>
<key>match</key>
<string>&lt;&lt;|&gt;&gt;|~|\^|&amp;|\|</string>
<key>name</key>
<string>keyword.operator.bitwise.php</string>
</dict>
<dict>
<key>match</key>
<string>(===|==|!==|!=|&lt;=|&gt;=|&lt;&gt;|&lt;|&gt;)</string>
<key>name</key>
<string>keyword.operator.comparison.php</string>
</dict>
<dict>
<key>match</key>
<string>=</string>
<key>name</key>
<string>keyword.operator.assignment.php</string>
</dict>
<dict>
<key>begin</key>
<string>(?i)\b(instanceof)\b\s+(?=[\\$a-z_])</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.type.php</string>
</dict>
</dict>
<key>end</key>
<string>(?=[^\\$A-Za-z_0-9])</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#class-name</string>
</dict>
<dict>
<key>include</key>
<string>#variable-name</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#numbers</string>
</dict>
<dict>
<key>include</key>
<string>#instantiation</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.goto.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>support.other.php</string>
</dict>
</dict>
<key>match</key>
<string>(?i)(goto)\s+([a-z_][a-z_0-9]*)</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.name.goto-label.php</string>
</dict>
</dict>
<key>match</key>
<string>(?i)^\s*([a-z_][a-z_0-9]*)\s*:</string>
</dict>
<dict>
<key>include</key>
<string>#string-backtick</string>
</dict>
<dict>
<key>begin</key>
<string>\[</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.array.begin.php</string>
</dict>
</dict>
<key>end</key>
<string>\]</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.section.array.end.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#language</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#constants</string>
</dict>
</array>
</dict>
<key>namespace</key>
<dict>
<key>begin</key>
<string>(?i)(?:(namespace)|[a-z0-9_]+)?(\\)(?=.*?[^a-z_0-9\\])</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>variable.language.namespace.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.separator.inheritance.php</string>
</dict>
</dict>
<key>end</key>
<string>(?i)(?=[a-z0-9_]*[^a-z0-9_\\])</string>
<key>name</key>
<string>support.other.namespace.php</string>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.separator.inheritance.php</string>
</dict>
</dict>
<key>match</key>
<string>(?i)(\\)</string>
</dict>
</array>
</dict>
<key>numbers</key>
<dict>
<key>match</key>
<string>\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b</string>
<key>name</key>
<string>constant.numeric.php</string>
</dict>
<key>object</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>(-&gt;)(\$?\{)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.class.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>end</key>
<string>(\})</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#language</string>
</dict>
</array>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.class.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>meta.function-call.object.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>variable.other.property.php</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>match</key>
<string>(?x)(-&gt;)
(?:
([A-Za-z_][A-Za-z_0-9]*)\s*\(
|
((\$+)?[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)
)?</string>
</dict>
</array>
</dict>
<key>parameter-default-types</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#strings</string>
</dict>
<dict>
<key>include</key>
<string>#numbers</string>
</dict>
<dict>
<key>include</key>
<string>#string-backtick</string>
</dict>
<dict>
<key>include</key>
<string>#variables</string>
</dict>
<dict>
<key>match</key>
<string>=&gt;</string>
<key>name</key>
<string>keyword.operator.key.php</string>
</dict>
<dict>
<key>match</key>
<string>=</string>
<key>name</key>
<string>keyword.operator.assignment.php</string>
</dict>
<dict>
<key>match</key>
<string>&amp;(?=\s*\$)</string>
<key>name</key>
<string>storage.modifier.reference.php</string>
</dict>
<dict>
<key>begin</key>
<string>(array)\s*(\()</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>support.function.construct.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.definition.array.begin.php</string>
</dict>
</dict>
<key>end</key>
<string>\)</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.array.end.php</string>
</dict>
</dict>
<key>name</key>
<string>meta.array.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#parameter-default-types</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#instantiation</string>
</dict>
<dict>
<key>begin</key>
<string>(?xi)\s*(?=
[a-z_0-9\\]+(::)
([a-z_\x{7f}-\x{ff}][a-z0-9_\x{7f}-\x{ff}]*)?
)</string>
<key>end</key>
<string>(?i)(::)([a-z_\x{7f}-\x{ff}][a-z0-9_\x{7f}-\x{ff}]*)?</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.class.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>constant.other.class.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#class-name</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#constants</string>
</dict>
</array>
</dict>
<key>php_doc</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>comment</key>
<string>PHPDocumentor only recognises lines with an asterisk as the first non-whitespaces character</string>
<key>match</key>
<string>^(?!\s*\*).*$\n?</string>
<key>name</key>
<string>invalid.illegal.missing-asterisk.phpdoc.php</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.phpdoc.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>storage.modifier.php</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>invalid.illegal.wrong-access-type.phpdoc.php</string>
</dict>
</dict>
<key>match</key>
<string>^\s*\*\s*(@access)\s+((public|private|protected)|(.+))\s*$</string>
</dict>
<dict>
<key>match</key>
<string>((https?|s?ftp|ftps|file|smb|afp|nfs|(x-)?man|gopher|txmt)://|mailto:)[-:@a-zA-Z0-9_.~%+/?=&amp;#]+(?&lt;![.?:])</string>
<key>name</key>
<string>markup.underline.link.php</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.phpdoc.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>markup.underline.link.php</string>
</dict>
</dict>
<key>match</key>
<string>(@xlink)\s+(.+)\s*$</string>
</dict>
<dict>
<key>match</key>
<string>\@(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)\b</string>
<key>name</key>
<string>keyword.other.phpdoc.php</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.phpdoc.php</string>
</dict>
</dict>
<key>match</key>
<string>\{(@(link)).+?\}</string>
<key>name</key>
<string>meta.tag.inline.phpdoc.php</string>
</dict>
</array>
</dict>
<key>regex-double-quoted</key>
<dict>
<key>begin</key>
<string>(?x)"/ (?= (\\.|[^"/])++/[imsxeADSUXu]*" )</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.php</string>
</dict>
</dict>
<key>end</key>
<string>(/)([imsxeADSUXu]*)(")</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.php</string>
</dict>
</dict>
<key>name</key>
<string>string.regexp.double-quoted.php</string>
<key>patterns</key>
<array>
<dict>
<key>comment</key>
<string>Escaped from the regexp – there can also be 2 backslashes (since 1 will escape the first)</string>
<key>match</key>
<string>(\\){1,2}[.$^\[\]{}]</string>
<key>name</key>
<string>constant.character.escape.regex.php</string>
</dict>
<dict>
<key>include</key>
<string>#interpolation</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.arbitrary-repitition.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>punctuation.definition.arbitrary-repitition.php</string>
</dict>
</dict>
<key>match</key>
<string>(\{)\d+(,\d+)?(\})</string>
<key>name</key>
<string>string.regexp.arbitrary-repitition.php</string>
</dict>
<dict>
<key>begin</key>
<string>\[(?:\^?\])?</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.character-class.php</string>
</dict>
</dict>
<key>end</key>
<string>\]</string>
<key>name</key>
<string>string.regexp.character-class.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#interpolation</string>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>[$^+*]</string>
<key>name</key>
<string>keyword.operator.regexp.php</string>
</dict>
</array>
</dict>
<key>regex-single-quoted</key>
<dict>
<key>begin</key>
<string>(?x)'/ (?= (\\.|[^'/])++/[imsxeADSUXu]*' )</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.php</string>
</dict>
</dict>
<key>end</key>
<string>(/)([imsxeADSUXu]*)(')</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.php</string>
</dict>
</dict>
<key>name</key>
<string>string.regexp.single-quoted.php</string>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.arbitrary-repitition.php</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>punctuation.definition.arbitrary-repitition.php</string>
</dict>
</dict>
<key>match</key>
<string>(\{)\d+(,\d+)?(\})</string>
<key>name</key>
<string>string.regexp.arbitrary-repitition.php</string>
</dict>
<dict>
<key>comment</key>
<string>Escaped from the regexp – there can also be 2 backslashes (since 1 will escape the first)</string>
<key>match</key>
<string>(\\){1,2}[.$^\[\]{}]</string>
<key>name</key>
<string>constant.character.escape.regex.php</string>
</dict>
<dict>
<key>comment</key>
<string>Escaped from the PHP string – there can also be 2 backslashes (since 1 will escape the first)</string>
<key>match</key>
<string>\\{1,2}[\\']</string>
<key>name</key>
<string>constant.character.escape.php</string>
</dict>
<dict>
<key>begin</key>
<string>\[(?:\^?\])?</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.character-class.php</string>
</dict>
</dict>
<key>end</key>
<string>\]</string>
<key>name</key>
<string>string.regexp.character-class.php</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\[\\'\[\]]</string>
<key>name</key>
<string>constant.character.escape.php</string>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>[$^+*]</string>
<key>name</key>
<string>keyword.operator.regexp.php</string>
</dict>
</array>
</dict>
<key>sql-string-double-quoted</key>
<dict>
<key>begin</key>
<string>"\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\b)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.php</string>
</dict>
</dict>
<key>contentName</key>
<string>source.sql.embedded.php</string>
<key>end</key>
<string>"</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.php</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.double.sql.php</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>#(\\"|[^"])*(?="|$\n?)</string>
<key>name</key>
<string>comment.line.number-sign.sql</string>
</dict>
<dict>
<key>match</key>
<string>--(\\"|[^"])*(?="|$\n?)</string>
<key>name</key>
<string>comment.line.double-dash.sql</string>
</dict>
<dict>
<key>match</key>
<string>\\[\\"`']</string>
<key>name</key>
<string>constant.character.escape.php</string>
</dict>
<dict>
<key>comment</key>
<string>Unclosed strings must be captured to avoid them eating the remainder of the PHP script
Sample case: $sql = "SELECT * FROM bar WHERE foo = '" . $variable . "'"</string>
<key>match</key>
<string>'(?=((\\')|[^'"])*("|$))</string>
<key>name</key>
<string>string.quoted.single.unclosed.sql</string>
</dict>
<dict>
<key>comment</key>
<string>Unclosed strings must be captured to avoid them eating the remainder of the PHP script
Sample case: $sql = "SELECT * FROM bar WHERE foo = '" . $variable . "'"</string>
<key>match</key>
<string>`(?=((\\`)|[^`"])*("|$))</string>
<key>name</key>
<string>string.quoted.other.backtick.unclosed.sql</string>
</dict>
<dict>
<key>begin</key>
<string>'</string>
<key>end</key>
<string>'</string>
<key>name</key>
<string>string.quoted.single.sql</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#interpolation</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>`</string>
<key>end</key>
<string>`</string>
<key>name</key>
<string>string.quoted.other.backtick.sql</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#interpolation</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#interpolation</string>
</dict>
<dict>
<key>include</key>
<string>source.sql</string>
</dict>
</array>
</dict>
<key>sql-string-single-quoted</key>
<dict>
<key>begin</key>
<string>'\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER)\b)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.php</string>
</dict>
</dict>
<key>contentName</key>
<string>source.sql.embedded.php</string>
<key>end</key>
<string>'</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.php</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.single.sql.php</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>#(\\'|[^'])*(?='|$\n?)</string>
<key>name</key>
<string>comment.line.number-sign.sql</string>
</dict>
<dict>
<key>match</key>
<string>--(\\'|[^'])*(?='|$\n?)</string>
<key>name</key>
<string>comment.line.double-dash.sql</string>
</dict>
<dict>
<key>match</key>
<string>\\[\\'`"]</string>
<key>name</key>
<string>constant.character.escape.php</string>
</dict>
<dict>
<key>comment</key>
<string>Unclosed strings must be captured to avoid them eating the remainder of the PHP script
Sample case: $sql = "SELECT * FROM bar WHERE foo = '" . $variable . "'"</string>
<key>match</key>
<string>`(?=((\\`)|[^`'])*('|$))</string>
<key>name</key>
<string>string.quoted.other.backtick.unclosed.sql</string>
</dict>
<dict>
<key>comment</key>
<string>Unclosed strings must be captured to avoid them eating the remainder of the PHP script
Sample case: $sql = "SELECT * FROM bar WHERE foo = '" . $variable . "'"</string>
<key>match</key>
<string>"(?=((\\")|[^"'])*('|$))</string>
<key>name</key>
<string>string.quoted.double.unclosed.sql</string>
</dict>
<dict>
<key>include</key>
<string>source.sql</string>
</dict>
</array>
</dict>
<key>string-backtick</key>
<dict>
<key>begin</key>
<string>`</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.php</string>
</dict>
</dict>
<key>end</key>
<string>`</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.php</string>
</dict>
</dict>
<key>name</key>
<string>string.interpolated.php</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\.</string>
<key>name</key>
<string>constant.character.escape.php</string>
</dict>
<dict>
<key>include</key>
<string>#interpolation</string>
</dict>
</array>
</dict>
<key>string-double-quoted</key>
<dict>
<key>begin</key>
<string>"</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.php</string>
</dict>
</dict>
<key>comment</key>
<string>This contentName is just to allow the usage of “select scope” to select the string contents first, then the string with quotes</string>
<key>contentName</key>
<string>meta.string-contents.quoted.double.php</string>
<key>end</key>
<string>"</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.php</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.double.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#interpolation</string>
</dict>
</array>
</dict>
<key>string-single-quoted</key>
<dict>
<key>begin</key>
<string>'</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.php</string>
</dict>
</dict>
<key>contentName</key>
<string>meta.string-contents.quoted.single.php</string>
<key>end</key>
<string>'</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.php</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.single.php</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\[\\']</string>
<key>name</key>
<string>constant.character.escape.php</string>
</dict>
</array>
</dict>
<key>strings</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#regex-double-quoted</string>
</dict>
<dict>
<key>include</key>
<string>#sql-string-double-quoted</string>
</dict>
<dict>
<key>include</key>
<string>#string-double-quoted</string>
</dict>
<dict>
<key>include</key>
<string>#regex-single-quoted</string>
</dict>
<dict>
<key>include</key>
<string>#sql-string-single-quoted</string>
</dict>
<dict>
<key>include</key>
<string>#string-single-quoted</string>
</dict>
</array>
</dict>
<key>support</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.apc.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.array.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.basic_functions.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bbc(s(cale|ub|qrt)|comp|div|pow(mod)?|add|m(od|ul))\b</string>
<key>name</key>
<string>support.function.bcmath.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bbz(c(ompress|lose)|open|decompress|err(str|no|or)|flush|write|read)\b</string>
<key>name</key>
<string>support.function.bz2.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.calendar.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(c(lass_(exists|alias)|all_user_method(_array)?)|i(s_(subclass_of|a)|nterface_exists)|property_exists|get_(c(lass(_(vars|methods))?|alled_class)|object_vars|declared_(classes|interfaces)|parent_class)|method_exists)\b</string>
<key>name</key>
<string>support.function.classobj.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.com.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bctype_(space|cntrl|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit)\b</string>
<key>name</key>
<string>support.function.ctype.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.curl.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.datetime.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bdba_(sync|handlers|nextkey|close|insert|op(timize|en)|delete|popen|exists|key_split|f(irstkey|etch)|list|replace)\b</string>
<key>name</key>
<string>support.function.dba.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bdbx_(sort|c(o(nnect|mpare)|lose)|e(scape_string|rror)|query|fetch_row)\b</string>
<key>name</key>
<string>support.function.dbx.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(scandir|c(h(dir|root)|losedir)|opendir|dir|re(winddir|addir)|getcwd)\b</string>
<key>name</key>
<string>support.function.dir.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(domxml_(new_doc|open_(file|mem)|version|x(slt_(stylesheet(_(doc|file))?|version)|mltree))|xp(tr_(new_context|eval)|ath_(new_context|eval(_expression)?|register_ns(_auto)?)))\b</string>
<key>name</key>
<string>support.function.domxml.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bdotnet_load\b</string>
<key>name</key>
<string>support.function.dotnet.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.enchant.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(s(plit(i)?|ql_regcase)|ereg(i(_replace)?|_replace)?)\b</string>
<key>name</key>
<string>support.function.ereg.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.errorfunc.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(s(hell_exec|ystem)|p(assthru|roc_(nice|close|terminate|open|get_status))|e(scapeshell(cmd|arg)|xec))\b</string>
<key>name</key>
<string>support.function.exec.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(exif_(t(humbnail|agname)|imagetype|read_data)|read_exif_data)\b</string>
<key>name</key>
<string>support.function.exif.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.file.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(finfo_(set_flags|close|open|file|buffer)|mime_content_type)\b</string>
<key>name</key>
<string>support.function.fileinfo.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bfilter_(has_var|i(nput(_array)?|d)|var(_array)?|list)\b</string>
<key>name</key>
<string>support.function.filter.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.funchand.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(ngettext|textdomain|d(ngettext|c(ngettext|gettext)|gettext)|gettext|bind(textdomain|_textdomain_codeset))\b</string>
<key>name</key>
<string>support.function.gettext.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.gmp.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bhash(_(hmac(_file)?|copy|init|update(_(stream|file))?|fi(nal|le)|algos))?\b</string>
<key>name</key>
<string>support.function.hash.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.http.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(iconv(_(s(tr(pos|len|rpos)|ubstr|et_encoding)|get_encoding|mime_(decode(_headers)?|encode)))?|ob_iconv_handler)\b</string>
<key>name</key>
<string>support.function.iconv.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.iisfunc.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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))\b</string>
<key>name</key>
<string>support.function.image.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.info.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bibase_(se(t_event_handler|rv(ice_(detach|attach)|er_info))|n(um_(params|fields)|ame_result)|c(o(nnect|mmit(_ret)?)|lose)|t(imefmt|rans)|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</string>
<key>name</key>
<string>support.function.interbase.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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|localtime|get_(calendar|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</string>
<key>name</key>
<string>support.function.intl.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bjson_(decode|encode|last_error)\b</string>
<key>name</key>
<string>support.function.json.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bldap_(s(tart_tls|ort|e(t_(option|rebind_proc)|arch)|asl_bind)|next_(entry|attribute|reference)|c(o(nnect|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</string>
<key>name</key>
<string>support.function.ldap.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\blibxml_(set_streams_context|clear_errors|disable_entity_loader|use_internal_errors|get_(errors|last_error))\b</string>
<key>name</key>
<string>support.function.libxml.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(ezmlm_hash|mail)\b</string>
<key>name</key>
<string>support.function.mail.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.math.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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|match))?)|l(ist_encodings|anguage)|regex_(set_options|encoding)|get_info)\b</string>
<key>name</key>
<string>support.function.mbstring.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.mcrypt.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bmemcache_debug\b</string>
<key>name</key>
<string>support.function.memcache.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bmhash(_(count|keygen_s2k|get_(hash_name|block_size)))?\b</string>
<key>name</key>
<string>support.function.mhash.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bbson_(decode|encode)\b</string>
<key>name</key>
<string>support.function.mongo.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.mysql.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bmysqli_(s(sl_set|t(ore_result|at|mt_(s(tore_result|end_long_data|qlstate)|num_rows|close|in(sert_id|it)|data_seek|p(aram_count|repare)|e(rr(no|or)|xecute)|f(ield_count|etch|ree_result)|a(ttr_(set|get)|ffected_rows)|res(ult_metadata|et)|get_(warnings|result)|bind_(param|result)))|e(nd_(query|long_data)|t_(charset|opt|local_infile_(handler|default))|lect_db)|qlstate|lave_query)|n(um_(fields|rows)|ext_result)|c(ha(nge_user|racter_set_name)|o(nnect(_err(no|or))?|mmit)|l(ient_encoding|ose))|thread_(safe|id)|in(sert_id|it|fo)|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)|rr(no|or)|xecute|mbedded_server_(start|end))|kill|query|f(ield_(seek|count|tell)|etch(_(object|field(s|_direct)?|lengths|a(ssoc|ll|rray)|row))?|ree_result)|warning_count|a(utocommit|ffected_rows)|r(ollback|pl_(p(arse_enabled|robe)|query_type)|e(port|a(p_async_query|l_(connect|escape_string|query))))|get_(server_(info|version)|host_info|c(harset|onnection_stats|lient_(stats|info|version)|ache_stats)|proto_info|warnings|metadata)|m(ore_results|ulti_query|aster_query)|bind_(param|result))\b</string>
<key>name</key>
<string>support.function.mysqli.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bmysqlnd_ms_(set_user_pick_server|query_is_select|get_stats)\b</string>
<key>name</key>
<string>support.function.mysqlnd-ms.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bmysqlnd_qc_(set_user_handlers|c(hange_handler|lear_cache)|get_(handler|c(ore_stats|ache_info)|query_trace_log))\b</string>
<key>name</key>
<string>support.function.mysqlnd-qc.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(s(yslog|ocket_(set_(timeout|blocking)|get_status)|et(cookie|rawcookie))|header(s_(sent|list)|_remove)?|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</string>
<key>name</key>
<string>support.function.network.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bnsapi_(virtual|re(sponse_headers|quest_headers))\b</string>
<key>name</key>
<string>support.function.nsapi.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(deaggregate|aggregat(ion_info|e(_(info|properties(_by_(list|regexp))?|methods(_by_(list|regexp))?))?))\b</string>
<key>name</key>
<string>support.function.objaggregation.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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)|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</string>
<key>name</key>
<string>support.function.oci8.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.openssl.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.output.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\boverload\b</string>
<key>name</key>
<string>support.function.overload.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.pcntl.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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|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</string>
<key>name</key>
<string>support.function.pgsql.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(virtual|apache_(setenv|note|child_terminate|lookup_uri|re(s(ponse_headers|et_timeout)|quest_headers)|get(_(version|modules)|env))|getallheaders)\b</string>
<key>name</key>
<string>support.function.php_apache.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bdom_import_simplexml\b</string>
<key>name</key>
<string>support.function.php_dom.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.php_ftp.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.php_imap.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.php_mssql.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.php_odbc.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bpreg_(split|quote|filter|last_error|replace(_callback)?|grep|match(_all)?)\b</string>
<key>name</key>
<string>support.function.php_pcre.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(spl_(classes|object_hash|autoload(_(call|unregister|extensions|functions|register))?)|class_(implements|parents)|iterator_(count|to_array|apply))\b</string>
<key>name</key>
<string>support.function.php_spl.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bzip_(close|open|entry_(name|c(ompress(ionmethod|edsize)|lose)|open|filesize|read)|read)\b</string>
<key>name</key>
<string>support.function.php_zip.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.posix.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bset(threadtitle|proctitle)\b</string>
<key>name</key>
<string>support.function.proctitle.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.pspell.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.readline.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\brecode(_(string|file))?\b</string>
<key>name</key>
<string>support.function.recode.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\brrd_(create|tune|info|update|error|f(irst|etch)|last(update)?|restore|graph|xport)\b</string>
<key>name</key>
<string>support.function.rrd.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.sem.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bsession_(s(tart|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|enerate_id)|get_cookie_params|module_name)\b</string>
<key>name</key>
<string>support.function.session.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bshmop_(size|close|open|delete|write|read)\b</string>
<key>name</key>
<string>support.function.shmop.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bsimplexml_(import_dom|load_(string|file))\b</string>
<key>name</key>
<string>support.function.simplexml.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.snmp.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(is_soap_fault|use_soap_error_handler)\b</string>
<key>name</key>
<string>support.function.soap.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bsocket_(s(hutdown|trerror|e(nd(to)?|t_(nonblock|option|block)|lect))|c(onnect|l(ose|ear_error)|reate(_(pair|listen))?)|write|l(isten|ast_error)|accept|re(cv(from)?|ad)|get(sockname|_option|peername)|bind)\b</string>
<key>name</key>
<string>support.function.sockets.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.sqlite.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.stats.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bs(tream_(s(ocket_(s(hutdown|e(ndto|rver))|client|pair|enable_crypto|accept|recvfrom|get_name)|upports_lock|e(t_(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</string>
<key>name</key>
<string>support.function.streamsfuncs.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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)|ebrev(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</string>
<key>name</key>
<string>support.function.string.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.sybase.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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)|error_buffer|r(oot|elease)|body)))|ob_tidyhandler)\b</string>
<key>name</key>
<string>support.function.tidy.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\btoken_(name|get_all)\b</string>
<key>name</key>
<string>support.function.tokenizer.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(http_build_query|url(decode|encode)|parse_url|rawurl(decode|encode)|get_(headers|meta_tags)|base64_(decode|encode))\b</string>
<key>name</key>
<string>support.function.url.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(s(trval|e(ttype|rialize))|i(s(set|_(s(calar|tring)|nu(ll|meric)|callable|int(eger)?|object|double|float|long|array|re(source|al)|bool))|ntval|mport_request_variables)|d(oubleval|ebug_zval_dump)|unse(t|rialize)|print_r|empty|var_(dump|export)|floatval|get(type|_(defined_vars|resource_type)))\b</string>
<key>name</key>
<string>support.function.var.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bwddx_(serialize_va(lue|rs)|deserialize|packet_(start|end)|add_vars)\b</string>
<key>name</key>
<string>support.function.wddx.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bxhprof_(sample_(disable|enable)|disable|enable)\b</string>
<key>name</key>
<string>support.function.xhprof.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.xml.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.xmlrpc.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.xmlwriter.php</string>
</dict>
<dict>
<key>match</key>
<string>(?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</string>
<key>name</key>
<string>support.function.xslt.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(zlib_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</string>
<key>name</key>
<string>support.function.zlib.php</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\bis_int(eger)?\b</string>
<key>name</key>
<string>support.function.alias.php</string>
</dict>
</array>
</dict>
<key>user-function-call</key>
<dict>
<key>begin</key>
<string>(?i)(?=[a-z_0-9\\]*[a-z_][a-z0-9_]*\s*\()</string>
<key>end</key>
<string>(?i)[a-z_][a-z_0-9]*(?=\s*\()</string>
<key>name</key>
<string>meta.function-call.php</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#namespace</string>
</dict>
</array>
</dict>
<key>var_basic</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>match</key>
<string>(?x)
(\$+)[a-zA-Z_\x{7f}-\x{ff}]
[a-zA-Z0-9_\x{7f}-\x{ff}]*?\b</string>
<key>name</key>
<string>variable.other.php</string>
</dict>
</array>
</dict>
<key>var_global</key>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>match</key>
<string>(\$)((_(COOKIE|FILES|GET|POST|REQUEST))|arg(v|c))\b</string>
<key>name</key>
<string>variable.other.global.php</string>
</dict>
<key>var_global_safer</key>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>match</key>
<string>(\$)((GLOBALS|_(ENV|SERVER|SESSION)))</string>
<key>name</key>
<string>variable.other.global.safer.php</string>
</dict>
<key>variable-name</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#var_global</string>
</dict>
<dict>
<key>include</key>
<string>#var_global_safer</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>variable.other.php</string>
</dict>
<key>10</key>
<dict>
<key>name</key>
<string>string.unquoted.index.php</string>
</dict>
<key>11</key>
<dict>
<key>name</key>
<string>punctuation.section.array.end.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>keyword.operator.class.php</string>
</dict>
<key>5</key>
<dict>
<key>name</key>
<string>variable.other.property.php</string>
</dict>
<key>6</key>
<dict>
<key>name</key>
<string>punctuation.section.array.begin.php</string>
</dict>
<key>7</key>
<dict>
<key>name</key>
<string>constant.numeric.index.php</string>
</dict>
<key>8</key>
<dict>
<key>name</key>
<string>variable.other.index.php</string>
</dict>
<key>9</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>comment</key>
<string>Simple syntax: $foo, $foo[0], $foo[$bar], $foo-&gt;bar</string>
<key>match</key>
<string>(?x)
((\$)(?&lt;name&gt;[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*))
(?:
(-&gt;)(\g&lt;name&gt;)
|
(\[)
(?:(\d+)|((\$)\g&lt;name&gt;)|(\w+))
(\])
)?
</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>variable.other.php</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>comment</key>
<string>Simple syntax with braces: "foo${bar}baz"</string>
<key>match</key>
<string>(?x)
((\$\{)(?&lt;name&gt;[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)(\}))
</string>
</dict>
</array>
</dict>
<key>variables</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#var_global</string>
</dict>
<dict>
<key>include</key>
<string>#var_global_safer</string>
</dict>
<dict>
<key>include</key>
<string>#var_basic</string>
</dict>
<dict>
<key>begin</key>
<string>(\$\{)(?=.*?\})</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>end</key>
<string>(\})</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.php</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#language</string>
</dict>
</array>
</dict>
</array>
</dict>
</dict>
<key>scopeName</key>
<string>source.php</string>
<key>uuid</key>
<string>22986475-8CA5-11D9-AEDD-000D93C8BE28</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment