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

93 lines
99 KiB
JavaScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
import html from './html.mjs';
import yaml from './yaml.mjs';
import csv from './csv.mjs';
import c from './c.mjs';
import clojure from './clojure.mjs';
import coffee from './coffee.mjs';
import cpp from './cpp.mjs';
import css from './css.mjs';
import csharp from './csharp.mjs';
import diff from './diff.mjs';
import docker from './docker.mjs';
import elixir from './elixir.mjs';
import elm from './elm.mjs';
import erlang from './erlang.mjs';
import go from './go.mjs';
import groovy from './groovy.mjs';
import haskell from './haskell.mjs';
import java from './java.mjs';
import javascript from './javascript.mjs';
import json from './json.mjs';
import jsx from './jsx.mjs';
import julia from './julia.mjs';
import kotlin from './kotlin.mjs';
import less from './less.mjs';
import make from './make.mjs';
import objective_c from './objective-c.mjs';
import ocaml from './ocaml.mjs';
import perl from './perl.mjs';
import python from './python.mjs';
import r from './r.mjs';
import ruby from './ruby.mjs';
import rust from './rust.mjs';
import sass from './sass.mjs';
import scala from './scala.mjs';
import scss from './scss.mjs';
import shellscript from './shellscript.mjs';
import sql from './sql.mjs';
import swift from './swift.mjs';
import toml from './toml.mjs';
import typescript from './typescript.mjs';
import xml from './xml.mjs';
import './cpp-macro.mjs';
import './glsl.mjs';
import './lua.mjs';
const lang = Object.freeze({ "displayName": "AsciiDoc", "fileTypes": ["ad", "asc", "adoc", "asciidoc", "adoc.txt"], "name": "asciidoc", "patterns": [{ "include": "#comment" }, { "include": "#callout-list-item" }, { "include": "#titles" }, { "include": "#attribute-entry" }, { "include": "#blocks" }, { "include": "#block-title" }, { "include": "#tables" }, { "include": "#horizontal-rule" }, { "include": "#list" }, { "include": "#inlines" }, { "include": "#block-attribute" }, { "include": "#line-break" }], "repository": { "admonition-paragraph": { "patterns": [{ "begin": "(?=(?>(?:^\\[(NOTE|TIP|IMPORTANT|WARNING|CAUTION)((?:,|#|\\.|%)[^\\]]+)*\\]$)))", "end": "((?<=--|====)$|^\\p{Blank}*$)", "name": "markup.admonition.asciidoc", "patterns": [{ "captures": { "0": { "patterns": [{ "include": "#block-attribute-inner" }] } }, "match": "^\\[(NOTE|TIP|IMPORTANT|WARNING|CAUTION)((?:,|#|\\.|%)([^,\\]]+))*\\]$" }, { "include": "#inlines" }, { "include": "#block-title" }, { "begin": "^(={4,})\\s*$", "comment": "example block", "end": "(?<=\\1)", "patterns": [{ "include": "#inlines" }, { "include": "#list" }] }, { "begin": "^(-{2})\\s*$", "comment": "open block", "end": "(?<=\\1)", "patterns": [{ "include": "#inlines" }, { "include": "#list" }] }] }, { "begin": "^(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\:\\p{Blank}+", "captures": { "1": { "name": "entity.name.function.asciidoc" } }, "end": "^\\p{Blank}*$", "name": "markup.admonition.asciidoc", "patterns": [{ "include": "#inlines" }] }] }, "anchor-macro": { "patterns": [{ "captures": { "1": { "name": "support.constant.asciidoc" }, "2": { "name": "markup.blockid.asciidoc" }, "3": { "name": "string.unquoted.asciidoc" }, "4": { "name": "support.constant.asciidoc" } }, "match": "(?<!\\\\)(?:(\\[{2})([\\p{Alpha}:_][\\p{Word}:.-]*)(?:,\\p{Blank}*(\\S.*?))?(\\]{2}))", "name": "markup.other.anchor.asciidoc" }, { "captures": { "1": { "name": "entity.name.function.asciidoc" }, "2": { "name": "markup.blockid.asciidoc" }, "3": { "name": "string.unquoted.asciidoc" } }, "match": "(?<!\\\\)(anchor):(\\S+)\\[(.*?[^\\\\])?\\]", "name": "markup.other.anchor.asciidoc" }] }, "attribute-entry": { "patterns": [{ "begin": "^(:)(!?\\w.*?)(:)(\\p{Blank}+.+\\p{Blank}(?:\\+|\\\\))$", "beginCaptures": { "1": { "name": "punctuation.separator.attribute-entry.asciidoc" }, "2": { "name": "support.constant.attribute-name.asciidoc" }, "3": { "name": "punctuation.separator.attribute-entry.asciidoc" }, "4": { "name": "string.unquoted.attribute-value.asciidoc", "patterns": [{ "include": "#inlines" }, { "include": "#hard-break-backslash" }, { "include": "#line-break" }, { "include": "#line-break-backslash" }] } }, "contentName": "string.unquoted.attribute-value.asciidoc", "end": "^\\p{Blank}+.+$(?<!\\+|\\\\)|^\\p{Blank}*$", "endCaptures": { "0": { "name": "string.unquoted.attribute-value.asciidoc" } }, "name": "meta.definition.attribute-entry.asciidoc", "patterns": [{ "include": "#inlines" }, { "include": "#hard-break-backslash" }, { "include": "#line-break" }, { "include": "#line-break-backslash" }] }, { "captures": { "1": { "name": "punctuation.separator.asciidoc" }, "2": { "name": "support.constant.attribute-name.asciidoc" }, "3": { "name": "punctuation.separator.asciidoc" }, "4": { "name": "string.unquoted.attribute-value.asciidoc", "patterns": [{ "include": "#inlines" }, { "include": "#line-break" }] } }, "match": "^(:)(!?\\w.*?)(:)(\\p{Blank}+(.*))?$", "name": "meta.definition.attribute-entry.asciidoc" }] }, "attribute-reference": { "patterns": [{ "captures": { "2": { "name": "entity.name.function.asciidoc" }, "3": { "name": "punctuation.separator.asciidoc" }, "4": { "name": "support.constant.attribute-name.asciidoc" }, "6": { "name": "punctuation.separator.asciidoc" }, "7": { "name": "string.unquoted.attribute-value.asciidoc" } }, "match": "(?<!\\\\)(\\{)(set|counter2?)(:)([\\p{Alnum}\\-_!]+)((:)(.*?))?(?<!\\\\)(\\})", "name": "markup.substitution.attribute-reference.asciidoc" }, { "match": "(?<!\\\\)(\\{)(\\w+(?:[\\-]\\w+)*)(?<!\\\\)(\\})", "name": "markup.substitution.attribute-reference.asciidoc" }] }, "bibliograph
var asciidoc = [
...html,
...yaml,
...csv,
...c,
...clojure,
...coffee,
...cpp,
...css,
...csharp,
...diff,
...docker,
...elixir,
...elm,
...erlang,
...go,
...groovy,
...haskell,
...java,
...javascript,
...json,
...jsx,
...julia,
...kotlin,
...less,
...make,
...objective_c,
...ocaml,
...perl,
...python,
...r,
...ruby,
...rust,
...sass,
...scala,
...scss,
...shellscript,
...sql,
...swift,
...toml,
...typescript,
...xml,
lang
];
export { asciidoc as default };