21 lines
112 KiB
JavaScript
21 lines
112 KiB
JavaScript
|
import html from './html.mjs';
|
||
|
import xml from './xml.mjs';
|
||
|
import sql from './sql.mjs';
|
||
|
import javascript from './javascript.mjs';
|
||
|
import json from './json.mjs';
|
||
|
import css from './css.mjs';
|
||
|
import './java.mjs';
|
||
|
|
||
|
const lang = Object.freeze({ "displayName": "PHP", "name": "php", "patterns": [{ "include": "#attribute" }, { "include": "#comments" }, { "captures": { "1": { "name": "keyword.other.namespace.php" }, "2": { "name": "entity.name.type.namespace.php", "patterns": [{ "match": "\\\\", "name": "punctuation.separator.inheritance.php" }] } }, "match": "(?i)(?:^|(?<=<\\?php))\\s*(namespace)\\s+([a-z0-9_\\x{7f}-\\x{10ffff}\\\\]+)(?=\\s*;)", "name": "meta.namespace.php" }, { "begin": "(?i)(?:^|(?<=<\\?php))\\s*(namespace)\\s+", "beginCaptures": { "1": { "name": "keyword.other.namespace.php" } }, "end": "(?<=})|(?=\\?>)", "name": "meta.namespace.php", "patterns": [{ "include": "#comments" }, { "captures": { "0": { "patterns": [{ "match": "\\\\", "name": "punctuation.separator.inheritance.php" }] } }, "match": "(?i)[a-z0-9_\\x{7f}-\\x{10ffff}\\\\]+", "name": "entity.name.type.namespace.php" }, { "begin": "{", "beginCaptures": { "0": { "name": "punctuation.definition.namespace.begin.bracket.curly.php" } }, "end": "}|(?=\\?>)", "endCaptures": { "0": { "name": "punctuation.definition.namespace.end.bracket.curly.php" } }, "patterns": [{ "include": "$self" }] }, { "match": "[^\\s]+", "name": "invalid.illegal.identifier.php" }] }, { "match": "\\s+(?=use\\b)" }, { "begin": "(?i)\\buse\\b", "beginCaptures": { "0": { "name": "keyword.other.use.php" } }, "end": "(?<=})|(?=;)|(?=\\?>)", "name": "meta.use.php", "patterns": [{ "match": "\\b(const|function)\\b", "name": "storage.type.${1:/downcase}.php" }, { "begin": "{", "beginCaptures": { "0": { "name": "punctuation.definition.use.begin.bracket.curly.php" } }, "end": "}", "endCaptures": { "0": { "name": "punctuation.definition.use.end.bracket.curly.php" } }, "patterns": [{ "include": "#scope-resolution" }, { "captures": { "1": { "name": "keyword.other.use-as.php" }, "2": { "name": "storage.modifier.php" }, "3": { "name": "entity.other.alias.php" } }, "match": "(?xi)\n\\b(as)\n\\s+(final|abstract|public|private|protected|static)\n\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)" }, { "captures": { "1": { "name": "keyword.other.use-as.php" }, "2": { "patterns": [{ "match": "^(?:final|abstract|public|private|protected|static)$", "name": "storage.modifier.php" }, { "match": ".+", "name": "entity.other.alias.php" }] } }, "match": "(?xi)\n\\b(as)\n\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)" }, { "captures": { "1": { "name": "keyword.other.use-insteadof.php" }, "2": { "name": "support.class.php" } }, "match": "(?i)\\b(insteadof)\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)" }, { "match": ";", "name": "punctuation.terminator.expression.php" }, { "include": "#use-inner" }] }, { "include": "#use-inner" }] }, { "begin": "(?ix)\n\\b(trait)\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)", "beginCaptures": { "1": { "name": "storage.type.trait.php" }, "2": { "name": "entity.name.type.trait.php" } }, "end": "}|(?=\\?>)", "endCaptures": { "0": { "name": "punctuation.definition.trait.end.bracket.curly.php" } }, "name": "meta.trait.php", "patterns": [{ "include": "#comments" }, { "begin": "{", "beginCaptures": { "0": { "name": "punctuation.definition.trait.begin.bracket.curly.php" } }, "contentName": "meta.trait.body.php", "end": "(?=}|\\?>)", "patterns": [{ "include": "$self" }] }] }, { "begin": "(?ix)\n\\b(interface)\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)", "beginCaptures": { "1": { "name": "storage.type.interface.php" }, "2": { "name": "entity.name.type.interface.php" } }, "end": "}|(?=\\?>)", "endCaptures": { "0": { "name": "punctuation.definition.interface.end.bracket.curly.php" } }, "name": "meta.interface.php", "patterns": [{ "include": "#comments" }, { "include": "#interface-extends" }, { "begin": "{", "beginCaptures": { "0": { "name": "punctuation.definition.interface.begin.bracket.curly.php" } }, "contentName": "meta.interface.body.php", "end": "(?=}|\\?>)", "patterns": [{ "include": "#class-constant" }, { "include": "$self" }] }] }, { "begin": "(?ix)\n\\b(enum)\\s+([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)\n(?:
|
||
|
var php = [
|
||
|
...html,
|
||
|
...xml,
|
||
|
...sql,
|
||
|
...javascript,
|
||
|
...json,
|
||
|
...css,
|
||
|
lang
|
||
|
];
|
||
|
|
||
|
export { php as default };
|