site/node_modules/shiki/dist/langs/postcss.mjs

7 lines
6.7 KiB
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
const lang = Object.freeze({ "displayName": "PostCSS", "fileTypes": ["pcss", "postcss"], "foldingStartMarker": "/\\*|^#|^\\*|^\\b|^\\.", "foldingStopMarker": "\\*/|^\\s*$", "name": "postcss", "patterns": [{ "begin": "/\\*", "end": "\\*/", "name": "comment.block.postcss", "patterns": [{ "include": "#comment-tag" }] }, { "include": "#double-slash" }, { "include": "#double-quoted" }, { "include": "#single-quoted" }, { "include": "#interpolation" }, { "include": "#placeholder-selector" }, { "include": "#variable" }, { "include": "#variable-root-css" }, { "include": "#numeric" }, { "include": "#unit" }, { "include": "#flag" }, { "include": "#dotdotdot" }, { "begin": "@include", "captures": { "0": { "name": "keyword.control.at-rule.css.postcss" } }, "end": "(?=\\n|\\(|{|;)", "name": "support.function.name.postcss.library" }, { "begin": "@mixin|@function", "captures": { "0": { "name": "keyword.control.at-rule.css.postcss" } }, "end": "$\\n?|(?=\\(|{)", "name": "support.function.name.postcss.no-completions", "patterns": [{ "match": "[\\w-]+", "name": "entity.name.function" }] }, { "match": "(?<=@import)\\s[\\w/.*-]+", "name": "string.quoted.double.css.postcss" }, { "begin": "@", "end": "$\\n?|\\s(?!(all|braille|embossed|handheld|print|projection|screen|speech|tty|tv|if|only|not)(\\s|,))|(?=;)", "name": "keyword.control.at-rule.css.postcss" }, { "begin": "#", "end": "$\\n?|(?=\\s|,|;|\\(|\\)|\\.|\\[|{|>)", "name": "entity.other.attribute-name.id.css.postcss", "patterns": [{ "include": "#interpolation" }, { "include": "#pseudo-class" }] }, { "begin": "\\.|(?<=&)(-|_)", "end": "$\\n?|(?=\\s|,|;|\\(|\\)|\\[|{|>)", "name": "entity.other.attribute-name.class.css.postcss", "patterns": [{ "include": "#interpolation" }, { "include": "#pseudo-class" }] }, { "begin": "\\[", "end": "\\]", "name": "entity.other.attribute-selector.postcss", "patterns": [{ "include": "#double-quoted" }, { "include": "#single-quoted" }, { "match": "\\^|\\$|\\*|~", "name": "keyword.other.regex.postcss" }] }, { "match": "(?<=\\]|\\)|not\\(|\\*|>|>\\s):[a-z:-]+|(::|:-)[a-z:-]+", "name": "entity.other.attribute-name.pseudo-class.css.postcss" }, { "begin": ":", "end": "$\\n?|(?=;|\\s\\(|and\\(|{|}|\\),)", "name": "meta.property-list.css.postcss", "patterns": [{ "include": "#double-slash" }, { "include": "#double-quoted" }, { "include": "#single-quoted" }, { "include": "#interpolation" }, { "include": "#variable" }, { "include": "#rgb-value" }, { "include": "#numeric" }, { "include": "#unit" }, { "include": "#flag" }, { "include": "#function" }, { "include": "#function-content" }, { "include": "#function-content-var" }, { "include": "#operator" }, { "include": "#parent-selector" }, { "include": "#property-value" }] }, { "include": "#rgb-value" }, { "include": "#function" }, { "include": "#function-content" }, { "begin": "(?<!\\-|\\()\\b(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|embed|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|pre|progress|q|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video|main|svg|rect|ruby|center|circle|ellipse|line|polyline|polygon|path|text|u|x)\\b(?!-|\\)|:\\s)|&", "end": "(?=\\s|,|;|\\(|\\)|\\.|\\[|{|>|-|_)", "name": "entity.name.tag.css.postcss.symbol", "patterns": [{ "include": "#interpolation" }, { "include": "#pseudo-class" }] }, { "include": "#operator" }, { "match": "[a-z-]+((?=:|#{))", "name": "support.type.property-name.css.postcss" }, { "include": "#reserved-words" }, { "include": "#property-value" }], "repository": { "comment-tag": { "begin": "{{", "end": "}}", "name": "comment.tags.postcss", "patterns": [{ "match": "[\\w-]+", "name": "comment.tag.postcss" }] }, "dotdotdot": { "match": "\\.{3}", "name":
var postcss = [
lang
];
export { postcss as default };