Files
docs/node_modules/@shikijs/langs/dist/mdc.mjs

13 lines
20 KiB
JavaScript
Raw Normal View History

2025-08-27 14:05:33 +08:00
import markdown from './markdown.mjs'
import yaml from './yaml.mjs'
import html_derivative from './html-derivative.mjs'
const lang = Object.freeze(JSON.parse("{\"displayName\":\"MDC\",\"injectionSelector\":\"L:text.html.markdown\",\"name\":\"mdc\",\"patterns\":[{\"include\":\"text.html.markdown#frontMatter\"},{\"include\":\"#block\"}],\"repository\":{\"attribute\":{\"patterns\":[{\"captures\":{\"2\":{\"name\":\"entity.other.attribute-name.html\"},\"3\":{\"patterns\":[{\"include\":\"#attribute-interior\"}]}},\"match\":\"(([^=><\\\\s]*)(=[\\\"]([^\\\"]*)([\\\"])|[']([^']*)(['])|=[^\\\\s'\\\"}]*)?\\\\s*)\"}]},\"attribute-interior\":{\"patterns\":[{\"begin\":\"=\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.separator.key-value.html\"}},\"end\":\"(?<=[^\\\\s=])(?!\\\\s*=)|(?=/?>)\",\"patterns\":[{\"match\":\"([^\\\\s\\\"'=<>`/]|/(?!>))+\",\"name\":\"string.unquoted.html\"},{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.html\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.html\"}},\"name\":\"string.quoted.double.html\",\"patterns\":[{\"include\":\"#entities\"}]},{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.html\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.html\"}},\"name\":\"string.quoted.single.html\",\"patterns\":[{\"include\":\"#entities\"}]},{\"match\":\"=\",\"name\":\"invalid.illegal.unexpected-equals-sign.html\"}]}]},\"attributes\":{\"captures\":{\"1\":{\"name\":\"punctuation.definition.tag.start.component\"},\"3\":{\"patterns\":[{\"include\":\"#attribute\"}]},\"4\":{\"name\":\"punctuation.definition.tag.end.component\"}},\"match\":\"(({)([^{]*)(}))\",\"name\":\"attributes.mdc\"},\"block\":{\"patterns\":[{\"include\":\"#component_block\"},{\"include\":\"text.html.markdown#separator\"},{\"include\":\"#heading\"},{\"include\":\"#blockquote\"},{\"include\":\"#lists\"},{\"include\":\"text.html.markdown#fenced_code_block\"},{\"include\":\"text.html.markdown#link-def\"},{\"include\":\"text.html.markdown#html\"},{\"include\":\"#paragraph\"}]},\"blockquote\":{\"begin\":\"(^|\\\\G)[ ]*(>) ?\",\"captures\":{\"2\":{\"name\":\"punctuation.definition.quote.begin.markdown\"}},\"name\":\"markup.quote.markdown\",\"patterns\":[{\"include\":\"#block\"}],\"while\":\"(^|\\\\G)\\\\s*(>) ?\"},\"component_block\":{\"begin\":\"(^|\\\\G)(\\\\s*)(:{2,})(?i:(\\\\w[\\\\w\\\\d-]+)(\\\\s*|\\\\s*({[^{]*}))$)\",\"beginCaptures\":{\"3\":{\"name\":\"punctuation.definition.tag.start.mdc\"},\"4\":{\"name\":\"entity.name.tag.mdc\"},\"5\":{\"patterns\":[{\"include\":\"#attributes\"}]}},\"end\":\"(^|\\\\G)(\\\\2)(\\\\3)\\\\s*$\",\"endCaptures\":{\"3\":{\"name\":\"punctuation.definition.tag.end.mdc\"}},\"name\":\"block.component.mdc\",\"patterns\":[{\"captures\":{\"2\":{\"name\":\"punctuation.definition.tag.end.mdc\"}},\"match\":\"(^|\\\\G)\\\\s*([:]{2,})$\"},{\"begin\":\"(^|\\\\G)(\\\\s*)(-{3})(\\\\s*)$\",\"end\":\"(^|\\\\G)(\\\\s*(-{3})(\\\\s*)$)\",\"patterns\":[{\"include\":\"source.yaml\"}]},{\"captures\":{\"2\":{\"name\":\"entity.other.attribute-name.html\"},\"3\":{\"name\":\"comment.block.html\"}},\"match\":\"^(\\\\s*)(#[\\\\w\\\\-\\\\_]*)\\\\s*(<!--(.*)-->)?$\"},{\"include\":\"#block\"}]},\"component_inline\":{\"captures\":{\"2\":{\"name\":\"punctuation.definition.tag.start.component\"},\"3\":{\"name\":\"entity.name.tag.component\"},\"5\":{\"patterns\":[{\"include\":\"#attributes\"}]},\"6\":{\"patterns\":[{\"include\":\"#span\"}]},\"7\":{\"patterns\":[{\"include\":\"#span\"}]},\"8\":{\"patterns\":[{\"include\":\"#attributes\"}]}},\"match\":\"(^|\\\\G|\\\\s+)(:)(?i:(\\\\w[\\\\w\\\\d-]*))(({[^}]*})(\\\\[[^\\\\]]*\\\\])?|(\\\\[[^\\\\]]*\\\\])({[^}]*})?)?\\\\s\",\"name\":\"inline.component.mdc\"},\"entities\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.entity.html\"},\"912\":{\"name\":\"punctuation.definition.entity.html\"}},\"match\":\"(&)(?=[a-zA-Z])((a(s(ymp(eq)?|cr|t)|n(d(slope|d|v|and)?|g(s(t|ph)|zarr|e|le|rt(vb(d)?)?|msd(a(h|c|d|e|f|a|g|b))?)?)|c(y|irc|d|ute|E)?|tilde|o(pf|gon)|uml|p(id|os|prox(eq)?|e|E|acir)?|elig|f(r)?|w(conint|int)|l(pha|e(ph|fsym))|acute|ring|g
export default [
...markdown,
...yaml,
...html_derivative,
lang
]