113 lines
62 KiB
JavaScript
113 lines
62 KiB
JavaScript
|
import html from './html.mjs';
|
||
|
import css from './css.mjs';
|
||
|
import ini from './ini.mjs';
|
||
|
import java from './java.mjs';
|
||
|
import lua from './lua.mjs';
|
||
|
import make from './make.mjs';
|
||
|
import perl from './perl.mjs';
|
||
|
import r from './r.mjs';
|
||
|
import ruby from './ruby.mjs';
|
||
|
import php from './php.mjs';
|
||
|
import sql from './sql.mjs';
|
||
|
import vb from './vb.mjs';
|
||
|
import xml from './xml.mjs';
|
||
|
import xsl from './xsl.mjs';
|
||
|
import yaml from './yaml.mjs';
|
||
|
import bat from './bat.mjs';
|
||
|
import clojure from './clojure.mjs';
|
||
|
import coffee from './coffee.mjs';
|
||
|
import c from './c.mjs';
|
||
|
import cpp from './cpp.mjs';
|
||
|
import diff from './diff.mjs';
|
||
|
import docker from './docker.mjs';
|
||
|
import go from './go.mjs';
|
||
|
import groovy from './groovy.mjs';
|
||
|
import pug from './pug.mjs';
|
||
|
import javascript from './javascript.mjs';
|
||
|
import jsonc from './jsonc.mjs';
|
||
|
import less from './less.mjs';
|
||
|
import objective_c from './objective-c.mjs';
|
||
|
import swift from './swift.mjs';
|
||
|
import scss from './scss.mjs';
|
||
|
import raku from './raku.mjs';
|
||
|
import powershell from './powershell.mjs';
|
||
|
import python from './python.mjs';
|
||
|
import julia from './julia.mjs';
|
||
|
import rust from './rust.mjs';
|
||
|
import scala from './scala.mjs';
|
||
|
import shellscript from './shellscript.mjs';
|
||
|
import typescript from './typescript.mjs';
|
||
|
import csharp from './csharp.mjs';
|
||
|
import fsharp from './fsharp.mjs';
|
||
|
import dart from './dart.mjs';
|
||
|
import handlebars from './handlebars.mjs';
|
||
|
import markdown from './markdown.mjs';
|
||
|
import erlang from './erlang.mjs';
|
||
|
import elixir from './elixir.mjs';
|
||
|
import latex from './latex.mjs';
|
||
|
import bibtex from './bibtex.mjs';
|
||
|
import json from './json.mjs';
|
||
|
import './cpp-macro.mjs';
|
||
|
import './glsl.mjs';
|
||
|
import './sass.mjs';
|
||
|
import './stylus.mjs';
|
||
|
import './tex.mjs';
|
||
|
import './gnuplot.mjs';
|
||
|
import './haskell.mjs';
|
||
|
|
||
|
const lang = Object.freeze({ "displayName": "Wikitext", "name": "wikitext", "patterns": [{ "include": "#wikitext" }, { "include": "text.html.basic" }], "repository": { "wikitext": { "patterns": [{ "include": "#signature" }, { "include": "#redirect" }, { "include": "#magic-words" }, { "include": "#argument" }, { "include": "#template" }, { "include": "#convert" }, { "include": "#list" }, { "include": "#table" }, { "include": "#font-style" }, { "include": "#internal-link" }, { "include": "#external-link" }, { "include": "#heading" }, { "include": "#break" }, { "include": "#wikixml" }, { "include": "#extension-comments" }], "repository": { "argument": { "begin": "({{{)", "end": "(}}})", "name": "variable.parameter.wikitext", "patterns": [{ "captures": { "1": { "name": "variable.other.wikitext" }, "2": { "name": "keyword.operator.wikitext" } }, "match": "(?:^|\\G)([^#:\\|\\[\\]\\{\\}\\|]*)(\\|)" }, { "include": "$self" }] }, "break": { "match": "^-{4,}", "name": "markup.changed.wikitext" }, "convert": { "begin": "(-\\{(?!\\{))([a-zA-Z](\\|))?", "captures": { "1": { "name": "punctuation.definition.tag.template.wikitext" }, "2": { "name": "entity.name.function.type.wikitext" }, "3": { "name": "keyword.operator.wikitext" } }, "end": "(\\}-)", "patterns": [{ "include": "$self" }, { "captures": { "1": { "name": "entity.name.tag.language.wikitext" }, "2": { "name": "punctuation.separator.key-value.wikitext" }, "3": { "name": "string.unquoted.text.wikitext", "patterns": [{ "include": "$self" }] }, "4": { "name": "punctuation.terminator.rule.wikitext" } }, "match": "(?:([a-zA-Z\\-]*)(:))?(.*?)(?:(;)|(?=\\}-))" }] }, "extension-comments": { "begin": "(<%--)\\s*(\\[)([A-Z_]*)(\\])", "beginCaptures": { "1": { "name": "punctuation.definition.comment.extension.wikitext" }, "2": { "name": "punctuation.definition.tag.extension.wikitext" }, "3": { "name": "storage.type.extension.wikitext" }, "4": { "name": "punctuation.definition.tag.extension.wikitext" } }, "end": "(\\[)([A-Z_]*)(\\])\\s*(--%>)", "endCaptures": { "1": { "name": "punctuation.definition.tag.extension.wikitext" }, "2": { "name": "storage.type.extension.wikitext" }, "3": { "name": "punctuation.definition.tag.extension.wikitext" }, "4": { "name": "punctuation.definition.comment.extension.wikitext" } }, "name": "comment.block.documentation.special.extension.wikitext", "patterns": [{ "captures": { "0": { "name": "meta.object.member.extension.wikitext" }, "1": { "name": "meta.object-literal.key.extension.wikitext" }, "2": { "name": "punctuation.separator.dictionary.key-value.extension.wikitext" }, "3": { "name": "punctuation.definition.string.begin.extension.wikitext" }, "4": { "name": "string.quoted.other.extension.wikitext" }, "5": { "name": "punctuation.definition.string.end.extension.wikitext" } }, "match": "(\\w*)\\s*(=)\\s*(#)(.*?)(#)" }] }, "external-link": { "patterns": [{ "captures": { "1": { "name": "punctuation.definition.tag.link.external.wikitext" }, "2": { "name": "entity.name.tag.url.wikitext" }, "3": { "name": "string.other.link.external.title.wikitext", "patterns": [{ "include": "$self" }] }, "4": { "name": "punctuation.definition.tag.link.external.wikitext" } }, "match": "(\\[)((?:(?:(?:http(?:s)?)|(?:ftp(?:s)?)):\\/\\/)[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\.~:\\/?#%@!\\$&'\\(\\)\\*\\+,;=.]+)\\s*?([^\\]]*)(\\])", "name": "meta.link.external.wikitext" }, { "captures": { "1": { "name": "punctuation.definition.tag.link.external.wikitext" }, "2": { "name": "invalid.illegal.bad-url.wikitext" }, "3": { "name": "string.other.link.external.title.wikitext", "patterns": [{ "include": "$self" }] }, "4": { "name": "punctuation.definition.tag.link.external.wikitext" } }, "match": "(\\[)([\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\.~:\\/?#%@!\\$&'\\(\\)\\*\\+,;=.]+)\\s*?([^\\]]*)(\\])", "name": "invalid.illegal.bad-link.wikitext" }] }, "font-style": { "patterns": [{ "include": "#bold" }, { "include": "#italic" }], "repository": { "bold": { "begin": "(''')", "end": "(''')|$", "name": "markup.bold.wikitext", "patterns": [{ "include": "#italic" }, { "include": "$self" }] }, "italic": { "beg
|
||
|
var wikitext = [
|
||
|
...html,
|
||
|
...css,
|
||
|
...ini,
|
||
|
...java,
|
||
|
...lua,
|
||
|
...make,
|
||
|
...perl,
|
||
|
...r,
|
||
|
...ruby,
|
||
|
...php,
|
||
|
...sql,
|
||
|
...vb,
|
||
|
...xml,
|
||
|
...xsl,
|
||
|
...yaml,
|
||
|
...bat,
|
||
|
...clojure,
|
||
|
...coffee,
|
||
|
...c,
|
||
|
...cpp,
|
||
|
...diff,
|
||
|
...docker,
|
||
|
...go,
|
||
|
...groovy,
|
||
|
...pug,
|
||
|
...javascript,
|
||
|
...jsonc,
|
||
|
...less,
|
||
|
...objective_c,
|
||
|
...swift,
|
||
|
...scss,
|
||
|
...raku,
|
||
|
...powershell,
|
||
|
...python,
|
||
|
...julia,
|
||
|
...rust,
|
||
|
...scala,
|
||
|
...shellscript,
|
||
|
...typescript,
|
||
|
...csharp,
|
||
|
...fsharp,
|
||
|
...dart,
|
||
|
...handlebars,
|
||
|
...markdown,
|
||
|
...erlang,
|
||
|
...elixir,
|
||
|
...latex,
|
||
|
...bibtex,
|
||
|
...json,
|
||
|
lang
|
||
|
];
|
||
|
|
||
|
export { wikitext as default };
|