the editable site (validation-lab)

This commit is contained in:
kpgarrod committed 2026-11-21 08:03:55 +01:00
commit 3ac81d5a52
13454 files changed
+2227005

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
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\"},\"binding\":{\"captures\":{\"1\":{\"name\":\"punctuation.section.embedded.begin.mdc\"},\"2\":{\"name\":\"variable.other.mdc\"},\"3\":{\"name\":\"keyword.operator.logical.mdc\"},\"4\":{\"name\":\"string.unquoted.mdc\"},\"5\":{\"name\":\"punctuation.section.embedded.end.mdc\"}},\"match\":\"(\\\\{\\\\{)\\\\s*((?:[^|}]|\\\\|(?!\\\\|))+?)\\\\s*(?:(\\\\|\\\\|)\\\\s*([^}]+?)\\\\s*)?(}})\",\"name\":\"meta.binding.mdc\"},\"block\":{\"patterns\":[{\"include\":\"#inline\"},{\"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|[dv]|and)?|g(s(t|ph)|zarr|e|le|rt(vb(d)?)?|msd(a([a-h]))?)?)|c(y|irc|d|ute|E)?|tilde|o(pf|gon)|uml|p(id|os|prox(eq)?|[Ee]|acir)?|elig|f(r)?|w((?:con|)int)|l(pha|e(ph|fsym))|acute|ring|grave|m(p|a(cr|lg))|breve)|A(s(sign|cr)|nd|MP|c(y|irc)|tilde|o(pf|gon)|uml|pplyFunction|fr|Elig|lpha|acute|ring|grave|macr|breve))|(B(scr|cy|opf|umpeq|e(cause|ta|rnoullis)|fr|a(ckslash|r(v|wed))|reve)|b(s(cr|im(e)?|ol(hsub|b)?|emi)|n(ot|e(quiv)?)|c(y|ong)|ig(s(tar|qcup)|c(irc|up|ap)|triangle(down|up)|o(times|dot|plus)|uplus|vee|wedge)|o(t(tom)?|pf|Line truncated
export default [
...markdown,
...yaml,
...html_derivative,
lang
]