UNPKG

tm-grammars

Version:
1,234 lines (1,233 loc) 151 kB
{ "displayName": "Blade", "fileTypes": [ "blade.php" ], "foldingStartMarker": "(/\\*|\\{\\s*$|<<<HTML)", "foldingStopMarker": "(\\*/|^\\s*}|^HTML;)", "injections": { "text.html.php.blade - (meta.embedded | meta.tag | comment.block.blade), L:(text.html.php.blade meta.tag - (comment.block.blade | meta.embedded.block.blade)), L:(source.js.embedded.html - (comment.block.blade | meta.embedded.block.blade))": { "patterns": [ { "include": "#blade" }, { "begin": "^(\\s*)(?=<\\?(?![^?]*\\?>))", "beginCaptures": { "0": { "name": "punctuation.whitespace.embedded.leading.php" } }, "end": "(?!\\G)(\\s*$\\n)?", "endCaptures": { "0": { "name": "punctuation.whitespace.embedded.trailing.php" } }, "patterns": [ { "begin": "<\\?(?i:php|=)?", "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.php" } }, "contentName": "source.php", "end": "(\\?)>", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" }, "1": { "name": "source.php" } }, "name": "meta.embedded.block.php", "patterns": [ { "include": "#language" } ] } ] }, { "begin": "<\\?(?i:php|=)?(?![^?]*\\?>)", "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.php" } }, "contentName": "source.php", "end": "(\\?)>", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" }, "1": { "name": "source.php" } }, "name": "meta.embedded.block.php", "patterns": [ { "include": "#language" } ] }, { "begin": "<\\?(?i:php|=)?", "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.php" } }, "end": ">", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" } }, "name": "meta.embedded.line.php", "patterns": [ { "captures": { "1": { "name": "source.php" }, "2": { "name": "punctuation.section.embedded.end.php" }, "3": { "name": "source.php" } }, "match": "\\G(\\s*)((\\?))(?=>)", "name": "meta.special.empty-tag.php" }, { "begin": "\\G", "contentName": "source.php", "end": "(\\?)(?=>)", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" }, "1": { "name": "source.php" } }, "patterns": [ { "include": "#language" } ] } ] } ] } }, "name": "blade", "patterns": [ { "include": "text.html.derivative" } ], "repository": { "balance_brackets": { "patterns": [ { "begin": "\\(", "end": "\\)", "patterns": [ { "include": "#balance_brackets" } ] }, { "match": "[^()]+" } ] }, "blade": { "patterns": [ { "begin": "\\{\\{--", "beginCaptures": { "0": { "name": "punctuation.definition.comment.begin.blade" } }, "end": "--}}", "endCaptures": { "0": { "name": "punctuation.definition.comment.end.blade" } }, "name": "comment.block.blade", "patterns": [ { "begin": "^(\\s*)(?=<\\?(?![^?]*\\?>))", "beginCaptures": { "0": { "name": "punctuation.whitespace.embedded.leading.php" } }, "end": "(?!\\G)(\\s*$\\n)?", "endCaptures": { "0": { "name": "punctuation.whitespace.embedded.trailing.php" } }, "name": "invalid.illegal.php-code-in-comment.blade", "patterns": [ { "begin": "<\\?(?i:php|=)?", "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.php" } }, "contentName": "source.php", "end": "(\\?)>", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" }, "1": { "name": "source.php" } }, "name": "meta.embedded.block.php", "patterns": [ { "include": "#language" } ] } ] }, { "begin": "<\\?(?i:php|=)?(?![^?]*\\?>)", "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.php" } }, "contentName": "source.php", "end": "(\\?)>", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" }, "1": { "name": "source.php" } }, "name": "invalid.illegal.php-code-in-comment.blade.meta.embedded.block.php", "patterns": [ { "include": "#language" } ] }, { "begin": "<\\?(?i:php|=)?", "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.php" } }, "end": ">", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" } }, "name": "invalid.illegal.php-code-in-comment.blade.meta.embedded.line.php", "patterns": [ { "captures": { "1": { "name": "source.php" }, "2": { "name": "punctuation.section.embedded.end.php" }, "3": { "name": "source.php" } }, "match": "\\G(\\s*)((\\?))(?=>)", "name": "meta.special.empty-tag.php" }, { "begin": "\\G", "contentName": "source.php", "end": "(\\?)(?=>)", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" }, "1": { "name": "source.php" } }, "patterns": [ { "include": "#language" } ] } ] } ] }, { "begin": "(?<!@)\\{\\{\\{", "beginCaptures": { "0": { "name": "support.function.construct.begin.blade" } }, "contentName": "source.php", "end": "}}}", "endCaptures": { "0": { "name": "support.function.construct.end.blade" }, "1": { "name": "source.php" } }, "name": "meta.function.echo.blade", "patterns": [ { "include": "#language" } ] }, { "begin": "(?<![@{])\\{\\{", "beginCaptures": { "0": { "name": "support.function.construct.begin.blade" } }, "contentName": "source.php", "end": "}}", "endCaptures": { "0": { "name": "support.function.construct.end.blade" }, "1": { "name": "source.php" } }, "name": "meta.function.echo.blade", "patterns": [ { "include": "#language" } ] }, { "begin": "(?<!@)\\{!!", "beginCaptures": { "0": { "name": "support.function.construct.begin.blade" } }, "contentName": "source.php", "end": "!!}", "endCaptures": { "0": { "name": "support.function.construct.end.blade" }, "1": { "name": "source.php" } }, "name": "meta.function.echo.blade", "patterns": [ { "include": "#language" } ] }, { "begin": "(@)\\{\\{", "beginCaptures": { "0": { "name": "begin.bracket.round.blade" }, "1": { "name": "variable.other.index.php" } }, "contentName": "source.php", "end": "}}", "endCaptures": { "0": { "name": "end.bracket.round.blade" }, "1": { "name": "source.php" } }, "name": "meta.function.echo.blade", "patterns": [ { "include": "#language" } ] }, { "begin": "(?<![0-9@-Z_a-z])(@(?i:auth|break|can|canany|cannot|case|choice|component|continue|dd|dump|each|elsecan|elsecanany|elsecannot|elseif|empty|error|extends|for|foreach|forelse|guest|hassection|if|include|includefirst|includeif|includeunless|includewhen|inject|isset|json|lang|once|prepend|push|section|sectionMissing|slot|stack|switch|unless|unset|while|yield|servers|task|story|finished|production|slack|method|props|env|livewire|php|class|aware|js|checked|selected|disabled|style|readonly|required|pushOnce|pushIf|prependOnce|use|vite)[\\t ]*)(\\()", "beginCaptures": { "1": { "name": "keyword.blade" }, "2": { "name": "begin.bracket.round.blade.php" } }, "contentName": "source.php", "end": "\\)", "endCaptures": { "0": { "name": "end.bracket.round.blade.php" } }, "name": "meta.directive.blade", "patterns": [ { "include": "#language" } ] }, { "begin": "(?<![0-9@-Z_a-z])(@(?i:append|default|else|endauth|endcan|endcanany|endcannot|endcomponent|endempty|enderror|endfor|endforeach|endforelse|endguest|endif|endisset|endlang|endonce|endprepend|endpush|endsection|endslot|endswitch|endunless|endwhile|overwrite|parent|show|stop|endtask|endstory|endfinished|endproduction|endenv|endPushOnce|endPushIf|endPrependOnce)[\\t ]*)(\\()", "beginCaptures": { "1": { "name": "keyword.blade" }, "2": { "name": "begin.bracket.round.blade.php" } }, "contentName": "comment.blade", "end": "\\)", "endCaptures": { "0": { "name": "end.bracket.round.blade.php" } }, "name": "meta.directive.blade", "patterns": [ { "include": "#balance_brackets" } ] }, { "match": "(?<![0-9@-Z_a-z])@(?:append|break|continue|csrf|default|each|else|overwrite|parent|sectionMissing|show|stack|stop|livewireStyles|livewireScripts)\\b", "name": "keyword.blade" }, { "match": "(?<![0-9@-Z_a-z])@(end)?(?i:auth|can|canany|cannot|component|empty|error|for|foreach|forelse|guest|if|isset|lang|prepend|push|section|slot|switch|unless|verbatim|while|task|story|finished|production|env|once|pushOnce|pushIf|prependOnce|session)\\b", "name": "keyword.blade" }, { "begin": "(?<![0-9@-Z_a-z])@(?i:php|setup)\\b", "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.php" } }, "contentName": "source.php", "end": "(?<![0-9@-Z_a-z])(?=@(?i:end(?:php|setup))\\b)", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" } }, "name": "meta.embedded.block.blade", "patterns": [ { "include": "#language" } ] }, { "begin": "(?<![0-9@-Z_a-z])(@(?i:end(?:php|setup))[\\t ]*)(\\()", "beginCaptures": { "1": { "name": "punctuation.section.embedded.end.php" }, "2": { "name": "begin.bracket.round.blade.php" } }, "contentName": "comment.blade", "end": "\\)", "endCaptures": { "0": { "name": "end.bracket.round.blade.php" } }, "name": "meta.directive.blade", "patterns": [ { "include": "#balance_brackets" } ] }, { "match": "(?<![0-9@-Z_a-z])@(?:(?i)endphp|endsetup)\\b", "name": "punctuation.section.embedded.end.php" }, { "begin": "(?<![0-9@-Z_a-z])(@\\w+(?:::w+)?[\\t ]*)(\\()", "beginCaptures": { "1": { "name": "entity.name.function.blade" }, "2": { "name": "begin.bracket.round.blade.php" } }, "contentName": "source.php", "end": "\\)", "endCaptures": { "0": { "name": "end.bracket.round.blade.php" } }, "name": "meta.directive.custom.blade", "patterns": [ { "include": "#language" } ] }, { "match": "(?<![0-9@-Z_a-z])@\\w+(?:::w+)?\\b", "name": "entity.name.function.blade" }, { "begin": "(:[-a-z]+)(=)(\")", "beginCaptures": { "0": { "name": "meta.attribute.unrecognized.$1.html" }, "1": { "name": "entity.other.attribute-name.html" }, "2": { "name": "punctuation.separator.key-value.html" }, "3": { "name": "string.quoted.double.html" }, "4": { "name": "punctuation.definition.string.begin.html" } }, "contentName": "source.php", "end": "(\")", "endCaptures": { "0": { "name": "string.quoted.double.html" }, "1": { "name": "punctuation.definition.string.end.html" } }, "patterns": [ { "include": "#language" } ] } ] }, "class-builtin": { "patterns": [ { "captures": { "1": { "name": "punctuation.separator.inheritance.php" } }, "match": "(?i)(\\\\)?\\b((A(?:PC|ppend))Iterator|Array(Access|Iterator|Object)|Bad(Function|Method)CallException|(Ca(?:ching|llbackFilter))Iterator|Collator|Collectable|Cond|Countable|CURLFile|Date(Interval|Period|Time(Interface|Immutable|Zone)?)?|Directory(Iterator)?|DomainException|DOM(Attr|CdataSection|CharacterData|Comment|Document(Fragment)?|Element|EntityReference|Implementation|NamedNodeMap|Node(list)?|ProcessingInstruction|Text|XPath)|(Error)?Exception|EmptyIterator|finfo|Ev(Check|Child|Embed|Fork|Idle|Io|Loop|Periodic|Prepare|Signal|Stat|Timer|Watcher)?|Event(Base|Buffer(Event)?|SslContext|Http(Request|Connection)?|Config|DnsBase|Util|Listener)?|FANNConnection|(Fil(?:ter|esystem))Iterator|Gender\\\\Gender|GlobIterator|Gmagick(Draw|Pixel)?|Haru(Annotation|Destination|Doc|Encoder|Font|Image|Outline|Page)|Http(((?:In|De)flate)?Stream|Message|Request(Pool)?|Response|QueryString)|HRTime\\\\(PerformanceCounter|StopWatch)|Intl(Calendar|((CodePoint|RuleBased)?Break|Parts)?Iterator|DateFormatter|TimeZone)|Imagick(Draw|Pixel(Iterator)?)?|InfiniteIterator|InvalidArgumentException|Iterator(Aggregate|Iterator)?|JsonSerializable|KTaglib_(MPEG_(File|AudioProperties)|Tag|ID3v2_(Tag|(AttachedPicture)?Frame))|Lapack|(L(?:ength|ocale|ogic))Exception|LimitIterator|Lua(Closure)?|Mongo(BinData|Client|Code|Collection|CommandCursor|Cursor(Exception)?|Date|DB(Ref)?|DeleteBatch|Grid(FS(Cursor|File)?)|Id|InsertBatch|Int(32|64)|Log|Pool|Regex|ResultException|Timestamp|UpdateBatch|Write(Batch|ConcernException))?|Memcache(d)?|MessageFormatter|MultipleIterator|Mutex|mysqli(_(driver|stmt|warning|result))?|MysqlndUh(Connection|PreparedStatement)|NoRewindIterator|Normalizer|NumberFormatter|OCI-(Collection|Lob)|OuterIterator|(O(?:utOf(Bounds|Range)|verflow))Exception|ParentIterator|PDO(Statement)?|Phar(Data|FileInfo)?|php_user_filter|Pool|QuickHash(Int(S(?:et|tringHash))|StringIntHash)|Recursive(Array|Caching|Directory|Fallback|Filter|Iterator|Regex|Tree)?Iterator|Reflection(Class|Function(Abstract)?|Method|Object|Parameter|Property|(Zend)?Extension)?|RangeException|Reflector|RegexIterator|ResourceBundle|RuntimeException|RRD(Creator|Graph|Updater)|SAM(Connection|Message)|SCA(_((?:Soap|Local)Proxy))?|SDO_(DAS_(ChangeSummary|Data(Factory|Object)|Relational|Setting|XML(_Document)?)|Data(Factory|Object)|Exception|List|Model_(Property|ReflectionDataObject|Type)|Sequence)|SeekableIterator|Serializable|SessionHandler(Interface)?|SimpleXML(Iterator|Element)|SNMP|Soap(Client|Fault|Header|Param|Server|Var)|SphinxClient|Spoofchecker|Spl(DoublyLinkedList|Enum|File(Info|Object)|FixedArray|(M(?:ax|in))?Heap|Observer|ObjectStorage|(Priority)?Queue|Stack|Subject|Type|TempFileObject)|SQLite(3(Result|Stmt)?|Database|Result|Unbuffered)|stdClass|streamWrapper|SVM(Model)?|Swish(Result(s)?|Search)?|Sync(Event|Mutex|ReaderWriter|Semaphore)|Thread(ed)?|tidy(Node)?|TokyoTyrant(Table|Iterator|Query)?|Transliterator|Traversable|UConverter|(Un(?:derflow|expectedValue))Exception|V8Js(Exception)?|Varnish(Admin|Log|Stat)|Worker|Weak(Map|Ref)|XML(Diff\\\\(Base|DOM|File|Memory)|Reader|Writer)|XsltProcessor|Yaf_(Route_(Interface|Map|Regex|Rewrite|Simple|Supervar)|Action_Abstract|Application|Config_(Simple|Ini|Abstract)|Controller_Abstract|Dispatcher|Exception|Loader|Plugin_Abstract|Registry|Request_(Abstract|Simple|Http)|Response_Abstract|Router|Session|View_(Simple|Interface))|Yar_(Client(_Exception)?|Concurrent_Client|Server(_Exception)?)|ZipArchive|ZMQ(Context|Device|Poll|Socket)?)\\b", "name": "support.class.builtin.php" } ] }, "class-name": { "patterns": [ { "begin": "(?i)(?=\\\\?[0-9_a-z]+\\\\)", "end": "(?i)([_a-z][0-9_a-z]*)?(?=[^0-9\\\\_a-z])", "endCaptures": { "1": { "name": "support.class.php" } }, "patterns": [ { "include": "#namespace" } ] }, { "include": "#class-builtin" }, { "begin": "(?=[A-Z\\\\_a-z])", "end": "(?i)([_a-z][0-9_a-z]*)?(?=[^0-9\\\\_a-z])", "endCaptures": { "1": { "name": "support.class.php" } }, "patterns": [ { "include": "#namespace" } ] } ] }, "comments": { "patterns": [ { "begin": "/\\*\\*(?=\\s)", "beginCaptures": { "0": { "name": "punctuation.definition.comment.php" } }, "end": "\\*/", "endCaptures": { "0": { "name": "punctuation.definition.comment.php" } }, "name": "comment.block.documentation.phpdoc.php", "patterns": [ { "include": "#php_doc" } ] }, { "begin": "/\\*", "captures": { "0": { "name": "punctuation.definition.comment.php" } }, "end": "\\*/", "name": "comment.block.php" }, { "begin": "(^\\s+)?(?=//)", "beginCaptures": { "1": { "name": "punctuation.whitespace.comment.leading.php" } }, "end": "(?!\\G)", "patterns": [ { "begin": "//", "beginCaptures": { "0": { "name": "punctuation.definition.comment.php" } }, "end": "\\n|(?=\\?>)", "name": "comment.line.double-slash.php" } ] }, { "begin": "(^\\s+)?(?=#)", "beginCaptures": { "1": { "name": "punctuation.whitespace.comment.leading.php" } }, "end": "(?!\\G)", "patterns": [ { "begin": "#", "beginCaptures": { "0": { "name": "punctuation.definition.comment.php" } }, "end": "\\n|(?=\\?>)", "name": "comment.line.number-sign.php" } ] } ] }, "constants": { "patterns": [ { "match": "(?i)\\b(TRUE|FALSE|NULL|__(FILE|DIR|FUNCTION|CLASS|METHOD|LINE|NAMESPACE)__|ON|OFF|YES|NO|NL|BR|TAB)\\b", "name": "constant.language.php" }, { "captures": { "1": { "name": "punctuation.separator.inheritance.php" } }, "match": "(\\\\)?\\b(DEFAULT_INCLUDE_PATH|EAR_(INSTALL|EXTENSION)_DIR|E_(ALL|COMPILE_(ERROR|WARNING)|CORE_(ERROR|WARNING)|DEPRECATED|ERROR|NOTICE|PARSE|RECOVERABLE_ERROR|STRICT|USER_(DEPRECATED|ERROR|NOTICE|WARNING)|WARNING)|PHP_(ROUND_HALF_(DOWN|EVEN|ODD|UP)|(MAJOR|MINOR|RELEASE)_VERSION|MAXPATHLEN|BINDIR|SHLIB_SUFFIX|SYSCONFDIR|SAPI|CONFIG_FILE_(PATH|SCAN_DIR)|INT_(MAX|SIZE)|ZTS|OS|OUTPUT_HANDLER_(START|CONT|END)|DEBUG|DATADIR|URL_(SCHEME|HOST|USER|PORT|PASS|PATH|QUERY|FRAGMENT)|PREFIX|EXTRA_VERSION|EXTENSION_DIR|EOL|VERSION(_ID)?|WINDOWS_(NT_(SERVER|DOMAIN_CONTROLLER|WORKSTATION)|VERSION_(M(?:AJOR|INOR))|BUILD|SUITEMASK|SP_(M(?:AJOR|INOR))|PRODUCTTYPE|PLATFORM)|LIBDIR|LOCALSTATEDIR)|STD(ERR|IN|OUT)|ZEND_(DEBUG_BUILD|THREAD_SAFE))\\b", "name": "support.constant.core.php" }, { "captures": { "1": { "name": "punctuation.separator.inheritance.php" } }, "match": "(\\\\)?\\b(__COMPILER_HALT_OFFSET__|AB(MON_([1-9]|10|11|12)|DAY[1-7])|AM_STR|ASSERT_(ACTIVE|BAIL|CALLBACK_QUIET_EVAL|WARNING)|ALT_DIGITS|CASE_(UPPER|LOWER)|CHAR_MAX|CONNECTION_(ABORTED|NORMAL|TIMEOUT)|CODESET|COUNT_(NORMAL|RECURSIVE)|CREDITS_(ALL|DOCS|FULLPAGE|GENERAL|GROUP|MODULES|QA|SAPI)|CRYPT_(BLOWFISH|EXT_DES|MD5|SHA(256|512)|SALT_LENGTH|STD_DES)|CURRENCY_SYMBOL|D_(T_)?FMT|DATE_(ATOM|COOKIE|ISO8601|RFC(822|850|1036|1123|2822|3339)|RSS|W3C)|DAY_[1-7]|DECIMAL_POINT|DIRECTORY_SEPARATOR|ENT_(COMPAT|IGNORE|(NO)?QUOTES)|EXTR_(IF_EXISTS|OVERWRITE|PREFIX_(ALL|IF_EXISTS|INVALID|SAME)|REFS|SKIP)|ERA(_(D_(T_)?FMT)|T_FMT|YEAR)?|FRAC_DIGITS|GROUPING|HASH_HMAC|HTML_(ENTITIES|SPECIALCHARS)|INF|INFO_(ALL|CREDITS|CONFIGURATION|ENVIRONMENT|GENERAL|LICENSEMODULES|VARIABLES)|INI_(ALL|CANNER_(NORMAL|RAW)|PERDIR|SYSTEM|USER)|INT_(CURR_SYMBOL|FRAC_DIGITS)|LC_(ALL|COLLATE|CTYPE|MESSAGES|MONETARY|NUMERIC|TIME)|LOCK_(EX|NB|SH|UN)|LOG_(ALERT|AUTH(PRIV)?|CRIT|CRON|CONS|DAEMON|DEBUG|EMERG|ERR|INFO|LOCAL[1-7]|LPR|KERN|MAIL|NEWS|NODELAY|NOTICE|NOWAIT|ODELAY|PID|PERROR|WARNING|SYSLOG|UCP|USER)|M_(1_PI|SQRT(1_2|[23]|PI)|2_(SQRT)?PI|PI(_([24]))?|E(ULER)?|LN(10|2|PI)|LOG(10|2)E)|MON_([1-9]|10|11|12|DECIMAL_POINT|GROUPING|THOUSANDS_SEP)|N_(CS_PRECEDES|SEP_BY_SPACE|SIGN_POSN)|NAN|NEGATIVE_SIGN|NO(EXPR|STR)|P_(CS_PRECEDES|SEP_BY_SPACE|SIGN_POSN)|PM_STR|POSITIVE_SIGN|PATH(_SEPARATOR|INFO_(EXTENSION|(BASE|DIR|FILE)NAME))|RADIXCHAR|SEEK_(CUR|END|SET)|SORT_(ASC|DESC|LOCALE_STRING|REGULAR|STRING)|STR_PAD_(BOTH|LEFT|RIGHT)|T_FMT(_AMPM)?|THOUSEP|THOUSANDS_SEP|UPLOAD_ERR_(CANT_WRITE|EXTENSION|(FORM|INI)_SIZE|NO_(FILE|TMP_DIR)|OK|PARTIAL)|YES(EXPR|STR))\\b", "name": "support.constant.std.php" }, { "captures": { "1": { "name": "punctuation.separator.inheritance.php" } }, "match": "(\\\\)?\\b(GLOB_(MARK|BRACE|NO(SORT|CHECK|ESCAPE)|ONLYDIR|ERR|AVAILABLE_FLAGS)|XML_(SAX_IMPL|(DTD|DOCUMENT(_(FRAG|TYPE))?|HTML_DOCUMENT|NOTATION|NAMESPACE_DECL|PI|COMMENT|DATA_SECTION|TEXT)_NODE|OPTION_(SKIP_(TAGSTART|WHITE)|CASE_FOLDING|TARGET_ENCODING)|ERROR_((BAD_CHAR|(ATTRIBUTE_EXTERNAL|BINARY|PARAM|RECURSIVE)_ENTITY)_REF|MISPLACED_XML_PI|SYNTAX|NONE|NO_(MEMORY|ELEMENTS)|TAG_MISMATCH|INCORRECT_ENCODING|INVALID_TOKEN|DUPLICATE_ATTRIBUTE|UNCLOSED_(CDATA_SECTION|TOKEN)|UNDEFINED_ENTITY|UNKNOWN_ENCODING|JUNK_AFTER_DOC_ELEMENT|PARTIAL_CHAR|EXTERNAL_ENTITY_HANDLING|ASYNC_ENTITY)|ENTITY_(((REF|DECL)_)?NODE)|ELEMENT(_DECL)?_NODE|LOCAL_NAMESPACE|ATTRIBUTE_(N(?:MTOKEN(S)?|OTATION|ODE))|CDATA|ID(REF(S)?)?|DECL_NODE|ENTITY|ENUMERATION)|MHASH_(RIPEMD(128|160|256|320)|GOST|MD([245])|SHA(1|224|256|384|512)|SNEFRU256|HAVAL(128|160|192|224|256)|CRC23(B)?|TIGER(1(?:28|60))?|WHIRLPOOL|ADLER32)|MYSQL_(BOTH|NUM|CLIENT_(SSL|COMPRESS|IGNORE_SPACE|INTERACTIVE|ASSOC))|MYSQLI_(REPORT_(STRICT|INDEX|OFF|ERROR|ALL)|REFRESH_(GRANT|MASTER|BACKUP_LOG|STATUS|SLAVE|HOSTS|THREADS|TABLES|LOG)|READ_DEFAULT_(FILE|GROUP)|(GROUP|MULTIPLE_KEY|BINARY|BLOB)_FLAG|BOTH|STMT_ATTR_(CURSOR_TYPE|UPDATE_MAX_LENGTH|PREFETCH_ROWS)|STORE_RESULT|SERVER_QUERY_(NO_((GOOD_)?INDEX_USED)|WAS_SLOW)|SET_(CHARSET_NAME|FLAG)|NO_(D(?:EFAULT_VALUE_FLAG|ATA))|NOT_NULL_FLAG|NUM(_FLAG)?|CURSOR_TYPE_(READ_ONLY|SCROLLABLE|NO_CURSOR|FOR_UPDATE)|CLIENT_(SSL|NO_SCHEMA|COMPRESS|IGNORE_SPACE|INTERACTIVE|FOUND_ROWS)|TYPE_(GEOMETRY|((MEDIUM|LONG|TINY)_)?BLOB|BIT|SHORT|STRING|SET|YEAR|NULL|NEWDECIMAL|NEWDATE|CHAR|TIME(STAMP)?|TINY|INT24|INTERVAL|DOUBLE|DECIMAL|DATE(TIME)?|ENUM|VAR_STRING|FLOAT|LONG(LONG)?)|TIME_STAMP_FLAG|INIT_COMMAND|ZEROFILL_FLAG|ON_UPDATE_NOW_FLAG|OPT_(NET_((CMD|READ)_BUFFER_SIZE)|CONNECT_TIMEOUT|INT_AND_FLOAT_NATIVE|LOCAL_INFILE)|DEBUG_TRACE_ENABLED|DATA_TRUNCATED|USE_RESULT|(ENUM|(PART|PRI|UNIQUE)_KEY|UNSIGNED)_FLAG|ASSOC|ASYNC|AUTO_INCREMENT_FLAG)|MCRYPT_(RC([26])|RIJNDAEL_(128|192|256)|RAND|GOST|XTEA|MODE_(STREAM|NOFB|CBC|CFB|OFB|ECB)|MARS|BLOWFISH(_COMPAT)?|SERPENT|SKIPJACK|SAFER(64|128|PLUS)|CRYPT|CAST_(128|256)|TRIPLEDES|THREEWAY|TWOFISH|IDEA|(3)?DES|DECRYPT|DEV_(U)?RANDOM|PANAMA|ENCRYPT|ENIGNA|WAKE|LOKI97|ARCFOUR(_IV)?)|STREAM_(REPORT_ERRORS|MUST_SEEK|MKDIR_RECURSIVE|BUFFER_(NONE|FULL|LINE)|SHUT_(RD)?WR|SOCK_(RDM|RAW|STREAM|SEQPACKET|DGRAM)|SERVER_(BIND|LISTEN)|NOTIFY_(REDIRECTED|RESOLVE|MIME_TYPE_IS|SEVERITY_(INFO|ERR|WARN)|COMPLETED|CONNECT|PROGRESS|FILE_SIZE_IS|FAILURE|AUTH_(RE(?:QUIRED|SULT)))|CRYPTO_METHOD_((SSLv2(3)?|SSLv3|TLS)_(CLIENT|SERVER))|CLIENT_((ASYNC_)?CONNECT|PERSISTENT)|CAST_(AS_STREAM|FOR_SELECT)|(I(?:GNORE|S))_URL|IPPROTO_(RAW|TCP|ICMP|IP|UDP)|OOB|OPTION_(READ_(BUFFER|TIMEOUT)|BLOCKING|WRITE_BUFFER)|URL_STAT_(LINK|QUIET)|USE_PATH|PEEK|PF_(INET(6)?|UNIX)|ENFORCE_SAFE_MODE|FILTER_(ALL|READ|WRITE))|SUNFUNCS_RET_(DOUBLE|STRING|TIMESTAMP)|SQLITE_(READONLY|ROW|MISMATCH|MISUSE|BOTH|BUSY|SCHEMA|NOMEM|NOTFOUND|NOTADB|NOLFS|NUM|CORRUPT|CONSTRAINT|CANTOPEN|TOOBIG|INTERRUPT|INTERNAL|IOERR|OK|DONE|PROTOCOL|PERM|ERROR|EMPTY|FORMAT|FULL|LOCKED|ABORT|ASSOC|AUTH)|SQLITE3_(BOTH|BLOB|NUM|NULL|TEXT|INTEGER|OPEN_(READ(ONLY|WRITE)|CREATE)|FLOAT_ASSOC)|CURL(M_(BAD_((EASY)?HANDLE)|CALL_MULTI_PERFORM|INTERNAL_ERROR|OUT_OF_MEMORY|OK)|MSG_DONE|SSH_AUTH_(HOST|NONE|DEFAULT|PUBLICKEY|PASSWORD|KEYBOARD)|CLOSEPOLICY_(SLOWEST|CALLBACK|OLDEST|LEAST_(RECENTLY_USED|TRAFFIC)|INFO_(REDIRECT_(COUNT|TIME)|REQUEST_SIZE|SSL_VERIFYRESULT|STARTTRANSFER_TIME|(S(?:IZE|PEED))_((?:DOWN|UP)LOAD)|HTTP_CODE|HEADER_(OUT|SIZE)|NAMELOOKUP_TIME|CONNECT_TIME|CONTENT_(TYPE|LENGTH_((?:DOWN|UP)LOAD))|CERTINFO|TOTAL_TIME|PRIVATE|PRETRANSFER_TIME|EFFECTIVE_URL|FILETIME)|OPT_(RESUME_FROM|RETURNTRANSFER|REDIR_PROTOCOLS|REFERER|READ(DATA|FUNCTION)|RANGE|RANDOM_FILE|MAX(CONNECTS|REDIRS)|BINARYTRANSFER|BUFFERSIZE|SSH_(HOST_PUBLIC_KEY_MD5|(P(?:RIVATE|UBLIC))_KEYFILE)|AUTH_TYPES)|SSL(CERT(TYPE|PASSWD)?|ENGINE(_DEFAULT)?|VERSION|KEY(TYPE|PASSWD)?)|SSL_(CIPHER_LIST|VERIFY(HOST|PEER))|STDERR|HTTP(GET|HEADER|200ALIASES|_VERSION|PROXYTUNNEL|AUTH)|HEADER(FUNCTION)?|NO(BODY|SIGNAL|PROGRESS)|NETRC|CRLF|CONNECTTIMEOUT(_MS)?|COOKIE(SESSION|JAR|FILE)?|CUSTOMREQUEST|CERTINFO|CLOSEPOLICY|CA(INFO|PATH)|TRANSFERTEXT|TCP_NODELAY|TIME(CONDITION|OUT(_MS)?|VALUE)|INTERFACE|INFILE(SIZE)?|IPRESOLVE|DNS_(CACHE_TIMEOUT|USE_GLOBAL_CACHE)|URL|USER(AGENT|PWD)|UNRESTRICTED_AUTH|UPLOAD|PRIVATE|PROGRESSFUNCTION|PROXY(TYPE|USERPWD|PORT|AUTH)?|PROTOCOLS|PORT|POST(REDIR|QUOTE|FIELDS)?|PUT|EGDSOCKET|ENCODING|VERBOSE|KRB4LEVEL|KEYPASSWD|QUOTE|FRESH_CONNECT|FTP(APPEND|LISTONLY|PORT|SSLAUTH)|FTP_(SSL|SKIP_PASV_IP|CREATE_MISSING_DIRS|USE_EP(RT|SV)|FILEMETHOD)|FILE(TIME)?|FORBID_REUSE|FOLLOWLOCATION|FAILONERROR|WRITE(FUNCTION|HEADER)|LOW_SPEED_(LIMIT|TIME)|AUTOREFERER)|PROXY_(HTTP|SOCKS([45]))|PROTO_(SCP|SFTP|HTTP(S)?|TELNET|TFTP|DICT|FTP(S)?|FILE|LDAP(S)?|ALL)|E_((RE(?:CV|AD))_ERROR|GOT_NOTHING|MALFORMAT_USER|BAD_(CONTENT_ENCODING|CALLING_ORDER|PASSWORD_ENTERED|FUNCTION_ARGUMENT)|SSH|SSL_(CIPHER|CONNECT_ERROR|CERTPROBLEM|CACERT|PEER_CERTIFICATE|ENGINE_(NOTFOUND|SETFAILED))|SHARE_IN_USE|SEND_ERROR|HTTP_(RANGE_ERROR|NOT_FOUND|PORT_FAILED|POST_ERROR)|COULDNT_(RESOLVE_(HOST|PROXY)|CONNECT)|TOO_MANY_REDIRECTS|TELNET_OPTION_SYNTAX|OBSOLETE|OUT_OF_MEMORY|OPERATION|TIMEOUTED|OK|URL_MALFORMAT(_USER)?|UNSUPPORTED_PROTOCOL|UNKNOWN_TELNET_OPTION|PARTIAL_FILE|FTP_(BAD_DOWNLOAD_RESUME|SSL_FAILED|COULDNT_(RETR_FILE|GET_SIZE|STOR_FILE|SET_(BINARY|ASCII)|USE_REST)|CANT_(GET_HOST|RECONNECT)|USER_PASSWORD_INCORRECT|PORT_FAILED|QUOTE_ERROR|WRITE_ERROR|WEIRD_((PASS|PASV|SERVER|USER)_REPLY|227_FORMAT)|ACCESS_DENIED)|FILESIZE_EXCEEDED|FILE_COULDNT_READ_FILE|FUNCTION_NOT_FOUND|FAILED_INIT|WRITE_ERROR|LIBRARY_NOT_FOUND|LDAP_(SEARCH_FAILED|CANNOT_BIND|INVALID_URL)|ABORTED_BY_CALLBACK)|VERSION_NOW|FTP(METHOD_(MULTI|SINGLE|NO)CWD|SSL_(ALL|NONE|CONTROL|TRY)|AUTH_(DEFAULT|SSL|TLS))|AUTH_(ANY(SAFE)?|BASIC|DIGEST|GSSNEGOTIATE|NTLM))|CURL_(HTTP_VERSION_(1_([01])|NONE)|NETRC_(REQUIRED|IGNORED|OPTIONAL)|TIMECOND_(IF(UN)?MODSINCE|LASTMOD)|IPRESOLVE_(V([46])|WHATEVER)|VERSION_(SSL|IPV6|KERBEROS4|LIBZ))|IMAGETYPE_(GIF|XBM|BMP|SWF|COUNT|TIFF_(MM|II)|ICO|IFF|UNKNOWN|JB2|JPX|JP2|JPC|JPEG(2000)?|PSD|PNG|WBMP)|INPUT_(REQUEST|GET|SERVER|SESSION|COOKIE|POST|ENV)|ICONV_(MIME_DECODE_(STRICT|CONTINUE_ON_ERROR)|IMPL|VERSION)|DNS_(MX|SRV|SOA|HINFO|NS|NAPTR|CNAME|TXT|PTR|ANY|ALL|AAAA|A(6)?)|DOM(STRING_SIZE_ERR)|DOM_((SYNTAX|HIERARCHY_REQUEST|NO_((?:MODIFICATION|DATA)_ALLOWED)|NOT_(FOUND|SUPPORTED)|NAMESPACE|INDEX_SIZE|USE_ATTRIBUTE|VALID_(MODIFICATION|STATE|CHARACTER|ACCESS)|PHP|VALIDATION|WRONG_DOCUMENT)_ERR)|JSON_(HEX_(TAG|QUOT|AMP|APOS)|NUMERIC_CHECK|ERROR_(SYNTAX|STATE_MISMATCH|NONE|CTRL_CHAR|DEPTH|UTF8)|FORCE_OBJECT)|PREG_((D_UTF8(_OFFSET)?|NO|INTERNAL|(BACKTRACK|RECURSION)_LIMIT)_ERROR|GREP_INVERT|SPLIT_(NO_EMPTY|(DELIM|OFFSET)_CAPTURE)|SET_ORDER|OFFSET_CAPTURE|PATTERN_ORDER)|PSFS_(PASS_ON|ERR_FATAL|FEED_ME|FLAG_(NORMAL|FLUSH_(CLOSE|INC)))|PCRE_VERSION|POSIX_(([FRWX])_OK|S_IF(REG|BLK|SOCK|CHR|IFO))|FNM_(NOESCAPE|CASEFOLD|PERIOD|PATHNAME)|FILTER_(REQUIRE_(SCALAR|ARRAY)|NULL_ON_FAILURE|CALLBACK|DEFAULT|UNSAFE_RAW|SANITIZE_(MAGIC_QUOTES|STRING|STRIPPED|SPECIAL_CHARS|NUMBER_(INT|FLOAT)|URL|EMAIL|ENCODED|FULL_SPCIAL_CHARS)|VALIDATE_(REGEXP|BOOLEAN|INT|IP|URL|EMAIL|FLOAT)|FORCE_ARRAY|FLAG_(SCHEME_REQUIRED|STRIP_(BACKTICK|HIGH|LOW)|HOST_REQUIRED|NONE|NO_(RES|PRIV)_RANGE|ENCODE_QUOTES|IPV([46])|PATH_REQUIRED|EMPTY_STRING_NULL|ENCODE_(HIGH|LOW|AMP)|QUERY_REQUIRED|ALLOW_(SCIENTIFIC|HEX|THOUSAND|OCTAL|FRACTION)))|FILE_(BINARY|SKIP_EMPTY_LINES|NO_DEFAULT_CONTEXT|TEXT|IGNORE_NEW_LINES|USE_INCLUDE_PATH|APPEND)|FILEINFO_(RAW|MIME(_(ENCODING|TYPE))?|SYMLINK|NONE|CONTINUE|DEVICES|PRESERVE_ATIME)|FORCE_(DEFLATE|GZIP)|LIBXML_(XINCLUDE|NSCLEAN|NO(XMLDECL|BLANKS|NET|CDATA|ERROR|EMPTYTAG|ENT|WARNING)|COMPACT|DTD(VALID|LOAD|ATTR)|((DOTTED|LOADED)_)?VERSION|PARSEHUGE|ERR_(NONE|ERROR|FATAL|WARNING)))\\b", "name": "support.constant.ext.php" }, { "captures": { "1": { "name": "punctuation.separator.inheritance.php" } }, "match": "(\\\\)?\\b(T_(RETURN|REQUIRE(_ONCE)?|GOTO|GLOBAL|(MINUS|MOD|MUL|XOR)_EQUAL|METHOD_C|ML_COMMENT|BREAK|BOOL_CAST|BOOLEAN_(AND|OR)|BAD_CHARACTER|SR(_EQUAL)?|STRING(_CAST|VARNAME)?|START_HEREDOC|STATIC|SWITCH|SL(_EQUAL)?|HALT_COMPILER|NS_(C|SEPARATOR)|NUM_STRING|NEW|NAMESPACE|CHARACTER|COMMENT|CONSTANT(_ENCAPSED_STRING)?|CONCAT_EQUAL|CONTINUE|CURLY_OPEN|CLOSE_TAG|CLONE|CLASS(_C)?|CASE|CATCH|TRY|THROW|IMPLEMENTS|ISSET|IS_((GREATER|SMALLER)_OR_EQUAL|(NOT_)?(IDENTICAL|EQUAL))|INSTANCEOF|INCLUDE(_ONCE)?|INC|INT_CAST|INTERFACE|INLINE_HTML|IF|OR_EQUAL|OBJECT_(CAST|OPERATOR)|OPEN_TAG(_WITH_ECHO)?|OLD_FUNCTION|DNUMBER|DIR|DIV_EQUAL|DOC_COMMENT|DOUBLE_(ARROW|CAST|COLON)|DOLLAR_OPEN_CURLY_BRACES|DO|DEC|DECLARE|DEFAULT|USE|UNSET(_CAST)?|PRINT|PRIVATE|PROTECTED|PUBLIC|PLUS_EQUAL|PAAMAYIM_NEKUDOTAYIM|EXTENDS|EXIT|EMPTY|ENCAPSED_AND_WHITESPACE|END(SWITCH|IF|DECLARE|FOR(EACH)?|WHILE)|END_HEREDOC|ECHO|EVAL|ELSE(IF)?|VAR(IABLE)?|FINAL|FILE|FOR(EACH)?|FUNC_C|FUNCTION|WHITESPACE|WHILE|LNUMBER|LIST|LINE|LOGICAL_(AND|OR|XOR)|ARRAY_(CAST)?|ABSTRACT|AS|AND_EQUAL))\\b", "name": "support.constant.parser-token.php" }, { "match": "(?i)[_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*", "name": "constant.other.php" } ] }, "function-call": { "patterns": [ { "begin": "(?i)(\\\\?\\b[_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*(?:\\\\[_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*)+)\\s*(\\()", "beginCaptures": { "1": { "patterns": [ { "include": "#namespace" }, { "match": "(?i)[_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*", "name": "entity.name.function.php" } ] }, "2": { "name": "punctuation.definition.arguments.begin.bracket.round.php" } }, "end": "\\)|(?=\\?>)", "endCaptures": { "0": { "name": "punctuation.definition.arguments.end.bracket.round.php" } }, "name": "meta.function-call.php", "patterns": [ { "include": "#language" } ] }, { "begin": "(?i)(\\\\)?\\b([_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*)\\s*(\\()", "beginCaptures": { "1": { "patterns": [ { "include": "#namespace" } ] }, "2": { "patterns": [ { "include": "#support" }, { "match": "(?i)[_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*", "name": "entity.name.function.php" } ] }, "3": { "name": "punctuation.definition.arguments.begin.bracket.round.php" } }, "end": "\\)|(?=\\?>)", "endCaptures": { "0": { "name": "punctuation.definition.arguments.end.bracket.round.php" } }, "name": "meta.function-call.php", "patterns": [ { "include": "#language" } ] }, { "match": "(?i)\\b(print|echo)\\b", "name": "support.function.construct.output.php" } ] }, "function-parameters": { "patterns": [ { "include": "#comments" }, { "match": ",", "name": "punctuation.separator.delimiter.php" }, { "begin": "(?i)(array)\\s+((&)?\\s*(\\$+)[_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*)\\s*(=)\\s*(array)\\s*(\\()", "beginCaptures": { "1": { "name": "storage.type.php" }, "2": { "name": "variable.other.php" }, "3": { "name": "storage.modifier.reference.php" }, "4": { "name": "punctuation.definition.variable.php" }, "5": { "name": "keyword.operator.assignment.php" }, "6": { "name": "support.function.construct.php" }, "7": { "name": "punctuation.definition.array.begin.bracket.round.php" } }, "contentName": "meta.array.php", "end": "\\)", "endCaptures": { "0": { "name": "punctuation.definition.array.end.bracket.round.php" } }, "name": "meta.function.parameter.array.php", "patterns": [ { "include": "#comments" }, { "include": "#strings" }, { "include": "#numbers" } ] }, { "captures": { "1": { "name": "storage.type.php" }, "10": { "name": "invalid.illegal.non-null-typehinted.php" }, "2": { "name": "variable.other.php" }, "3": { "name": "storage.modifier.reference.php" }, "4": { "name": "punctuation.definition.variable.php" }, "5": { "name": "keyword.operator.assignment.php" }, "6": { "name": "constant.language.php" }, "7": { "name": "punctuation.section.array.begin.php" }, "8": { "patterns": [ { "include": "#parameter-default-types" } ] }, "9": { "name": "punctuation.section.array.end.php" } }, "match": "(?i)(array|callable)\\s+((&)?\\s*(\\$+)[_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*)(?:\\s*(=)\\s*(?:(null)|(\\[)((?>[^]\\[]+|\\[\\g<8>])*)(])|(\\S*?\\(\\)|\\S*?)))?\\s*(?=[),]|/[*/]|#|$)", "name": "meta.function.parameter.array.php" }, { "begin": "(?i)(\\\\?(?:[_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*\\\\)*)([_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*)\\s+((&)?\\s*(\\.\\.\\.)?(\\$+)[_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*)", "beginCaptures": { "1": { "name": "support.other.namespace.php", "patterns": [ { "match": "(?i)[_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*", "name": "storage.type.php" }, { "match": "\\\\", "name": "punctuation.separator.inheritance.php" } ] }, "2": { "name": "storage.type.php" }, "3": { "name": "variable.other.php" }, "4": { "name": "storage.modifier.reference.php" }, "5": { "name": "keyword.operator.variadic.php" }, "6": { "name": "punctuation.definition.variable.php" } }, "end": "(?=[),]|/[*/]|#)", "name": "meta.function.parameter.typehinted.php", "patterns": [ { "begin": "=", "beginCaptures": { "0": { "name": "keyword.operator.assignment.php" } }, "end": "(?=[),]|/[*/]|#)", "patterns": [ { "include": "#language" } ] } ] }, { "captures": { "1": { "name": "variable.other.php" }, "2": { "name": "storage.modifier.reference.php" }, "3": { "name": "keyword.operator.variadic.php" }, "4": { "name": "punctuation.definition.variable.php" } }, "match": "(?i)((&)?\\s*(\\.\\.\\.)?(\\$+)[_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*)\\s*(?=[),]|/[*/]|#|$)", "name": "meta.function.parameter.no-default.php" }, { "begin": "(?i)((&)?\\s*(\\.\\.\\.)?(\\$+)[_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*)\\s*(=)\\s*(?:(\\[)((?>[^]\\[]+|\\[\\g<6>])*)(]))?", "beginCaptures": { "1": { "name": "variable.other.php" }, "2": { "name": "storage.modifier.reference.php" }, "3": { "name": "keyword.operator.variadic.php" }, "4": { "name": "punctuation.definition.variable.php" }, "5": { "name": "keyword.operator.assignment.php" }, "6": { "name": "punctuation.section.array.begin.php" }, "7": { "patterns": [ { "include": "#parameter-default-types" } ] }, "8": { "name": "punctuation.section.array.end.php" } }, "end": "(?=[),]|/[*/]|#)", "name": "meta.function.parameter.default.php", "patterns": [ { "include": "#parameter-default-types" } ] } ] }, "heredoc": { "patterns": [ { "begin": "(?i)(?=<<<\\s*(\"?)([_a-z\\x7F-ÿ][0-9_a-z\\x7F-ÿ]*)(\\1)\\s*$)", "end": "(?!\\G)", "name": "string.unquoted.heredoc.php", "patterns": [ { "include": "#heredoc_interior" } ] }, { "begin": "(?=<<<\\s*'([A-Z_a-z]+[0-9A-Z_a-z]*)'\\s*$)", "end": "(?!\\G)", "name": "string.unquoted.nowdoc.php", "patterns": [ { "include": "#nowdoc_interior" } ] } ] }, "heredoc_interior": { "patterns": [ { "begin": "(<<<)\\s*(\"?)(HTML)(\\2)(\\s*)$", "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.php" }, "1": { "name": "punctuation.definition.string.php" }, "3": { "name": "keyword.operator.heredoc.php" }, "5": { "name": "invalid.illegal.trailing-whitespace.php" } }, "contentName": "text.html", "end": "^(\\3)\\b", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" }, "1": { "name": "keyword.operator.heredoc.php" } }, "name": "meta.embedded.html", "patterns": [ { "include": "#interpolation" }, { "include": "text.html.basic" } ] }, { "begin": "(<<<)\\s*(\"?)(XML)(\\2)(\\s*)$", "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.php" }, "1": { "name": "punctuation.definition.string.php" }, "3": { "name": "keyword.operator.heredoc.php" }, "5": { "name": "invalid.illegal.trailing-whitespace.php" } }, "contentName": "text.xml", "end": "^(\\3)\\b", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" }, "1": { "name": "keyword.operator.heredoc.php" } }, "name": "meta.embedded.xml", "patterns": [ { "include": "#interpolation" }, { "include": "text.xml" } ] }, { "begin": "(<<<)\\s*(\"?)(SQL)(\\2)(\\s*)$", "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.php" }, "1": { "name": "punctuation.definition.string.php" }, "3": { "name": "keyword.operator.heredoc.php" }, "5": { "name": "invalid.illegal.trailing-whitespace.php" } }, "contentName": "source.sql", "end": "^(\\3)\\b", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" }, "1": { "name": "keyword.operator.heredoc.php" } }, "name": "meta.embedded.sql", "patterns": [ { "include": "#interpolation" }, { "include": "source.sql" } ] }, { "begin": "(<<<)\\s*(\"?)(J(?:AVASCRIPT|S))(\\2)(\\s*)$", "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.php" }, "1": { "name": "punctuation.definition.string.php" }, "3": { "name": "keyword.operator.heredoc.php" }, "5": { "name": "invalid.illegal.trailing-whitespace.php" } }, "contentName": "source.js", "end": "^(\\3)\\b", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" }, "1": { "name": "keyword.operator.heredoc.php" } }, "name": "meta.embedded.js", "patterns": [ { "include": "#interpolation" }, { "include": "source.js" } ] }, { "begin": "(<<<)\\s*(\"?)(JSON)(\\2)(\\s*)$", "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.php" }, "1": { "name": "punctuation.definition.string.php" }, "3": { "name": "keyword.operator.heredoc.php" }, "5": { "name": "invalid.illegal.trailing-whitespace.php" } }, "contentName": "source.json", "end": "^(\\3)\\b", "endCaptures": { "0": { "name": "punctuation.section.embedded.end.php" }, "1": { "name": "keyword.operator.heredoc.php" } }, "name": "meta.embedded.json", "patterns": [ { "include": "#interpolation" }, { "include": "source.json" } ] }, { "begin": "(<<<)\\s*(\"?)(CSS)(\\2)(\\s*)$", "beginCaptures": { "0": { "name": "punctuation.section.embedded.begin.php" }, "1": { "name": "punctuation.definition.string.php" }, "3": { "name": "keyword.operator.heredoc.php" }, "5": { "name": "invalid.illegal.trailing-whitespace.php" } }, "contentName": "source.css",