astro-ghostcms/.pnpm-store/v3/files/bf/9277a0ec88e575903daf97b6b40...

36 lines
20 KiB
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
import html from './html.mjs';
const lang$3 = Object.freeze({ "injectionSelector": "L:text.html -comment", "name": "angular-expression", "patterns": [{ "include": "#ngExpression" }], "repository": { "arrayLiteral": { "begin": "\\[", "beginCaptures": { "0": { "name": "meta.brace.square.ts" } }, "end": "\\]", "endCaptures": { "0": { "name": "meta.brace.square.ts" } }, "name": "meta.array.literal.ts", "patterns": [{ "include": "#ngExpression" }, { "include": "#punctuationComma" }] }, "booleanLiteral": { "patterns": [{ "match": "(?<!\\.|\\$)\\btrue\\b(?!\\$)", "name": "constant.language.boolean.true.ts" }, { "match": "(?<!\\.|\\$)\\bfalse\\b(?!\\$)", "name": "constant.language.boolean.false.ts" }] }, "expressionOperator": { "patterns": [{ "captures": { "1": { "name": "keyword.operator.logical.ts" }, "2": { "name": "entity.name.function.pipe.ng" } }, "match": "((?<!\\|)\\|(?!\\|))\\s?([a-zA-Z0-9\\-\\_\\$]*)" }, { "match": "(?<!\\.|\\$)\\b(let)\\b(?!\\$)", "name": "storage.type.ts" }, { "match": "(?<!\\.|\\$)\\b(await)\\b(?!\\$)", "name": "keyword.control.flow.ts" }, { "match": "(?<!\\.|\\$)\\bdelete\\b(?!\\$)", "name": "keyword.operator.expression.delete.ts" }, { "match": "(?<!\\.|\\$)\\bin\\b(?!\\$)", "name": "keyword.operator.expression.in.ts" }, { "match": "(?<!\\.|\\$)\\bof\\b(?!\\$)", "name": "keyword.operator.expression.of.ts" }, { "match": "(?<!\\.|\\$)\\bif\\b(?!\\$)", "name": "keyword.control.if.ts" }, { "match": "(?<!\\.|\\$)\\belse\\b(?!\\$)", "name": "keyword.control.else.ts" }, { "match": "(?<!\\.|\\$)\\bthen\\b(?!\\$)", "name": "keyword.control.then.ts" }, { "match": "(?<!\\.|\\$)\\binstanceof\\b(?!\\$)", "name": "keyword.operator.expression.instanceof.ts" }, { "match": "(?<!\\.|\\$)\\bnew\\b(?!\\$)", "name": "keyword.operator.new.ts" }, { "match": "(?<!\\.|\\$)\\bvoid\\b(?!\\$)", "name": "keyword.operator.expression.void.ts" }, { "begin": "(?<!\\.|\\$)\\bas\\b(?!\\$)", "beginCaptures": { "0": { "name": "storage.type.as.ts" } }, "end": `(?=$|"|'|[;,:})\\]])`, "patterns": [{ "include": "#type" }] }, { "match": "\\*=|(?<!\\()\\/=|%=|\\+=|\\-=", "name": "keyword.operator.assignment.compound.ts" }, { "match": "\\&=|\\^=|<<=|>>=|>>>=|\\|=", "name": "keyword.operator.assignment.compound.bitwise.ts" }, { "match": "<<|>>>|>>", "name": "keyword.operator.bitwise.shift.ts" }, { "match": "===|!==|==|!=", "name": "keyword.operator.comparison.ts" }, { "match": "<=|>=|<>|<|>", "name": "keyword.operator.relational.ts" }, { "match": "\\!|&&|\\?\\?|\\|\\|", "name": "keyword.operator.logical.ts" }, { "match": "\\&|~|\\^|\\|", "name": "keyword.operator.bitwise.ts" }, { "match": "\\=", "name": "keyword.operator.assignment.ts" }, { "match": "--", "name": "keyword.operator.decrement.ts" }, { "match": "\\+\\+", "name": "keyword.operator.increment.ts" }, { "match": "\\%|\\*|\\/|-|\\+", "name": "keyword.operator.arithmetic.ts" }, { "captures": { "1": { "name": "keyword.operator.arithmetic.ts" } }, "match": "(?<=[_$[:alnum:]])\\s*(\\/)(?![\\/*])" }, { "include": "#typeofOperator" }] }, "functionCall": { "begin": "(?=(\\??\\.\\s*)?([_$[:alpha:]][_$[:alnum:]]*)\\s*(<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\()", "end": "(?<=\\))(?!(\\??\\.\\s*)?([_$[:alpha:]][_$[:alnum:]]*)\\s*(<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\()", "patterns": [{ "match": "\\?", "name": "punctuation.accessor.ts" }, { "match": "\\.", "name": "punctuation.accessor.ts" }, { "match": "([_$[:alpha:]][_$[:alnum:]]*)", "name": "entity.name.function.ts" }, { "begin": "\\<", "beginCaptures": { "0": { "name": "punctuation.definition.typeparameters.begin.ts" } }, "end": "\\>", "endCaptures": { "0": { "name": "punctuation.definition.typeparameters.end.ts" } }, "name": "meta.type.parameters.ts", "patterns": [{ "include": "#type" }, { "include": "#punctuationComma" }] }, { "include": "#parenExpression" }] }, "functionParameters": { "begin": "\\(", "beginCaptures": { "0": { "name": "punctuation.definition.parameters.begin.ts" } }, "end": "\\)", "endCaptures": { "0": { "name": "punctuation.definition.parameters.end.ts" } }, "name": "meta.parameters.ts", "patterns": [{ "include": "#decorator" }, { "include": "#parameterName" }, { "in
var angular_expression = [
lang$3
];
const lang$2 = Object.freeze({ "injectTo": ["text.html.derivative", "text.html.derivative.ng", "source.ts.ng"], "injectionSelector": "L:text.html -comment", "name": "angular-template", "patterns": [{ "include": "#interpolation" }, { "include": "#propertyBinding" }, { "include": "#eventBinding" }, { "include": "#twoWayBinding" }, { "include": "#templateBinding" }], "repository": { "bindingKey": { "patterns": [{ "captures": { "1": { "name": "punctuation.definition.ng-binding-name.begin.html" }, "2": { "name": "entity.other.ng-binding-name.$2.html", "patterns": [{ "match": "\\.", "name": "punctuation.accessor.html" }] }, "3": { "name": "punctuation.definition.ng-binding-name.end.html" } }, "match": "([\\[\\(]{1,2}|\\*)(?:\\s*)(@?[-_a-zA-Z0-9.$]*%?)(?:\\s*)([\\]\\)]{1,2})?" }] }, "eventBinding": { "begin": `(\\(\\s*@?[-_a-zA-Z0-9.$]*\\s*\\))(=)(["'])`, "beginCaptures": { "1": { "name": "entity.other.attribute-name.html entity.other.ng-binding-name.event.html", "patterns": [{ "include": "#bindingKey" }] }, "2": { "name": "punctuation.separator.key-value.html" }, "3": { "name": "string.quoted.html punctuation.definition.string.begin.html" } }, "contentName": "expression.ng", "end": "\\3", "endCaptures": { "0": { "name": "string.quoted.html punctuation.definition.string.end.html" } }, "name": "meta.ng-binding.event.html", "patterns": [{ "include": "expression.ng" }] }, "interpolation": { "begin": "{{", "beginCaptures": { "0": { "name": "punctuation.definition.block.ts" } }, "contentName": "expression.ng", "end": "}}", "endCaptures": { "0": { "name": "punctuation.definition.block.ts" } }, "patterns": [{ "include": "expression.ng" }] }, "propertyBinding": { "begin": `(\\[\\s*@?[-_a-zA-Z0-9.$]*%?\\s*])(=)(["'])`, "beginCaptures": { "1": { "name": "entity.other.attribute-name.html entity.other.ng-binding-name.property.html", "patterns": [{ "include": "#bindingKey" }] }, "2": { "name": "punctuation.separator.key-value.html" }, "3": { "name": "string.quoted.html punctuation.definition.string.begin.html" } }, "contentName": "expression.ng", "end": "\\3", "endCaptures": { "0": { "name": "string.quoted.html punctuation.definition.string.end.html" } }, "name": "meta.ng-binding.property.html", "patterns": [{ "include": "expression.ng" }] }, "templateBinding": { "begin": `(\\*[-_a-zA-Z0-9.$]*)(=)(["'])`, "beginCaptures": { "1": { "name": "entity.other.attribute-name.html entity.other.ng-binding-name.template.html", "patterns": [{ "include": "#bindingKey" }] }, "2": { "name": "punctuation.separator.key-value.html" }, "3": { "name": "string.quoted.html punctuation.definition.string.begin.html" } }, "contentName": "expression.ng", "end": "\\3", "endCaptures": { "0": { "name": "string.quoted.html punctuation.definition.string.end.html" } }, "name": "meta.ng-binding.template.html", "patterns": [{ "include": "expression.ng" }] }, "twoWayBinding": { "begin": `(\\[\\s*\\(\\s*@?[-_a-zA-Z0-9.$]*\\s*\\)\\s*\\])(=)(["'])`, "beginCaptures": { "1": { "name": "entity.other.attribute-name.html entity.other.ng-binding-name.two-way.html", "patterns": [{ "include": "#bindingKey" }] }, "2": { "name": "punctuation.separator.key-value.html" }, "3": { "name": "string.quoted.html punctuation.definition.string.begin.html" } }, "contentName": "expression.ng", "end": "\\3", "endCaptures": { "0": { "name": "string.quoted.html punctuation.definition.string.end.html" } }, "name": "meta.ng-binding.two-way.html", "patterns": [{ "include": "expression.ng" }] } }, "scopeName": "template.ng", "embeddedLangs": ["angular-expression"] });
var angular_template = [
...angular_expression,
lang$2
];
const lang$1 = Object.freeze({ "injectTo": ["text.html.derivative", "text.html.derivative.ng", "source.ts.ng"], "injectionSelector": "L:text.html -comment -expression.ng -meta.tag -source.css -source.js", "name": "angular-template-blocks", "patterns": [{ "include": "#block" }], "repository": { "block": { "begin": "(@)((?:\\w+\\s*)+)(?=\\(|\\{)", "beginCaptures": { "1": { "patterns": [{ "include": "#transition" }] }, "2": { "name": "keyword.control.block.kind.ng" } }, "contentName": "control.block.ng", "end": "(?<=\\})", "patterns": [{ "include": "#blockExpression" }, { "include": "#blockBody" }] }, "blockBody": { "begin": "\\{", "beginCaptures": { "0": { "name": "punctuation.definition.block.ts" } }, "contentName": "control.block.body.ng", "end": "\\}", "endCaptures": { "0": { "name": "punctuation.definition.block.ts" } }, "patterns": [{ "include": "text.html.derivative.ng" }, { "include": "template.ng" }] }, "blockExpression": { "begin": "\\(", "beginCaptures": { "0": { "name": "meta.brace.round.ts" } }, "contentName": "control.block.expression.ng", "end": "\\)", "endCaptures": { "0": { "name": "meta.brace.round.ts" } }, "patterns": [{ "include": "expression.ng" }] }, "transition": { "match": "@", "name": "keyword.control.block.transition.ng" } }, "scopeName": "template.blocks.ng", "embeddedLangs": ["angular-expression", "angular-template"] });
var angular_template_blocks = [
...angular_expression,
...angular_template,
lang$1
];
const lang = Object.freeze({ "displayName": "Angular HTML", "injections": { "R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)": { "comment": "Uses R: to ensure this matches after any other injections.", "patterns": [{ "match": "<", "name": "invalid.illegal.bad-angle-bracket.html" }] } }, "name": "angular-html", "patterns": [{ "include": "text.html.basic#core-minus-invalid" }, { "begin": "(</?)(\\w[^\\s>]*)(?<!/)", "beginCaptures": { "1": { "name": "punctuation.definition.tag.begin.html" }, "2": { "name": "entity.name.tag.html" } }, "end": "((?: ?/)?>)", "endCaptures": { "1": { "name": "punctuation.definition.tag.end.html" } }, "name": "meta.tag.other.unrecognized.html.derivative", "patterns": [{ "include": "text.html.basic#attribute" }] }], "scopeName": "text.html.derivative.ng", "embeddedLangs": ["html", "angular-expression", "angular-template", "angular-template-blocks"] });
var angular_html = [
...html,
...angular_expression,
...angular_template,
...angular_template_blocks,
lang
];
var angularHtml = /*#__PURE__*/Object.freeze({
__proto__: null,
default: angular_html
});
export { angular_html as a, angular_template as b, angular_expression as c, angular_template_blocks as d, angularHtml as e };