mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Update highlightjs from 11.6.0 to 11.8.0 (#22312)
This commit is contained in:
parent
ccdc0822a8
commit
6efc4bb065
258
vendor/assets/javascripts/highlightjs/es/core.js
vendored
258
vendor/assets/javascripts/highlightjs/es/core.js
vendored
@ -1,39 +1,43 @@
|
||||
/*!
|
||||
Highlight.js v11.6.0 (git: bed790f3f3)
|
||||
(c) 2006-2022 undefined and other contributors
|
||||
Highlight.js v11.8.0 (git: 65687a907b)
|
||||
(c) 2006-2023 undefined and other contributors
|
||||
License: BSD-3-Clause
|
||||
*/
|
||||
var deepFreezeEs6 = {exports: {}};
|
||||
/* eslint-disable no-multi-assign */
|
||||
|
||||
function deepFreeze(obj) {
|
||||
if (obj instanceof Map) {
|
||||
obj.clear = obj.delete = obj.set = function () {
|
||||
throw new Error('map is read-only');
|
||||
if (obj instanceof Map) {
|
||||
obj.clear =
|
||||
obj.delete =
|
||||
obj.set =
|
||||
function () {
|
||||
throw new Error('map is read-only');
|
||||
};
|
||||
} else if (obj instanceof Set) {
|
||||
obj.add = obj.clear = obj.delete = function () {
|
||||
throw new Error('set is read-only');
|
||||
} else if (obj instanceof Set) {
|
||||
obj.add =
|
||||
obj.clear =
|
||||
obj.delete =
|
||||
function () {
|
||||
throw new Error('set is read-only');
|
||||
};
|
||||
}
|
||||
|
||||
// Freeze self
|
||||
Object.freeze(obj);
|
||||
|
||||
Object.getOwnPropertyNames(obj).forEach((name) => {
|
||||
const prop = obj[name];
|
||||
const type = typeof prop;
|
||||
|
||||
// Freeze prop if it is an object or function and also not already frozen
|
||||
if ((type === 'object' || type === 'function') && !Object.isFrozen(prop)) {
|
||||
deepFreeze(prop);
|
||||
}
|
||||
});
|
||||
|
||||
// Freeze self
|
||||
Object.freeze(obj);
|
||||
|
||||
Object.getOwnPropertyNames(obj).forEach(function (name) {
|
||||
var prop = obj[name];
|
||||
|
||||
// Freeze prop if it is an object
|
||||
if (typeof prop == 'object' && !Object.isFrozen(prop)) {
|
||||
deepFreeze(prop);
|
||||
}
|
||||
});
|
||||
|
||||
return obj;
|
||||
return obj;
|
||||
}
|
||||
|
||||
deepFreezeEs6.exports = deepFreeze;
|
||||
deepFreezeEs6.exports.default = deepFreeze;
|
||||
|
||||
/** @typedef {import('highlight.js').CallbackResponse} CallbackResponse */
|
||||
/** @typedef {import('highlight.js').CompiledMode} CompiledMode */
|
||||
/** @implements CallbackResponse */
|
||||
@ -112,7 +116,7 @@ const SPAN_CLOSE = '</span>';
|
||||
const emitsWrappingTags = (node) => {
|
||||
// rarely we can have a sublanguage where language is undefined
|
||||
// TODO: track down why
|
||||
return !!node.scope || (node.sublanguage && node.language);
|
||||
return !!node.scope;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -121,6 +125,11 @@ const emitsWrappingTags = (node) => {
|
||||
* @param {{prefix:string}} options
|
||||
*/
|
||||
const scopeToCSSClass = (name, { prefix }) => {
|
||||
// sub-language
|
||||
if (name.startsWith("language:")) {
|
||||
return name.replace("language:", "language-");
|
||||
}
|
||||
// tiered scope: comment.line
|
||||
if (name.includes(".")) {
|
||||
const pieces = name.split(".");
|
||||
return [
|
||||
@ -128,6 +137,7 @@ const scopeToCSSClass = (name, { prefix }) => {
|
||||
...(pieces.map((x, i) => `${x}${"_".repeat(i + 1)}`))
|
||||
].join(" ");
|
||||
}
|
||||
// simple scope
|
||||
return `${prefix}${name}`;
|
||||
};
|
||||
|
||||
@ -160,12 +170,8 @@ class HTMLRenderer {
|
||||
openNode(node) {
|
||||
if (!emitsWrappingTags(node)) return;
|
||||
|
||||
let className = "";
|
||||
if (node.sublanguage) {
|
||||
className = `language-${node.language}`;
|
||||
} else {
|
||||
className = scopeToCSSClass(node.scope, { prefix: this.classPrefix });
|
||||
}
|
||||
const className = scopeToCSSClass(node.scope,
|
||||
{ prefix: this.classPrefix });
|
||||
this.span(className);
|
||||
}
|
||||
|
||||
@ -303,13 +309,11 @@ class TokenTree {
|
||||
|
||||
Minimal interface:
|
||||
|
||||
- addKeyword(text, scope)
|
||||
- addText(text)
|
||||
- addSublanguage(emitter, subLanguageName)
|
||||
- __addSublanguage(emitter, subLanguageName)
|
||||
- startScope(scope)
|
||||
- endScope()
|
||||
- finalize()
|
||||
- openNode(scope)
|
||||
- closeNode()
|
||||
- closeAllNodes()
|
||||
- toHTML()
|
||||
|
||||
*/
|
||||
@ -326,18 +330,6 @@ class TokenTreeEmitter extends TokenTree {
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} text
|
||||
* @param {string} scope
|
||||
*/
|
||||
addKeyword(text, scope) {
|
||||
if (text === "") { return; }
|
||||
|
||||
this.openNode(scope);
|
||||
this.addText(text);
|
||||
this.closeNode();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} text
|
||||
*/
|
||||
@ -347,15 +339,24 @@ class TokenTreeEmitter extends TokenTree {
|
||||
this.add(text);
|
||||
}
|
||||
|
||||
/** @param {string} scope */
|
||||
startScope(scope) {
|
||||
this.openNode(scope);
|
||||
}
|
||||
|
||||
endScope() {
|
||||
this.closeNode();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Emitter & {root: DataNode}} emitter
|
||||
* @param {string} name
|
||||
*/
|
||||
addSublanguage(emitter, name) {
|
||||
__addSublanguage(emitter, name) {
|
||||
/** @type DataNode */
|
||||
const node = emitter.root;
|
||||
node.sublanguage = true;
|
||||
node.language = name;
|
||||
if (name) node.scope = `language:${name}`;
|
||||
|
||||
this.add(node);
|
||||
}
|
||||
|
||||
@ -365,6 +366,7 @@ class TokenTreeEmitter extends TokenTree {
|
||||
}
|
||||
|
||||
finalize() {
|
||||
this.closeAllNodes();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -726,31 +728,31 @@ const END_SAME_AS_BEGIN = function(mode) {
|
||||
};
|
||||
|
||||
var MODES = /*#__PURE__*/Object.freeze({
|
||||
__proto__: null,
|
||||
MATCH_NOTHING_RE: MATCH_NOTHING_RE,
|
||||
IDENT_RE: IDENT_RE,
|
||||
UNDERSCORE_IDENT_RE: UNDERSCORE_IDENT_RE,
|
||||
NUMBER_RE: NUMBER_RE,
|
||||
C_NUMBER_RE: C_NUMBER_RE,
|
||||
BINARY_NUMBER_RE: BINARY_NUMBER_RE,
|
||||
RE_STARTERS_RE: RE_STARTERS_RE,
|
||||
SHEBANG: SHEBANG,
|
||||
BACKSLASH_ESCAPE: BACKSLASH_ESCAPE,
|
||||
APOS_STRING_MODE: APOS_STRING_MODE,
|
||||
QUOTE_STRING_MODE: QUOTE_STRING_MODE,
|
||||
PHRASAL_WORDS_MODE: PHRASAL_WORDS_MODE,
|
||||
COMMENT: COMMENT,
|
||||
C_LINE_COMMENT_MODE: C_LINE_COMMENT_MODE,
|
||||
C_BLOCK_COMMENT_MODE: C_BLOCK_COMMENT_MODE,
|
||||
HASH_COMMENT_MODE: HASH_COMMENT_MODE,
|
||||
NUMBER_MODE: NUMBER_MODE,
|
||||
C_NUMBER_MODE: C_NUMBER_MODE,
|
||||
BINARY_NUMBER_MODE: BINARY_NUMBER_MODE,
|
||||
REGEXP_MODE: REGEXP_MODE,
|
||||
TITLE_MODE: TITLE_MODE,
|
||||
UNDERSCORE_TITLE_MODE: UNDERSCORE_TITLE_MODE,
|
||||
METHOD_GUARD: METHOD_GUARD,
|
||||
END_SAME_AS_BEGIN: END_SAME_AS_BEGIN
|
||||
__proto__: null,
|
||||
MATCH_NOTHING_RE: MATCH_NOTHING_RE,
|
||||
IDENT_RE: IDENT_RE,
|
||||
UNDERSCORE_IDENT_RE: UNDERSCORE_IDENT_RE,
|
||||
NUMBER_RE: NUMBER_RE,
|
||||
C_NUMBER_RE: C_NUMBER_RE,
|
||||
BINARY_NUMBER_RE: BINARY_NUMBER_RE,
|
||||
RE_STARTERS_RE: RE_STARTERS_RE,
|
||||
SHEBANG: SHEBANG,
|
||||
BACKSLASH_ESCAPE: BACKSLASH_ESCAPE,
|
||||
APOS_STRING_MODE: APOS_STRING_MODE,
|
||||
QUOTE_STRING_MODE: QUOTE_STRING_MODE,
|
||||
PHRASAL_WORDS_MODE: PHRASAL_WORDS_MODE,
|
||||
COMMENT: COMMENT,
|
||||
C_LINE_COMMENT_MODE: C_LINE_COMMENT_MODE,
|
||||
C_BLOCK_COMMENT_MODE: C_BLOCK_COMMENT_MODE,
|
||||
HASH_COMMENT_MODE: HASH_COMMENT_MODE,
|
||||
NUMBER_MODE: NUMBER_MODE,
|
||||
C_NUMBER_MODE: C_NUMBER_MODE,
|
||||
BINARY_NUMBER_MODE: BINARY_NUMBER_MODE,
|
||||
REGEXP_MODE: REGEXP_MODE,
|
||||
TITLE_MODE: TITLE_MODE,
|
||||
UNDERSCORE_TITLE_MODE: UNDERSCORE_TITLE_MODE,
|
||||
METHOD_GUARD: METHOD_GUARD,
|
||||
END_SAME_AS_BEGIN: END_SAME_AS_BEGIN
|
||||
});
|
||||
|
||||
/**
|
||||
@ -904,7 +906,7 @@ const DEFAULT_KEYWORD_SCOPE = "keyword";
|
||||
* @param {boolean} caseInsensitive
|
||||
*/
|
||||
function compileKeywords(rawKeywords, caseInsensitive, scopeName = DEFAULT_KEYWORD_SCOPE) {
|
||||
/** @type KeywordDict */
|
||||
/** @type {import("highlight.js/private").KeywordDict} */
|
||||
const compiledKeywords = Object.create(null);
|
||||
|
||||
// input can be a string of keywords, an array of keywords, or a object with
|
||||
@ -1563,7 +1565,7 @@ function expandOrCloneMode(mode) {
|
||||
return mode;
|
||||
}
|
||||
|
||||
var version = "11.6.0";
|
||||
var version = "11.8.0";
|
||||
|
||||
class HTMLInjectionError extends Error {
|
||||
constructor(reason, html) {
|
||||
@ -1578,6 +1580,7 @@ Syntax highlighting with language autodetection.
|
||||
https://highlightjs.org/
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
@typedef {import('highlight.js').Mode} Mode
|
||||
@typedef {import('highlight.js').CompiledMode} CompiledMode
|
||||
@ -1787,7 +1790,7 @@ const HLJS = function(hljs) {
|
||||
buf += match[0];
|
||||
} else {
|
||||
const cssClass = language.classNameAliases[kind] || kind;
|
||||
emitter.addKeyword(match[0], cssClass);
|
||||
emitKeyword(match[0], cssClass);
|
||||
}
|
||||
} else {
|
||||
buf += match[0];
|
||||
@ -1822,7 +1825,7 @@ const HLJS = function(hljs) {
|
||||
if (top.relevance > 0) {
|
||||
relevance += result.relevance;
|
||||
}
|
||||
emitter.addSublanguage(result._emitter, result.language);
|
||||
emitter.__addSublanguage(result._emitter, result.language);
|
||||
}
|
||||
|
||||
function processBuffer() {
|
||||
@ -1834,6 +1837,18 @@ const HLJS = function(hljs) {
|
||||
modeBuffer = '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} text
|
||||
* @param {string} scope
|
||||
*/
|
||||
function emitKeyword(keyword, scope) {
|
||||
if (keyword === "") return;
|
||||
|
||||
emitter.startScope(scope);
|
||||
emitter.addText(keyword);
|
||||
emitter.endScope();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {CompiledScope} scope
|
||||
* @param {RegExpMatchArray} match
|
||||
@ -1846,7 +1861,7 @@ const HLJS = function(hljs) {
|
||||
const klass = language.classNameAliases[scope[i]] || scope[i];
|
||||
const text = match[i];
|
||||
if (klass) {
|
||||
emitter.addKeyword(text, klass);
|
||||
emitKeyword(text, klass);
|
||||
} else {
|
||||
modeBuffer = text;
|
||||
processKeywords();
|
||||
@ -1867,7 +1882,7 @@ const HLJS = function(hljs) {
|
||||
if (mode.beginScope) {
|
||||
// beginScope just wraps the begin match itself in a scope
|
||||
if (mode.beginScope._wrap) {
|
||||
emitter.addKeyword(modeBuffer, language.classNameAliases[mode.beginScope._wrap] || mode.beginScope._wrap);
|
||||
emitKeyword(modeBuffer, language.classNameAliases[mode.beginScope._wrap] || mode.beginScope._wrap);
|
||||
modeBuffer = "";
|
||||
} else if (mode.beginScope._multi) {
|
||||
// at this point modeBuffer should just be the match
|
||||
@ -1978,7 +1993,7 @@ const HLJS = function(hljs) {
|
||||
const origin = top;
|
||||
if (top.endScope && top.endScope._wrap) {
|
||||
processBuffer();
|
||||
emitter.addKeyword(lexeme, top.endScope._wrap);
|
||||
emitKeyword(lexeme, top.endScope._wrap);
|
||||
} else if (top.endScope && top.endScope._multi) {
|
||||
processBuffer();
|
||||
emitMultiClass(top.endScope, match);
|
||||
@ -2121,37 +2136,41 @@ const HLJS = function(hljs) {
|
||||
let resumeScanAtSamePosition = false;
|
||||
|
||||
try {
|
||||
top.matcher.considerAll();
|
||||
if (!language.__emitTokens) {
|
||||
top.matcher.considerAll();
|
||||
|
||||
for (;;) {
|
||||
iterations++;
|
||||
if (resumeScanAtSamePosition) {
|
||||
// only regexes not matched previously will now be
|
||||
// considered for a potential match
|
||||
resumeScanAtSamePosition = false;
|
||||
} else {
|
||||
top.matcher.considerAll();
|
||||
for (;;) {
|
||||
iterations++;
|
||||
if (resumeScanAtSamePosition) {
|
||||
// only regexes not matched previously will now be
|
||||
// considered for a potential match
|
||||
resumeScanAtSamePosition = false;
|
||||
} else {
|
||||
top.matcher.considerAll();
|
||||
}
|
||||
top.matcher.lastIndex = index;
|
||||
|
||||
const match = top.matcher.exec(codeToHighlight);
|
||||
// console.log("match", match[0], match.rule && match.rule.begin)
|
||||
|
||||
if (!match) break;
|
||||
|
||||
const beforeMatch = codeToHighlight.substring(index, match.index);
|
||||
const processedCount = processLexeme(beforeMatch, match);
|
||||
index = match.index + processedCount;
|
||||
}
|
||||
top.matcher.lastIndex = index;
|
||||
|
||||
const match = top.matcher.exec(codeToHighlight);
|
||||
// console.log("match", match[0], match.rule && match.rule.begin)
|
||||
|
||||
if (!match) break;
|
||||
|
||||
const beforeMatch = codeToHighlight.substring(index, match.index);
|
||||
const processedCount = processLexeme(beforeMatch, match);
|
||||
index = match.index + processedCount;
|
||||
processLexeme(codeToHighlight.substring(index));
|
||||
} else {
|
||||
language.__emitTokens(codeToHighlight, emitter);
|
||||
}
|
||||
processLexeme(codeToHighlight.substring(index));
|
||||
emitter.closeAllNodes();
|
||||
|
||||
emitter.finalize();
|
||||
result = emitter.toHTML();
|
||||
|
||||
return {
|
||||
language: languageName,
|
||||
value: result,
|
||||
relevance: relevance,
|
||||
relevance,
|
||||
illegal: false,
|
||||
_emitter: emitter,
|
||||
_top: top
|
||||
@ -2165,7 +2184,7 @@ const HLJS = function(hljs) {
|
||||
relevance: 0,
|
||||
_illegalBy: {
|
||||
message: err.message,
|
||||
index: index,
|
||||
index,
|
||||
context: codeToHighlight.slice(index - 100, index + 100),
|
||||
mode: err.mode,
|
||||
resultSoFar: result
|
||||
@ -2287,7 +2306,7 @@ const HLJS = function(hljs) {
|
||||
if (shouldNotHighlight(language)) return;
|
||||
|
||||
fire("before:highlightElement",
|
||||
{ el: element, language: language });
|
||||
{ el: element, language });
|
||||
|
||||
// we should be all text, no child nodes (unescaped HTML) - this is possibly
|
||||
// an HTML injection attack - it's likely too late if this is already in
|
||||
@ -2491,6 +2510,16 @@ const HLJS = function(hljs) {
|
||||
plugins.push(plugin);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {HLJSPlugin} plugin
|
||||
*/
|
||||
function removePlugin(plugin) {
|
||||
const index = plugins.indexOf(plugin);
|
||||
if (index !== -1) {
|
||||
plugins.splice(index, 1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {PluginEvent} event
|
||||
@ -2534,7 +2563,8 @@ const HLJS = function(hljs) {
|
||||
registerAliases,
|
||||
autoDetection,
|
||||
inherit,
|
||||
addPlugin
|
||||
addPlugin,
|
||||
removePlugin
|
||||
});
|
||||
|
||||
hljs.debugMode = function() { SAFE_MODE = false; };
|
||||
@ -2553,7 +2583,7 @@ const HLJS = function(hljs) {
|
||||
// @ts-ignore
|
||||
if (typeof MODES[key] === "object") {
|
||||
// @ts-ignore
|
||||
deepFreezeEs6.exports(MODES[key]);
|
||||
deepFreeze(MODES[key]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2563,7 +2593,11 @@ const HLJS = function(hljs) {
|
||||
return hljs;
|
||||
};
|
||||
|
||||
// export an "instance" of the highlighter
|
||||
var highlight = HLJS({});
|
||||
// Other names for the variable may break build script
|
||||
const highlight = HLJS({});
|
||||
|
||||
// returns a new instance of the highlighter to be used for extensions
|
||||
// check https://github.com/wooorm/lowlight/issues/47
|
||||
highlight.newInstance = () => HLJS({});
|
||||
|
||||
export { highlight as default };
|
||||
|
440
vendor/assets/javascripts/highlightjs/es/core.min.js
vendored
440
vendor/assets/javascripts/highlightjs/es/core.min.js
vendored
@ -1,33 +1,32 @@
|
||||
/*!
|
||||
Highlight.js v11.6.0 (git: bed790f3f3)
|
||||
(c) 2006-2022 undefined and other contributors
|
||||
Highlight.js v11.8.0 (git: 65687a907b)
|
||||
(c) 2006-2023 undefined and other contributors
|
||||
License: BSD-3-Clause
|
||||
*/
|
||||
var e={exports:{}};function t(e){
|
||||
return e instanceof Map?e.clear=e.delete=e.set=()=>{
|
||||
throw Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=()=>{
|
||||
function e(t){return t instanceof Map?t.clear=t.delete=t.set=()=>{
|
||||
throw Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=()=>{
|
||||
throw Error("set is read-only")
|
||||
}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((n=>{var i=e[n]
|
||||
;"object"!=typeof i||Object.isFrozen(i)||t(i)})),e}
|
||||
e.exports=t,e.exports.default=t;class n{constructor(e){
|
||||
}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((n=>{
|
||||
const i=t[n],s=typeof i;"object"!==s&&"function"!==s||Object.isFrozen(i)||e(i)
|
||||
})),t}class t{constructor(e){
|
||||
void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}
|
||||
ignoreMatch(){this.isMatchIgnored=!0}}function i(e){
|
||||
ignoreMatch(){this.isMatchIgnored=!0}}function n(e){
|
||||
return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")
|
||||
}function r(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t]
|
||||
;return t.forEach((e=>{for(const t in e)n[t]=e[t]})),n}
|
||||
const s=e=>!!e.scope||e.sublanguage&&e.language;class o{constructor(e,t){
|
||||
}function i(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t]
|
||||
;return t.forEach((e=>{for(const t in e)n[t]=e[t]})),n}const s=e=>!!e.scope
|
||||
;class r{constructor(e,t){
|
||||
this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){
|
||||
this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=""
|
||||
;t=e.sublanguage?"language-"+e.language:((e,{prefix:t})=>{if(e.includes(".")){
|
||||
const n=e.split(".")
|
||||
this.buffer+=n(e)}openNode(e){if(!s(e))return;const t=((e,{prefix:t})=>{
|
||||
if(e.startsWith("language:"))return e.replace("language:","language-")
|
||||
;if(e.includes(".")){const n=e.split(".")
|
||||
;return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")
|
||||
}return`${t}${e}`})(e.scope,{prefix:this.classPrefix}),this.span(t)}
|
||||
}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}
|
||||
closeNode(e){s(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){
|
||||
this.buffer+=`<span class="${e}">`}}const a=(e={})=>{const t={children:[]}
|
||||
;return Object.assign(t,e),t};class c{constructor(){
|
||||
this.rootNode=a(),this.stack=[this.rootNode]}get top(){
|
||||
this.buffer+=`<span class="${e}">`}}const o=(e={})=>{const t={children:[]}
|
||||
;return Object.assign(t,e),t};class a{constructor(){
|
||||
this.rootNode=o(),this.stack=[this.rootNode]}get top(){
|
||||
return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){
|
||||
this.top.children.push(e)}openNode(e){const t=a({scope:e})
|
||||
this.top.children.push(e)}openNode(e){const t=o({scope:e})
|
||||
;this.add(t),this.stack.push(t)}closeNode(){
|
||||
if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){
|
||||
for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}
|
||||
@ -35,106 +34,105 @@ walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){
|
||||
return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),
|
||||
t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){
|
||||
"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{
|
||||
c._collapse(e)})))}}class l extends c{constructor(e){super(),this.options=e}
|
||||
addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}
|
||||
addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root
|
||||
;n.sublanguage=!0,n.language=t,this.add(n)}toHTML(){
|
||||
return new o(this,this.options).value()}finalize(){return!0}}function g(e){
|
||||
return e?"string"==typeof e?e:e.source:null}function d(e){return p("(?=",e,")")}
|
||||
function u(e){return p("(?:",e,")*")}function h(e){return p("(?:",e,")?")}
|
||||
function p(...e){return e.map((e=>g(e))).join("")}function f(...e){const t=(e=>{
|
||||
a._collapse(e)})))}}class c extends a{constructor(e){super(),this.options=e}
|
||||
addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){
|
||||
this.closeNode()}__addSublanguage(e,t){const n=e.root
|
||||
;t&&(n.scope="language:"+t),this.add(n)}toHTML(){
|
||||
return new r(this,this.options).value()}finalize(){
|
||||
return this.closeAllNodes(),!0}}function l(e){
|
||||
return e?"string"==typeof e?e:e.source:null}function g(e){return h("(?=",e,")")}
|
||||
function u(e){return h("(?:",e,")*")}function d(e){return h("(?:",e,")?")}
|
||||
function h(...e){return e.map((e=>l(e))).join("")}function f(...e){const t=(e=>{
|
||||
const t=e[e.length-1]
|
||||
;return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}
|
||||
})(e);return"("+(t.capture?"":"?:")+e.map((e=>g(e))).join("|")+")"}
|
||||
function b(e){return RegExp(e.toString()+"|").exec("").length-1}
|
||||
const m=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./
|
||||
;function E(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n
|
||||
;let i=g(e),r="";for(;i.length>0;){const e=m.exec(i);if(!e){r+=i;break}
|
||||
r+=i.substring(0,e.index),
|
||||
i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+(Number(e[1])+t):(r+=e[0],
|
||||
"("===e[0]&&n++)}return r})).map((e=>`(${e})`)).join(t)}
|
||||
const x="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",w={
|
||||
begin:"\\\\[\\s\\S]",relevance:0},y={scope:"string",begin:"'",end:"'",
|
||||
illegal:"\\n",contains:[w]},_={scope:"string",begin:'"',end:'"',illegal:"\\n",
|
||||
contains:[w]},O=(e,t,n={})=>{const i=r({scope:"comment",begin:e,end:t,
|
||||
contains:[]},n);i.contains.push({scope:"doctag",
|
||||
})(e);return"("+(t.capture?"":"?:")+e.map((e=>l(e))).join("|")+")"}
|
||||
function p(e){return RegExp(e.toString()+"|").exec("").length-1}
|
||||
const b=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./
|
||||
;function m(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n
|
||||
;let i=l(e),s="";for(;i.length>0;){const e=b.exec(i);if(!e){s+=i;break}
|
||||
s+=i.substring(0,e.index),
|
||||
i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?s+="\\"+(Number(e[1])+t):(s+=e[0],
|
||||
"("===e[0]&&n++)}return s})).map((e=>`(${e})`)).join(t)}
|
||||
const E="[a-zA-Z]\\w*",x="[a-zA-Z_]\\w*",w="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",y="\\b(0b[01]+)",O={
|
||||
begin:"\\\\[\\s\\S]",relevance:0},k={scope:"string",begin:"'",end:"'",
|
||||
illegal:"\\n",contains:[O]},N={scope:"string",begin:'"',end:'"',illegal:"\\n",
|
||||
contains:[O]},S=(e,t,n={})=>{const s=i({scope:"comment",begin:e,end:t,
|
||||
contains:[]},n);s.contains.push({scope:"doctag",
|
||||
begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
|
||||
end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0})
|
||||
;const s=f("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/)
|
||||
;return i.contains.push({begin:p(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i
|
||||
},v=O("//","$"),N=O("/\\*","\\*/"),k=O("#","$");var M=Object.freeze({
|
||||
__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:"[a-zA-Z]\\w*",
|
||||
UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:x,
|
||||
BINARY_NUMBER_RE:"\\b(0b[01]+)",
|
||||
;const r=f("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/)
|
||||
;return s.contains.push({begin:h(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s
|
||||
},v=S("//","$"),M=S("/\\*","\\*/"),R=S("#","$");var A=Object.freeze({
|
||||
__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:E,UNDERSCORE_IDENT_RE:x,
|
||||
NUMBER_RE:w,C_NUMBER_RE:_,BINARY_NUMBER_RE:y,
|
||||
RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",
|
||||
SHEBANG:(e={})=>{const t=/^#![ ]*\//
|
||||
;return e.binary&&(e.begin=p(t,/.*\b/,e.binary,/\b.*/)),r({scope:"meta",begin:t,
|
||||
;return e.binary&&(e.begin=h(t,/.*\b/,e.binary,/\b.*/)),i({scope:"meta",begin:t,
|
||||
end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},
|
||||
BACKSLASH_ESCAPE:w,APOS_STRING_MODE:y,QUOTE_STRING_MODE:_,PHRASAL_WORDS_MODE:{
|
||||
BACKSLASH_ESCAPE:O,APOS_STRING_MODE:k,QUOTE_STRING_MODE:N,PHRASAL_WORDS_MODE:{
|
||||
begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
||||
},COMMENT:O,C_LINE_COMMENT_MODE:v,C_BLOCK_COMMENT_MODE:N,HASH_COMMENT_MODE:k,
|
||||
NUMBER_MODE:{scope:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},
|
||||
C_NUMBER_MODE:{scope:"number",begin:x,relevance:0},BINARY_NUMBER_MODE:{
|
||||
scope:"number",begin:"\\b(0b[01]+)",relevance:0},REGEXP_MODE:{
|
||||
begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,
|
||||
illegal:/\n/,contains:[w,{begin:/\[/,end:/\]/,relevance:0,contains:[w]}]}]},
|
||||
TITLE_MODE:{scope:"title",begin:"[a-zA-Z]\\w*",relevance:0},
|
||||
UNDERSCORE_TITLE_MODE:{scope:"title",begin:"[a-zA-Z_]\\w*",relevance:0},
|
||||
METHOD_GUARD:{begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},
|
||||
END_SAME_AS_BEGIN:e=>Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]
|
||||
},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})})
|
||||
;function S(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function R(e,t){
|
||||
void 0!==e.className&&(e.scope=e.className,delete e.className)}function A(e,t){
|
||||
},COMMENT:S,C_LINE_COMMENT_MODE:v,C_BLOCK_COMMENT_MODE:M,HASH_COMMENT_MODE:R,
|
||||
NUMBER_MODE:{scope:"number",begin:w,relevance:0},C_NUMBER_MODE:{scope:"number",
|
||||
begin:_,relevance:0},BINARY_NUMBER_MODE:{scope:"number",begin:y,relevance:0},
|
||||
REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,
|
||||
end:/\/[gimuy]*/,illegal:/\n/,contains:[O,{begin:/\[/,end:/\]/,relevance:0,
|
||||
contains:[O]}]}]},TITLE_MODE:{scope:"title",begin:E,relevance:0},
|
||||
UNDERSCORE_TITLE_MODE:{scope:"title",begin:x,relevance:0},METHOD_GUARD:{
|
||||
begin:"\\.\\s*"+x,relevance:0},END_SAME_AS_BEGIN:e=>Object.assign(e,{
|
||||
"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{
|
||||
t.data._beginMatch!==e[1]&&t.ignoreMatch()}})});function j(e,t){
|
||||
"."===e.input[e.index-1]&&t.ignoreMatch()}function I(e,t){
|
||||
void 0!==e.className&&(e.scope=e.className,delete e.className)}function T(e,t){
|
||||
t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",
|
||||
e.__beforeBegin=S,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,
|
||||
void 0===e.relevance&&(e.relevance=0))}function j(e,t){
|
||||
Array.isArray(e.illegal)&&(e.illegal=f(...e.illegal))}function I(e,t){
|
||||
e.__beforeBegin=j,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,
|
||||
void 0===e.relevance&&(e.relevance=0))}function L(e,t){
|
||||
Array.isArray(e.illegal)&&(e.illegal=f(...e.illegal))}function B(e,t){
|
||||
if(e.match){
|
||||
if(e.begin||e.end)throw Error("begin & end are not supported with match")
|
||||
;e.begin=e.match,delete e.match}}function T(e,t){
|
||||
void 0===e.relevance&&(e.relevance=1)}const L=(e,t)=>{if(!e.beforeMatch)return
|
||||
;e.begin=e.match,delete e.match}}function P(e,t){
|
||||
void 0===e.relevance&&(e.relevance=1)}const D=(e,t)=>{if(!e.beforeMatch)return
|
||||
;if(e.starts)throw Error("beforeMatch cannot be used with starts")
|
||||
;const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]
|
||||
})),e.keywords=n.keywords,e.begin=p(n.beforeMatch,d(n.begin)),e.starts={
|
||||
})),e.keywords=n.keywords,e.begin=h(n.beforeMatch,g(n.begin)),e.starts={
|
||||
relevance:0,contains:[Object.assign(n,{endsParent:!0})]
|
||||
},e.relevance=0,delete n.beforeMatch
|
||||
},B=["of","and","for","in","not","or","if","then","parent","list","value"]
|
||||
;function D(e,t,n="keyword"){const i=Object.create(null)
|
||||
;return"string"==typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach((n=>{
|
||||
Object.assign(i,D(e[n],t,n))})),i;function r(e,n){
|
||||
},H=["of","and","for","in","not","or","if","then","parent","list","value"],C="keyword"
|
||||
;function $(e,t,n=C){const i=Object.create(null)
|
||||
;return"string"==typeof e?s(n,e.split(" ")):Array.isArray(e)?s(n,e):Object.keys(e).forEach((n=>{
|
||||
Object.assign(i,$(e[n],t,n))})),i;function s(e,n){
|
||||
t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((t=>{const n=t.split("|")
|
||||
;i[n[0]]=[e,H(n[0],n[1])]}))}}function H(e,t){
|
||||
return t?Number(t):(e=>B.includes(e.toLowerCase()))(e)?0:1}const P={},C=e=>{
|
||||
console.error(e)},$=(e,...t)=>{console.log("WARN: "+e,...t)},U=(e,t)=>{
|
||||
P[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),P[`${e}/${t}`]=!0)
|
||||
},z=Error();function K(e,t,{key:n}){let i=0;const r=e[n],s={},o={}
|
||||
;for(let e=1;e<=t.length;e++)o[e+i]=r[e],s[e+i]=!0,i+=b(t[e-1])
|
||||
;e[n]=o,e[n]._emit=s,e[n]._multi=!0}function W(e){(e=>{
|
||||
;i[n[0]]=[e,U(n[0],n[1])]}))}}function U(e,t){
|
||||
return t?Number(t):(e=>H.includes(e.toLowerCase()))(e)?0:1}const z={},W=e=>{
|
||||
console.error(e)},X=(e,...t)=>{console.log("WARN: "+e,...t)},G=(e,t)=>{
|
||||
z[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),z[`${e}/${t}`]=!0)
|
||||
},K=Error();function F(e,t,{key:n}){let i=0;const s=e[n],r={},o={}
|
||||
;for(let e=1;e<=t.length;e++)o[e+i]=s[e],r[e+i]=!0,i+=p(t[e-1])
|
||||
;e[n]=o,e[n]._emit=r,e[n]._multi=!0}function Z(e){(e=>{
|
||||
e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,
|
||||
delete e.scope)})(e),"string"==typeof e.beginScope&&(e.beginScope={
|
||||
_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope
|
||||
}),(e=>{if(Array.isArray(e.begin)){
|
||||
if(e.skip||e.excludeBegin||e.returnBegin)throw C("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
||||
z
|
||||
;if("object"!=typeof e.beginScope||null===e.beginScope)throw C("beginScope must be object"),
|
||||
z;K(e,e.begin,{key:"beginScope"}),e.begin=E(e.begin,{joinWith:""})}})(e),(e=>{
|
||||
if(e.skip||e.excludeBegin||e.returnBegin)throw W("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
||||
K
|
||||
;if("object"!=typeof e.beginScope||null===e.beginScope)throw W("beginScope must be object"),
|
||||
K;F(e,e.begin,{key:"beginScope"}),e.begin=m(e.begin,{joinWith:""})}})(e),(e=>{
|
||||
if(Array.isArray(e.end)){
|
||||
if(e.skip||e.excludeEnd||e.returnEnd)throw C("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
||||
z
|
||||
;if("object"!=typeof e.endScope||null===e.endScope)throw C("endScope must be object"),
|
||||
z;K(e,e.end,{key:"endScope"}),e.end=E(e.end,{joinWith:""})}})(e)}function X(e){
|
||||
if(e.skip||e.excludeEnd||e.returnEnd)throw W("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
||||
K
|
||||
;if("object"!=typeof e.endScope||null===e.endScope)throw W("endScope must be object"),
|
||||
K;F(e,e.end,{key:"endScope"}),e.end=m(e.end,{joinWith:""})}})(e)}function V(e){
|
||||
function t(t,n){
|
||||
return RegExp(g(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))
|
||||
return RegExp(l(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))
|
||||
}class n{constructor(){
|
||||
this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}
|
||||
addRule(e,t){
|
||||
t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),
|
||||
this.matchAt+=b(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null)
|
||||
;const e=this.regexes.map((e=>e[1]));this.matcherRe=t(E(e,{joinWith:"|"
|
||||
this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null)
|
||||
;const e=this.regexes.map((e=>e[1]));this.matcherRe=t(m(e,{joinWith:"|"
|
||||
}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex
|
||||
;const t=this.matcherRe.exec(e);if(!t)return null
|
||||
;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),i=this.matchIndexes[n]
|
||||
;return t.splice(0,n),Object.assign(t,i)}}class i{constructor(){
|
||||
;return t.splice(0,n),Object.assign(t,i)}}class s{constructor(){
|
||||
this.rules=[],this.multiRegexes=[],
|
||||
this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){
|
||||
if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n
|
||||
@ -150,157 +148,159 @@ return n&&(this.regexIndex+=n.position+1,
|
||||
this.regexIndex===this.count&&this.considerAll()),n}}
|
||||
if(e.compilerExtensions||(e.compilerExtensions=[]),
|
||||
e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")
|
||||
;return e.classNameAliases=r(e.classNameAliases||{}),function n(s,o){const a=s
|
||||
;if(s.isCompiled)return a
|
||||
;[R,I,W,L].forEach((e=>e(s,o))),e.compilerExtensions.forEach((e=>e(s,o))),
|
||||
s.__beforeBegin=null,[A,j,T].forEach((e=>e(s,o))),s.isCompiled=!0;let c=null
|
||||
;return"object"==typeof s.keywords&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),
|
||||
c=s.keywords.$pattern,
|
||||
delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=D(s.keywords,e.case_insensitive)),
|
||||
;return e.classNameAliases=i(e.classNameAliases||{}),function n(r,o){const a=r
|
||||
;if(r.isCompiled)return a
|
||||
;[I,B,Z,D].forEach((e=>e(r,o))),e.compilerExtensions.forEach((e=>e(r,o))),
|
||||
r.__beforeBegin=null,[T,L,P].forEach((e=>e(r,o))),r.isCompiled=!0;let c=null
|
||||
;return"object"==typeof r.keywords&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),
|
||||
c=r.keywords.$pattern,
|
||||
delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=$(r.keywords,e.case_insensitive)),
|
||||
a.keywordPatternRe=t(c,!0),
|
||||
o&&(s.begin||(s.begin=/\B|\b/),a.beginRe=t(a.begin),s.end||s.endsWithParent||(s.end=/\B|\b/),
|
||||
s.end&&(a.endRe=t(a.end)),
|
||||
a.terminatorEnd=g(a.end)||"",s.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(s.end?"|":"")+o.terminatorEnd)),
|
||||
s.illegal&&(a.illegalRe=t(s.illegal)),
|
||||
s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((t=>r(e,{
|
||||
variants:null},t)))),e.cachedVariants?e.cachedVariants:Z(e)?r(e,{
|
||||
starts:e.starts?r(e.starts):null
|
||||
}):Object.isFrozen(e)?r(e):e))("self"===e?s:e)))),s.contains.forEach((e=>{n(e,a)
|
||||
})),s.starts&&n(s.starts,o),a.matcher=(e=>{const t=new i
|
||||
o&&(r.begin||(r.begin=/\B|\b/),a.beginRe=t(a.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),
|
||||
r.end&&(a.endRe=t(a.end)),
|
||||
a.terminatorEnd=l(a.end)||"",r.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),
|
||||
r.illegal&&(a.illegalRe=t(r.illegal)),
|
||||
r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((t=>i(e,{
|
||||
variants:null},t)))),e.cachedVariants?e.cachedVariants:q(e)?i(e,{
|
||||
starts:e.starts?i(e.starts):null
|
||||
}):Object.isFrozen(e)?i(e):e))("self"===e?r:e)))),r.contains.forEach((e=>{n(e,a)
|
||||
})),r.starts&&n(r.starts,o),a.matcher=(e=>{const t=new s
|
||||
;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"
|
||||
}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"
|
||||
}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t})(a),a}(e)}function Z(e){
|
||||
return!!e&&(e.endsWithParent||Z(e.starts))}class G extends Error{
|
||||
}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t})(a),a}(e)}function q(e){
|
||||
return!!e&&(e.endsWithParent||q(e.starts))}class J extends Error{
|
||||
constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}
|
||||
const F=i,V=r,q=Symbol("nomatch");var J=(t=>{
|
||||
const i=Object.create(null),r=Object.create(null),s=[];let o=!0
|
||||
;const a="Could not find the language '{}', did you forget to load/include a language module?",c={
|
||||
disableAutodetect:!0,name:"Plain text",contains:[]};let g={
|
||||
const Y=n,Q=i,ee=Symbol("nomatch"),te=n=>{
|
||||
const i=Object.create(null),s=Object.create(null),r=[];let o=!0
|
||||
;const a="Could not find the language '{}', did you forget to load/include a language module?",l={
|
||||
disableAutodetect:!0,name:"Plain text",contains:[]};let p={
|
||||
ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,
|
||||
languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",
|
||||
cssSelector:"pre code",languages:null,__emitter:l};function b(e){
|
||||
return g.noHighlightRe.test(e)}function m(e,t,n){let i="",r=""
|
||||
cssSelector:"pre code",languages:null,__emitter:c};function b(e){
|
||||
return p.noHighlightRe.test(e)}function m(e,t,n){let i="",s=""
|
||||
;"object"==typeof t?(i=e,
|
||||
n=t.ignoreIllegals,r=t.language):(U("10.7.0","highlight(lang, code, ...args) has been deprecated."),
|
||||
U("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),
|
||||
r=e,i=t),void 0===n&&(n=!0);const s={code:i,language:r};k("before:highlight",s)
|
||||
;const o=s.result?s.result:E(s.language,s.code,n)
|
||||
;return o.code=s.code,k("after:highlight",o),o}function E(e,t,r,s){
|
||||
const c=Object.create(null);function l(){if(!N.keywords)return void M.addText(S)
|
||||
;let e=0;N.keywordPatternRe.lastIndex=0;let t=N.keywordPatternRe.exec(S),n=""
|
||||
;for(;t;){n+=S.substring(e,t.index)
|
||||
;const r=y.case_insensitive?t[0].toLowerCase():t[0],s=(i=r,N.keywords[i]);if(s){
|
||||
const[e,i]=s
|
||||
;if(M.addText(n),n="",c[r]=(c[r]||0)+1,c[r]<=7&&(R+=i),e.startsWith("_"))n+=t[0];else{
|
||||
const n=y.classNameAliases[e]||e;M.addKeyword(t[0],n)}}else n+=t[0]
|
||||
;e=N.keywordPatternRe.lastIndex,t=N.keywordPatternRe.exec(S)}var i
|
||||
;n+=S.substring(e),M.addText(n)}function d(){null!=N.subLanguage?(()=>{
|
||||
if(""===S)return;let e=null;if("string"==typeof N.subLanguage){
|
||||
if(!i[N.subLanguage])return void M.addText(S)
|
||||
;e=E(N.subLanguage,S,!0,k[N.subLanguage]),k[N.subLanguage]=e._top
|
||||
}else e=x(S,N.subLanguage.length?N.subLanguage:null)
|
||||
;N.relevance>0&&(R+=e.relevance),M.addSublanguage(e._emitter,e.language)
|
||||
})():l(),S=""}function u(e,t){let n=1;const i=t.length-1;for(;n<=i;){
|
||||
if(!e._emit[n]){n++;continue}const i=y.classNameAliases[e[n]]||e[n],r=t[n]
|
||||
;i?M.addKeyword(r,i):(S=r,l(),S=""),n++}}function h(e,t){
|
||||
n=t.ignoreIllegals,s=t.language):(G("10.7.0","highlight(lang, code, ...args) has been deprecated."),
|
||||
G("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),
|
||||
s=e,i=t),void 0===n&&(n=!0);const r={code:i,language:s};S("before:highlight",r)
|
||||
;const o=r.result?r.result:E(r.language,r.code,n)
|
||||
;return o.code=r.code,S("after:highlight",o),o}function E(e,n,s,r){
|
||||
const c=Object.create(null);function l(){if(!S.keywords)return void M.addText(R)
|
||||
;let e=0;S.keywordPatternRe.lastIndex=0;let t=S.keywordPatternRe.exec(R),n=""
|
||||
;for(;t;){n+=R.substring(e,t.index)
|
||||
;const s=y.case_insensitive?t[0].toLowerCase():t[0],r=(i=s,S.keywords[i]);if(r){
|
||||
const[e,i]=r
|
||||
;if(M.addText(n),n="",c[s]=(c[s]||0)+1,c[s]<=7&&(A+=i),e.startsWith("_"))n+=t[0];else{
|
||||
const n=y.classNameAliases[e]||e;u(t[0],n)}}else n+=t[0]
|
||||
;e=S.keywordPatternRe.lastIndex,t=S.keywordPatternRe.exec(R)}var i
|
||||
;n+=R.substring(e),M.addText(n)}function g(){null!=S.subLanguage?(()=>{
|
||||
if(""===R)return;let e=null;if("string"==typeof S.subLanguage){
|
||||
if(!i[S.subLanguage])return void M.addText(R)
|
||||
;e=E(S.subLanguage,R,!0,v[S.subLanguage]),v[S.subLanguage]=e._top
|
||||
}else e=x(R,S.subLanguage.length?S.subLanguage:null)
|
||||
;S.relevance>0&&(A+=e.relevance),M.__addSublanguage(e._emitter,e.language)
|
||||
})():l(),R=""}function u(e,t){
|
||||
""!==e&&(M.startScope(t),M.addText(e),M.endScope())}function d(e,t){let n=1
|
||||
;const i=t.length-1;for(;n<=i;){if(!e._emit[n]){n++;continue}
|
||||
const i=y.classNameAliases[e[n]]||e[n],s=t[n];i?u(s,i):(R=s,l(),R=""),n++}}
|
||||
function h(e,t){
|
||||
return e.scope&&"string"==typeof e.scope&&M.openNode(y.classNameAliases[e.scope]||e.scope),
|
||||
e.beginScope&&(e.beginScope._wrap?(M.addKeyword(S,y.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),
|
||||
S=""):e.beginScope._multi&&(u(e.beginScope,t),S="")),N=Object.create(e,{parent:{
|
||||
value:N}}),N}function p(e,t,i){let r=((e,t)=>{const n=e&&e.exec(t)
|
||||
;return n&&0===n.index})(e.endRe,i);if(r){if(e["on:end"]){const i=new n(e)
|
||||
;e["on:end"](t,i),i.isMatchIgnored&&(r=!1)}if(r){
|
||||
e.beginScope&&(e.beginScope._wrap?(u(R,y.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),
|
||||
R=""):e.beginScope._multi&&(d(e.beginScope,t),R="")),S=Object.create(e,{parent:{
|
||||
value:S}}),S}function f(e,n,i){let s=((e,t)=>{const n=e&&e.exec(t)
|
||||
;return n&&0===n.index})(e.endRe,i);if(s){if(e["on:end"]){const i=new t(e)
|
||||
;e["on:end"](n,i),i.isMatchIgnored&&(s=!1)}if(s){
|
||||
for(;e.endsParent&&e.parent;)e=e.parent;return e}}
|
||||
if(e.endsWithParent)return p(e.parent,t,i)}function f(e){
|
||||
return 0===N.matcher.regexIndex?(S+=e[0],1):(I=!0,0)}function b(e){
|
||||
const n=e[0],i=t.substring(e.index),r=p(N,e,i);if(!r)return q;const s=N
|
||||
;N.endScope&&N.endScope._wrap?(d(),
|
||||
M.addKeyword(n,N.endScope._wrap)):N.endScope&&N.endScope._multi?(d(),
|
||||
u(N.endScope,e)):s.skip?S+=n:(s.returnEnd||s.excludeEnd||(S+=n),
|
||||
d(),s.excludeEnd&&(S=n));do{
|
||||
N.scope&&M.closeNode(),N.skip||N.subLanguage||(R+=N.relevance),N=N.parent
|
||||
}while(N!==r.parent);return r.starts&&h(r.starts,e),s.returnEnd?0:n.length}
|
||||
let m={};function w(i,s){const a=s&&s[0];if(S+=i,null==a)return d(),0
|
||||
;if("begin"===m.type&&"end"===s.type&&m.index===s.index&&""===a){
|
||||
if(S+=t.slice(s.index,s.index+1),!o){const t=Error(`0 width match regex (${e})`)
|
||||
;throw t.languageName=e,t.badRule=m.rule,t}return 1}
|
||||
if(m=s,"begin"===s.type)return(e=>{
|
||||
const t=e[0],i=e.rule,r=new n(i),s=[i.__beforeBegin,i["on:begin"]]
|
||||
;for(const n of s)if(n&&(n(e,r),r.isMatchIgnored))return f(t)
|
||||
;return i.skip?S+=t:(i.excludeBegin&&(S+=t),
|
||||
d(),i.returnBegin||i.excludeBegin||(S=t)),h(i,e),i.returnBegin?0:t.length})(s)
|
||||
;if("illegal"===s.type&&!r){
|
||||
const e=Error('Illegal lexeme "'+a+'" for mode "'+(N.scope||"<unnamed>")+'"')
|
||||
;throw e.mode=N,e}if("end"===s.type){const e=b(s);if(e!==q)return e}
|
||||
if("illegal"===s.type&&""===a)return 1
|
||||
;if(j>1e5&&j>3*s.index)throw Error("potential infinite loop, way more iterations than matches")
|
||||
;return S+=a,a.length}const y=O(e)
|
||||
;if(!y)throw C(a.replace("{}",e)),Error('Unknown language: "'+e+'"')
|
||||
;const _=X(y);let v="",N=s||_;const k={},M=new g.__emitter(g);(()=>{const e=[]
|
||||
;for(let t=N;t!==y;t=t.parent)t.scope&&e.unshift(t.scope)
|
||||
;e.forEach((e=>M.openNode(e)))})();let S="",R=0,A=0,j=0,I=!1;try{
|
||||
for(N.matcher.considerAll();;){
|
||||
j++,I?I=!1:N.matcher.considerAll(),N.matcher.lastIndex=A
|
||||
;const e=N.matcher.exec(t);if(!e)break;const n=w(t.substring(A,e.index),e)
|
||||
;A=e.index+n}
|
||||
return w(t.substring(A)),M.closeAllNodes(),M.finalize(),v=M.toHTML(),{
|
||||
language:e,value:v,relevance:R,illegal:!1,_emitter:M,_top:N}}catch(n){
|
||||
if(n.message&&n.message.includes("Illegal"))return{language:e,value:F(t),
|
||||
illegal:!0,relevance:0,_illegalBy:{message:n.message,index:A,
|
||||
context:t.slice(A-100,A+100),mode:n.mode,resultSoFar:v},_emitter:M};if(o)return{
|
||||
language:e,value:F(t),illegal:!1,relevance:0,errorRaised:n,_emitter:M,_top:N}
|
||||
;throw n}}function x(e,t){t=t||g.languages||Object.keys(i);const n=(e=>{
|
||||
const t={value:F(e),illegal:!1,relevance:0,_top:c,_emitter:new g.__emitter(g)}
|
||||
;return t._emitter.addText(e),t})(e),r=t.filter(O).filter(N).map((t=>E(t,e,!1)))
|
||||
;r.unshift(n);const s=r.sort(((e,t)=>{
|
||||
if(e.endsWithParent)return f(e.parent,n,i)}function b(e){
|
||||
return 0===S.matcher.regexIndex?(R+=e[0],1):(T=!0,0)}function m(e){
|
||||
const t=e[0],i=n.substring(e.index),s=f(S,e,i);if(!s)return ee;const r=S
|
||||
;S.endScope&&S.endScope._wrap?(g(),
|
||||
u(t,S.endScope._wrap)):S.endScope&&S.endScope._multi?(g(),
|
||||
d(S.endScope,e)):r.skip?R+=t:(r.returnEnd||r.excludeEnd||(R+=t),
|
||||
g(),r.excludeEnd&&(R=t));do{
|
||||
S.scope&&M.closeNode(),S.skip||S.subLanguage||(A+=S.relevance),S=S.parent
|
||||
}while(S!==s.parent);return s.starts&&h(s.starts,e),r.returnEnd?0:t.length}
|
||||
let w={};function _(i,r){const a=r&&r[0];if(R+=i,null==a)return g(),0
|
||||
;if("begin"===w.type&&"end"===r.type&&w.index===r.index&&""===a){
|
||||
if(R+=n.slice(r.index,r.index+1),!o){const t=Error(`0 width match regex (${e})`)
|
||||
;throw t.languageName=e,t.badRule=w.rule,t}return 1}
|
||||
if(w=r,"begin"===r.type)return(e=>{
|
||||
const n=e[0],i=e.rule,s=new t(i),r=[i.__beforeBegin,i["on:begin"]]
|
||||
;for(const t of r)if(t&&(t(e,s),s.isMatchIgnored))return b(n)
|
||||
;return i.skip?R+=n:(i.excludeBegin&&(R+=n),
|
||||
g(),i.returnBegin||i.excludeBegin||(R=n)),h(i,e),i.returnBegin?0:n.length})(r)
|
||||
;if("illegal"===r.type&&!s){
|
||||
const e=Error('Illegal lexeme "'+a+'" for mode "'+(S.scope||"<unnamed>")+'"')
|
||||
;throw e.mode=S,e}if("end"===r.type){const e=m(r);if(e!==ee)return e}
|
||||
if("illegal"===r.type&&""===a)return 1
|
||||
;if(I>1e5&&I>3*r.index)throw Error("potential infinite loop, way more iterations than matches")
|
||||
;return R+=a,a.length}const y=O(e)
|
||||
;if(!y)throw W(a.replace("{}",e)),Error('Unknown language: "'+e+'"')
|
||||
;const k=V(y);let N="",S=r||k;const v={},M=new p.__emitter(p);(()=>{const e=[]
|
||||
;for(let t=S;t!==y;t=t.parent)t.scope&&e.unshift(t.scope)
|
||||
;e.forEach((e=>M.openNode(e)))})();let R="",A=0,j=0,I=0,T=!1;try{
|
||||
if(y.__emitTokens)y.__emitTokens(n,M);else{for(S.matcher.considerAll();;){
|
||||
I++,T?T=!1:S.matcher.considerAll(),S.matcher.lastIndex=j
|
||||
;const e=S.matcher.exec(n);if(!e)break;const t=_(n.substring(j,e.index),e)
|
||||
;j=e.index+t}_(n.substring(j))}return M.finalize(),N=M.toHTML(),{language:e,
|
||||
value:N,relevance:A,illegal:!1,_emitter:M,_top:S}}catch(t){
|
||||
if(t.message&&t.message.includes("Illegal"))return{language:e,value:Y(n),
|
||||
illegal:!0,relevance:0,_illegalBy:{message:t.message,index:j,
|
||||
context:n.slice(j-100,j+100),mode:t.mode,resultSoFar:N},_emitter:M};if(o)return{
|
||||
language:e,value:Y(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:S}
|
||||
;throw t}}function x(e,t){t=t||p.languages||Object.keys(i);const n=(e=>{
|
||||
const t={value:Y(e),illegal:!1,relevance:0,_top:l,_emitter:new p.__emitter(p)}
|
||||
;return t._emitter.addText(e),t})(e),s=t.filter(O).filter(N).map((t=>E(t,e,!1)))
|
||||
;s.unshift(n);const r=s.sort(((e,t)=>{
|
||||
if(e.relevance!==t.relevance)return t.relevance-e.relevance
|
||||
;if(e.language&&t.language){if(O(e.language).supersetOf===t.language)return 1
|
||||
;if(O(t.language).supersetOf===e.language)return-1}return 0})),[o,a]=s,l=o
|
||||
;return l.secondBest=a,l}function w(e){let t=null;const n=(e=>{
|
||||
;if(O(t.language).supersetOf===e.language)return-1}return 0})),[o,a]=r,c=o
|
||||
;return c.secondBest=a,c}function w(e){let t=null;const n=(e=>{
|
||||
let t=e.className+" ";t+=e.parentNode?e.parentNode.className:""
|
||||
;const n=g.languageDetectRe.exec(t);if(n){const t=O(n[1])
|
||||
;return t||($(a.replace("{}",n[1])),
|
||||
$("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}
|
||||
;const n=p.languageDetectRe.exec(t);if(n){const t=O(n[1])
|
||||
;return t||(X(a.replace("{}",n[1])),
|
||||
X("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}
|
||||
return t.split(/\s+/).find((e=>b(e)||O(e)))})(e);if(b(n))return
|
||||
;if(k("before:highlightElement",{el:e,language:n
|
||||
}),e.children.length>0&&(g.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),
|
||||
;if(S("before:highlightElement",{el:e,language:n
|
||||
}),e.children.length>0&&(p.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),
|
||||
console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),
|
||||
console.warn("The element with unescaped HTML:"),
|
||||
console.warn(e)),g.throwUnescapedHTML))throw new G("One of your code blocks includes unescaped HTML.",e.innerHTML)
|
||||
;t=e;const i=t.textContent,s=n?m(i,{language:n,ignoreIllegals:!0}):x(i)
|
||||
;e.innerHTML=s.value,((e,t,n)=>{const i=t&&r[t]||n
|
||||
console.warn(e)),p.throwUnescapedHTML))throw new J("One of your code blocks includes unescaped HTML.",e.innerHTML)
|
||||
;t=e;const i=t.textContent,r=n?m(i,{language:n,ignoreIllegals:!0}):x(i)
|
||||
;e.innerHTML=r.value,((e,t,n)=>{const i=t&&s[t]||n
|
||||
;e.classList.add("hljs"),e.classList.add("language-"+i)
|
||||
})(e,n,s.language),e.result={language:s.language,re:s.relevance,
|
||||
relevance:s.relevance},s.secondBest&&(e.secondBest={
|
||||
language:s.secondBest.language,relevance:s.secondBest.relevance
|
||||
}),k("after:highlightElement",{el:e,result:s,text:i})}let y=!1;function _(){
|
||||
"loading"!==document.readyState?document.querySelectorAll(g.cssSelector).forEach(w):y=!0
|
||||
}function O(e){return e=(e||"").toLowerCase(),i[e]||i[r[e]]}
|
||||
function v(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{
|
||||
r[e.toLowerCase()]=t}))}function N(e){const t=O(e)
|
||||
;return t&&!t.disableAutodetect}function k(e,t){const n=e;s.forEach((e=>{
|
||||
})(e,n,r.language),e.result={language:r.language,re:r.relevance,
|
||||
relevance:r.relevance},r.secondBest&&(e.secondBest={
|
||||
language:r.secondBest.language,relevance:r.secondBest.relevance
|
||||
}),S("after:highlightElement",{el:e,result:r,text:i})}let _=!1;function y(){
|
||||
"loading"!==document.readyState?document.querySelectorAll(p.cssSelector).forEach(w):_=!0
|
||||
}function O(e){return e=(e||"").toLowerCase(),i[e]||i[s[e]]}
|
||||
function k(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{
|
||||
s[e.toLowerCase()]=t}))}function N(e){const t=O(e)
|
||||
;return t&&!t.disableAutodetect}function S(e,t){const n=e;r.forEach((e=>{
|
||||
e[n]&&e[n](t)}))}
|
||||
"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(()=>{
|
||||
y&&_()}),!1),Object.assign(t,{highlight:m,highlightAuto:x,highlightAll:_,
|
||||
_&&y()}),!1),Object.assign(n,{highlight:m,highlightAuto:x,highlightAll:y,
|
||||
highlightElement:w,
|
||||
highlightBlock:e=>(U("10.7.0","highlightBlock will be removed entirely in v12.0"),
|
||||
U("10.7.0","Please use highlightElement now."),w(e)),configure:e=>{g=V(g,e)},
|
||||
highlightBlock:e=>(G("10.7.0","highlightBlock will be removed entirely in v12.0"),
|
||||
G("10.7.0","Please use highlightElement now."),w(e)),configure:e=>{p=Q(p,e)},
|
||||
initHighlighting:()=>{
|
||||
_(),U("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},
|
||||
y(),G("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},
|
||||
initHighlightingOnLoad:()=>{
|
||||
_(),U("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")
|
||||
},registerLanguage:(e,n)=>{let r=null;try{r=n(t)}catch(t){
|
||||
if(C("Language definition for '{}' could not be registered.".replace("{}",e)),
|
||||
!o)throw t;C(t),r=c}
|
||||
r.name||(r.name=e),i[e]=r,r.rawDefinition=n.bind(null,t),r.aliases&&v(r.aliases,{
|
||||
y(),G("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")
|
||||
},registerLanguage:(e,t)=>{let s=null;try{s=t(n)}catch(t){
|
||||
if(W("Language definition for '{}' could not be registered.".replace("{}",e)),
|
||||
!o)throw t;W(t),s=l}
|
||||
s.name||(s.name=e),i[e]=s,s.rawDefinition=t.bind(null,n),s.aliases&&k(s.aliases,{
|
||||
languageName:e})},unregisterLanguage:e=>{delete i[e]
|
||||
;for(const t of Object.keys(r))r[t]===e&&delete r[t]},
|
||||
listLanguages:()=>Object.keys(i),getLanguage:O,registerAliases:v,
|
||||
autoDetection:N,inherit:V,addPlugin:e=>{(e=>{
|
||||
;for(const t of Object.keys(s))s[t]===e&&delete s[t]},
|
||||
listLanguages:()=>Object.keys(i),getLanguage:O,registerAliases:k,
|
||||
autoDetection:N,inherit:Q,addPlugin:e=>{(e=>{
|
||||
e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{
|
||||
e["before:highlightBlock"](Object.assign({block:t.el},t))
|
||||
}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{
|
||||
e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),s.push(e)}
|
||||
}),t.debugMode=()=>{o=!1},t.safeMode=()=>{o=!0
|
||||
},t.versionString="11.6.0",t.regex={concat:p,lookahead:d,either:f,optional:h,
|
||||
anyNumberOfTimes:u};for(const t in M)"object"==typeof M[t]&&e.exports(M[t])
|
||||
;return Object.assign(t,M),t})({});export{J as default};
|
||||
e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),r.push(e)},
|
||||
removePlugin:e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}),n.debugMode=()=>{
|
||||
o=!1},n.safeMode=()=>{o=!0},n.versionString="11.8.0",n.regex={concat:h,
|
||||
lookahead:g,either:f,optional:d,anyNumberOfTimes:u}
|
||||
;for(const t in A)"object"==typeof A[t]&&e(A[t]);return Object.assign(n,A),n
|
||||
},ne=te({});ne.newInstance=()=>te({});export{ne as default};
|
@ -1,39 +1,43 @@
|
||||
/*!
|
||||
Highlight.js v11.6.0 (git: bed790f3f3)
|
||||
(c) 2006-2022 undefined and other contributors
|
||||
Highlight.js v11.8.0 (git: 65687a907b)
|
||||
(c) 2006-2023 undefined and other contributors
|
||||
License: BSD-3-Clause
|
||||
*/
|
||||
var deepFreezeEs6 = {exports: {}};
|
||||
/* eslint-disable no-multi-assign */
|
||||
|
||||
function deepFreeze(obj) {
|
||||
if (obj instanceof Map) {
|
||||
obj.clear = obj.delete = obj.set = function () {
|
||||
throw new Error('map is read-only');
|
||||
if (obj instanceof Map) {
|
||||
obj.clear =
|
||||
obj.delete =
|
||||
obj.set =
|
||||
function () {
|
||||
throw new Error('map is read-only');
|
||||
};
|
||||
} else if (obj instanceof Set) {
|
||||
obj.add = obj.clear = obj.delete = function () {
|
||||
throw new Error('set is read-only');
|
||||
} else if (obj instanceof Set) {
|
||||
obj.add =
|
||||
obj.clear =
|
||||
obj.delete =
|
||||
function () {
|
||||
throw new Error('set is read-only');
|
||||
};
|
||||
}
|
||||
|
||||
// Freeze self
|
||||
Object.freeze(obj);
|
||||
|
||||
Object.getOwnPropertyNames(obj).forEach((name) => {
|
||||
const prop = obj[name];
|
||||
const type = typeof prop;
|
||||
|
||||
// Freeze prop if it is an object or function and also not already frozen
|
||||
if ((type === 'object' || type === 'function') && !Object.isFrozen(prop)) {
|
||||
deepFreeze(prop);
|
||||
}
|
||||
});
|
||||
|
||||
// Freeze self
|
||||
Object.freeze(obj);
|
||||
|
||||
Object.getOwnPropertyNames(obj).forEach(function (name) {
|
||||
var prop = obj[name];
|
||||
|
||||
// Freeze prop if it is an object
|
||||
if (typeof prop == 'object' && !Object.isFrozen(prop)) {
|
||||
deepFreeze(prop);
|
||||
}
|
||||
});
|
||||
|
||||
return obj;
|
||||
return obj;
|
||||
}
|
||||
|
||||
deepFreezeEs6.exports = deepFreeze;
|
||||
deepFreezeEs6.exports.default = deepFreeze;
|
||||
|
||||
/** @typedef {import('highlight.js').CallbackResponse} CallbackResponse */
|
||||
/** @typedef {import('highlight.js').CompiledMode} CompiledMode */
|
||||
/** @implements CallbackResponse */
|
||||
@ -112,7 +116,7 @@ const SPAN_CLOSE = '</span>';
|
||||
const emitsWrappingTags = (node) => {
|
||||
// rarely we can have a sublanguage where language is undefined
|
||||
// TODO: track down why
|
||||
return !!node.scope || (node.sublanguage && node.language);
|
||||
return !!node.scope;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -121,6 +125,11 @@ const emitsWrappingTags = (node) => {
|
||||
* @param {{prefix:string}} options
|
||||
*/
|
||||
const scopeToCSSClass = (name, { prefix }) => {
|
||||
// sub-language
|
||||
if (name.startsWith("language:")) {
|
||||
return name.replace("language:", "language-");
|
||||
}
|
||||
// tiered scope: comment.line
|
||||
if (name.includes(".")) {
|
||||
const pieces = name.split(".");
|
||||
return [
|
||||
@ -128,6 +137,7 @@ const scopeToCSSClass = (name, { prefix }) => {
|
||||
...(pieces.map((x, i) => `${x}${"_".repeat(i + 1)}`))
|
||||
].join(" ");
|
||||
}
|
||||
// simple scope
|
||||
return `${prefix}${name}`;
|
||||
};
|
||||
|
||||
@ -160,12 +170,8 @@ class HTMLRenderer {
|
||||
openNode(node) {
|
||||
if (!emitsWrappingTags(node)) return;
|
||||
|
||||
let className = "";
|
||||
if (node.sublanguage) {
|
||||
className = `language-${node.language}`;
|
||||
} else {
|
||||
className = scopeToCSSClass(node.scope, { prefix: this.classPrefix });
|
||||
}
|
||||
const className = scopeToCSSClass(node.scope,
|
||||
{ prefix: this.classPrefix });
|
||||
this.span(className);
|
||||
}
|
||||
|
||||
@ -303,13 +309,11 @@ class TokenTree {
|
||||
|
||||
Minimal interface:
|
||||
|
||||
- addKeyword(text, scope)
|
||||
- addText(text)
|
||||
- addSublanguage(emitter, subLanguageName)
|
||||
- __addSublanguage(emitter, subLanguageName)
|
||||
- startScope(scope)
|
||||
- endScope()
|
||||
- finalize()
|
||||
- openNode(scope)
|
||||
- closeNode()
|
||||
- closeAllNodes()
|
||||
- toHTML()
|
||||
|
||||
*/
|
||||
@ -326,18 +330,6 @@ class TokenTreeEmitter extends TokenTree {
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} text
|
||||
* @param {string} scope
|
||||
*/
|
||||
addKeyword(text, scope) {
|
||||
if (text === "") { return; }
|
||||
|
||||
this.openNode(scope);
|
||||
this.addText(text);
|
||||
this.closeNode();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} text
|
||||
*/
|
||||
@ -347,15 +339,24 @@ class TokenTreeEmitter extends TokenTree {
|
||||
this.add(text);
|
||||
}
|
||||
|
||||
/** @param {string} scope */
|
||||
startScope(scope) {
|
||||
this.openNode(scope);
|
||||
}
|
||||
|
||||
endScope() {
|
||||
this.closeNode();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Emitter & {root: DataNode}} emitter
|
||||
* @param {string} name
|
||||
*/
|
||||
addSublanguage(emitter, name) {
|
||||
__addSublanguage(emitter, name) {
|
||||
/** @type DataNode */
|
||||
const node = emitter.root;
|
||||
node.sublanguage = true;
|
||||
node.language = name;
|
||||
if (name) node.scope = `language:${name}`;
|
||||
|
||||
this.add(node);
|
||||
}
|
||||
|
||||
@ -365,6 +366,7 @@ class TokenTreeEmitter extends TokenTree {
|
||||
}
|
||||
|
||||
finalize() {
|
||||
this.closeAllNodes();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -726,31 +728,31 @@ const END_SAME_AS_BEGIN = function(mode) {
|
||||
};
|
||||
|
||||
var MODES$1 = /*#__PURE__*/Object.freeze({
|
||||
__proto__: null,
|
||||
MATCH_NOTHING_RE: MATCH_NOTHING_RE,
|
||||
IDENT_RE: IDENT_RE$1,
|
||||
UNDERSCORE_IDENT_RE: UNDERSCORE_IDENT_RE,
|
||||
NUMBER_RE: NUMBER_RE,
|
||||
C_NUMBER_RE: C_NUMBER_RE,
|
||||
BINARY_NUMBER_RE: BINARY_NUMBER_RE,
|
||||
RE_STARTERS_RE: RE_STARTERS_RE,
|
||||
SHEBANG: SHEBANG,
|
||||
BACKSLASH_ESCAPE: BACKSLASH_ESCAPE,
|
||||
APOS_STRING_MODE: APOS_STRING_MODE,
|
||||
QUOTE_STRING_MODE: QUOTE_STRING_MODE,
|
||||
PHRASAL_WORDS_MODE: PHRASAL_WORDS_MODE,
|
||||
COMMENT: COMMENT,
|
||||
C_LINE_COMMENT_MODE: C_LINE_COMMENT_MODE,
|
||||
C_BLOCK_COMMENT_MODE: C_BLOCK_COMMENT_MODE,
|
||||
HASH_COMMENT_MODE: HASH_COMMENT_MODE,
|
||||
NUMBER_MODE: NUMBER_MODE,
|
||||
C_NUMBER_MODE: C_NUMBER_MODE,
|
||||
BINARY_NUMBER_MODE: BINARY_NUMBER_MODE,
|
||||
REGEXP_MODE: REGEXP_MODE,
|
||||
TITLE_MODE: TITLE_MODE,
|
||||
UNDERSCORE_TITLE_MODE: UNDERSCORE_TITLE_MODE,
|
||||
METHOD_GUARD: METHOD_GUARD,
|
||||
END_SAME_AS_BEGIN: END_SAME_AS_BEGIN
|
||||
__proto__: null,
|
||||
MATCH_NOTHING_RE: MATCH_NOTHING_RE,
|
||||
IDENT_RE: IDENT_RE$1,
|
||||
UNDERSCORE_IDENT_RE: UNDERSCORE_IDENT_RE,
|
||||
NUMBER_RE: NUMBER_RE,
|
||||
C_NUMBER_RE: C_NUMBER_RE,
|
||||
BINARY_NUMBER_RE: BINARY_NUMBER_RE,
|
||||
RE_STARTERS_RE: RE_STARTERS_RE,
|
||||
SHEBANG: SHEBANG,
|
||||
BACKSLASH_ESCAPE: BACKSLASH_ESCAPE,
|
||||
APOS_STRING_MODE: APOS_STRING_MODE,
|
||||
QUOTE_STRING_MODE: QUOTE_STRING_MODE,
|
||||
PHRASAL_WORDS_MODE: PHRASAL_WORDS_MODE,
|
||||
COMMENT: COMMENT,
|
||||
C_LINE_COMMENT_MODE: C_LINE_COMMENT_MODE,
|
||||
C_BLOCK_COMMENT_MODE: C_BLOCK_COMMENT_MODE,
|
||||
HASH_COMMENT_MODE: HASH_COMMENT_MODE,
|
||||
NUMBER_MODE: NUMBER_MODE,
|
||||
C_NUMBER_MODE: C_NUMBER_MODE,
|
||||
BINARY_NUMBER_MODE: BINARY_NUMBER_MODE,
|
||||
REGEXP_MODE: REGEXP_MODE,
|
||||
TITLE_MODE: TITLE_MODE,
|
||||
UNDERSCORE_TITLE_MODE: UNDERSCORE_TITLE_MODE,
|
||||
METHOD_GUARD: METHOD_GUARD,
|
||||
END_SAME_AS_BEGIN: END_SAME_AS_BEGIN
|
||||
});
|
||||
|
||||
/**
|
||||
@ -904,7 +906,7 @@ const DEFAULT_KEYWORD_SCOPE = "keyword";
|
||||
* @param {boolean} caseInsensitive
|
||||
*/
|
||||
function compileKeywords(rawKeywords, caseInsensitive, scopeName = DEFAULT_KEYWORD_SCOPE) {
|
||||
/** @type KeywordDict */
|
||||
/** @type {import("highlight.js/private").KeywordDict} */
|
||||
const compiledKeywords = Object.create(null);
|
||||
|
||||
// input can be a string of keywords, an array of keywords, or a object with
|
||||
@ -1563,7 +1565,7 @@ function expandOrCloneMode(mode) {
|
||||
return mode;
|
||||
}
|
||||
|
||||
var version = "11.6.0";
|
||||
var version = "11.8.0";
|
||||
|
||||
class HTMLInjectionError extends Error {
|
||||
constructor(reason, html) {
|
||||
@ -1578,6 +1580,7 @@ Syntax highlighting with language autodetection.
|
||||
https://highlightjs.org/
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
@typedef {import('highlight.js').Mode} Mode
|
||||
@typedef {import('highlight.js').CompiledMode} CompiledMode
|
||||
@ -1787,7 +1790,7 @@ const HLJS = function(hljs) {
|
||||
buf += match[0];
|
||||
} else {
|
||||
const cssClass = language.classNameAliases[kind] || kind;
|
||||
emitter.addKeyword(match[0], cssClass);
|
||||
emitKeyword(match[0], cssClass);
|
||||
}
|
||||
} else {
|
||||
buf += match[0];
|
||||
@ -1822,7 +1825,7 @@ const HLJS = function(hljs) {
|
||||
if (top.relevance > 0) {
|
||||
relevance += result.relevance;
|
||||
}
|
||||
emitter.addSublanguage(result._emitter, result.language);
|
||||
emitter.__addSublanguage(result._emitter, result.language);
|
||||
}
|
||||
|
||||
function processBuffer() {
|
||||
@ -1834,6 +1837,18 @@ const HLJS = function(hljs) {
|
||||
modeBuffer = '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} text
|
||||
* @param {string} scope
|
||||
*/
|
||||
function emitKeyword(keyword, scope) {
|
||||
if (keyword === "") return;
|
||||
|
||||
emitter.startScope(scope);
|
||||
emitter.addText(keyword);
|
||||
emitter.endScope();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {CompiledScope} scope
|
||||
* @param {RegExpMatchArray} match
|
||||
@ -1846,7 +1861,7 @@ const HLJS = function(hljs) {
|
||||
const klass = language.classNameAliases[scope[i]] || scope[i];
|
||||
const text = match[i];
|
||||
if (klass) {
|
||||
emitter.addKeyword(text, klass);
|
||||
emitKeyword(text, klass);
|
||||
} else {
|
||||
modeBuffer = text;
|
||||
processKeywords();
|
||||
@ -1867,7 +1882,7 @@ const HLJS = function(hljs) {
|
||||
if (mode.beginScope) {
|
||||
// beginScope just wraps the begin match itself in a scope
|
||||
if (mode.beginScope._wrap) {
|
||||
emitter.addKeyword(modeBuffer, language.classNameAliases[mode.beginScope._wrap] || mode.beginScope._wrap);
|
||||
emitKeyword(modeBuffer, language.classNameAliases[mode.beginScope._wrap] || mode.beginScope._wrap);
|
||||
modeBuffer = "";
|
||||
} else if (mode.beginScope._multi) {
|
||||
// at this point modeBuffer should just be the match
|
||||
@ -1978,7 +1993,7 @@ const HLJS = function(hljs) {
|
||||
const origin = top;
|
||||
if (top.endScope && top.endScope._wrap) {
|
||||
processBuffer();
|
||||
emitter.addKeyword(lexeme, top.endScope._wrap);
|
||||
emitKeyword(lexeme, top.endScope._wrap);
|
||||
} else if (top.endScope && top.endScope._multi) {
|
||||
processBuffer();
|
||||
emitMultiClass(top.endScope, match);
|
||||
@ -2121,37 +2136,41 @@ const HLJS = function(hljs) {
|
||||
let resumeScanAtSamePosition = false;
|
||||
|
||||
try {
|
||||
top.matcher.considerAll();
|
||||
if (!language.__emitTokens) {
|
||||
top.matcher.considerAll();
|
||||
|
||||
for (;;) {
|
||||
iterations++;
|
||||
if (resumeScanAtSamePosition) {
|
||||
// only regexes not matched previously will now be
|
||||
// considered for a potential match
|
||||
resumeScanAtSamePosition = false;
|
||||
} else {
|
||||
top.matcher.considerAll();
|
||||
for (;;) {
|
||||
iterations++;
|
||||
if (resumeScanAtSamePosition) {
|
||||
// only regexes not matched previously will now be
|
||||
// considered for a potential match
|
||||
resumeScanAtSamePosition = false;
|
||||
} else {
|
||||
top.matcher.considerAll();
|
||||
}
|
||||
top.matcher.lastIndex = index;
|
||||
|
||||
const match = top.matcher.exec(codeToHighlight);
|
||||
// console.log("match", match[0], match.rule && match.rule.begin)
|
||||
|
||||
if (!match) break;
|
||||
|
||||
const beforeMatch = codeToHighlight.substring(index, match.index);
|
||||
const processedCount = processLexeme(beforeMatch, match);
|
||||
index = match.index + processedCount;
|
||||
}
|
||||
top.matcher.lastIndex = index;
|
||||
|
||||
const match = top.matcher.exec(codeToHighlight);
|
||||
// console.log("match", match[0], match.rule && match.rule.begin)
|
||||
|
||||
if (!match) break;
|
||||
|
||||
const beforeMatch = codeToHighlight.substring(index, match.index);
|
||||
const processedCount = processLexeme(beforeMatch, match);
|
||||
index = match.index + processedCount;
|
||||
processLexeme(codeToHighlight.substring(index));
|
||||
} else {
|
||||
language.__emitTokens(codeToHighlight, emitter);
|
||||
}
|
||||
processLexeme(codeToHighlight.substring(index));
|
||||
emitter.closeAllNodes();
|
||||
|
||||
emitter.finalize();
|
||||
result = emitter.toHTML();
|
||||
|
||||
return {
|
||||
language: languageName,
|
||||
value: result,
|
||||
relevance: relevance,
|
||||
relevance,
|
||||
illegal: false,
|
||||
_emitter: emitter,
|
||||
_top: top
|
||||
@ -2165,7 +2184,7 @@ const HLJS = function(hljs) {
|
||||
relevance: 0,
|
||||
_illegalBy: {
|
||||
message: err.message,
|
||||
index: index,
|
||||
index,
|
||||
context: codeToHighlight.slice(index - 100, index + 100),
|
||||
mode: err.mode,
|
||||
resultSoFar: result
|
||||
@ -2287,7 +2306,7 @@ const HLJS = function(hljs) {
|
||||
if (shouldNotHighlight(language)) return;
|
||||
|
||||
fire("before:highlightElement",
|
||||
{ el: element, language: language });
|
||||
{ el: element, language });
|
||||
|
||||
// we should be all text, no child nodes (unescaped HTML) - this is possibly
|
||||
// an HTML injection attack - it's likely too late if this is already in
|
||||
@ -2491,6 +2510,16 @@ const HLJS = function(hljs) {
|
||||
plugins.push(plugin);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {HLJSPlugin} plugin
|
||||
*/
|
||||
function removePlugin(plugin) {
|
||||
const index = plugins.indexOf(plugin);
|
||||
if (index !== -1) {
|
||||
plugins.splice(index, 1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {PluginEvent} event
|
||||
@ -2534,7 +2563,8 @@ const HLJS = function(hljs) {
|
||||
registerAliases,
|
||||
autoDetection,
|
||||
inherit,
|
||||
addPlugin
|
||||
addPlugin,
|
||||
removePlugin
|
||||
});
|
||||
|
||||
hljs.debugMode = function() { SAFE_MODE = false; };
|
||||
@ -2553,7 +2583,7 @@ const HLJS = function(hljs) {
|
||||
// @ts-ignore
|
||||
if (typeof MODES$1[key] === "object") {
|
||||
// @ts-ignore
|
||||
deepFreezeEs6.exports(MODES$1[key]);
|
||||
deepFreeze(MODES$1[key]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2563,8 +2593,15 @@ const HLJS = function(hljs) {
|
||||
return hljs;
|
||||
};
|
||||
|
||||
// Other names for the variable may break build script
|
||||
const highlight = HLJS({});
|
||||
|
||||
// returns a new instance of the highlighter to be used for extensions
|
||||
// check https://github.com/wooorm/lowlight/issues/47
|
||||
highlight.newInstance = () => HLJS({});
|
||||
|
||||
// export an "instance" of the highlighter
|
||||
var HighlightJS = HLJS({});
|
||||
var HighlightJS = highlight;
|
||||
|
||||
/*
|
||||
Language: Bash
|
||||
@ -2638,7 +2675,7 @@ function bash(hljs) {
|
||||
end: /'/
|
||||
};
|
||||
const ARITHMETIC = {
|
||||
begin: /\$\(\(/,
|
||||
begin: /\$?\(\(/,
|
||||
end: /\)\)/,
|
||||
contains: [
|
||||
{
|
||||
@ -2680,12 +2717,14 @@ function bash(hljs) {
|
||||
"fi",
|
||||
"for",
|
||||
"while",
|
||||
"until",
|
||||
"in",
|
||||
"do",
|
||||
"done",
|
||||
"case",
|
||||
"esac",
|
||||
"function"
|
||||
"function",
|
||||
"select"
|
||||
];
|
||||
|
||||
const LITERALS = [
|
||||
@ -5479,7 +5518,9 @@ function java(hljs) {
|
||||
'requires',
|
||||
'exports',
|
||||
'do',
|
||||
'sealed'
|
||||
'sealed',
|
||||
'yield',
|
||||
'permits'
|
||||
];
|
||||
|
||||
const BUILT_INS = [
|
||||
@ -5804,6 +5845,7 @@ const BUILT_IN_VARIABLES = [
|
||||
"window",
|
||||
"document",
|
||||
"localStorage",
|
||||
"sessionStorage",
|
||||
"module",
|
||||
"global" // Node.js
|
||||
];
|
||||
@ -5861,7 +5903,8 @@ function javascript(hljs) {
|
||||
nextChar === "<" ||
|
||||
// the , gives away that this is not HTML
|
||||
// `<T, A extends keyof T, V>`
|
||||
nextChar === ",") {
|
||||
nextChar === ","
|
||||
) {
|
||||
response.ignoreMatch();
|
||||
return;
|
||||
}
|
||||
@ -5879,10 +5922,18 @@ function javascript(hljs) {
|
||||
// `<blah />` (self-closing)
|
||||
// handled by simpleSelfClosing rule
|
||||
|
||||
// `<From extends string>`
|
||||
// technically this could be HTML, but it smells like a type
|
||||
let m;
|
||||
const afterMatch = match.input.substring(afterMatchIndex);
|
||||
|
||||
// some more template typing stuff
|
||||
// <T = any>(key?: string) => Modify<
|
||||
if ((m = afterMatch.match(/^\s*=/))) {
|
||||
response.ignoreMatch();
|
||||
return;
|
||||
}
|
||||
|
||||
// `<From extends string>`
|
||||
// technically this could be HTML, but it smells like a type
|
||||
// NOTE: This is ugh, but added specifically for https://github.com/highlightjs/highlight.js/issues/3276
|
||||
if ((m = afterMatch.match(/^\s+extends\s+/))) {
|
||||
if (m.index === 0) {
|
||||
@ -5963,6 +6014,19 @@ function javascript(hljs) {
|
||||
subLanguage: 'css'
|
||||
}
|
||||
};
|
||||
const GRAPHQL_TEMPLATE = {
|
||||
begin: 'gql`',
|
||||
end: '',
|
||||
starts: {
|
||||
end: '`',
|
||||
returnEnd: false,
|
||||
contains: [
|
||||
hljs.BACKSLASH_ESCAPE,
|
||||
SUBST
|
||||
],
|
||||
subLanguage: 'graphql'
|
||||
}
|
||||
};
|
||||
const TEMPLATE_STRING = {
|
||||
className: 'string',
|
||||
begin: '`',
|
||||
@ -6024,7 +6088,10 @@ function javascript(hljs) {
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
HTML_TEMPLATE,
|
||||
CSS_TEMPLATE,
|
||||
GRAPHQL_TEMPLATE,
|
||||
TEMPLATE_STRING,
|
||||
// Skip numbers when they are part of a variable name
|
||||
{ match: /\$\d+/ },
|
||||
NUMBER,
|
||||
// This is intentional:
|
||||
// See https://github.com/highlightjs/highlight.js/issues/3288
|
||||
@ -6174,7 +6241,8 @@ function javascript(hljs) {
|
||||
/\b/,
|
||||
noneOf([
|
||||
...BUILT_IN_GLOBALS,
|
||||
"super"
|
||||
"super",
|
||||
"import"
|
||||
]),
|
||||
IDENT_RE$1, regex.lookahead(/\(/)),
|
||||
className: "title.function",
|
||||
@ -6238,7 +6306,7 @@ function javascript(hljs) {
|
||||
};
|
||||
|
||||
return {
|
||||
name: 'Javascript',
|
||||
name: 'JavaScript',
|
||||
aliases: ['js', 'jsx', 'mjs', 'cjs'],
|
||||
keywords: KEYWORDS$1,
|
||||
// this will be extended by TypeScript
|
||||
@ -6255,8 +6323,11 @@ function javascript(hljs) {
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
HTML_TEMPLATE,
|
||||
CSS_TEMPLATE,
|
||||
GRAPHQL_TEMPLATE,
|
||||
TEMPLATE_STRING,
|
||||
COMMENT,
|
||||
// Skip numbers when they are part of a variable name
|
||||
{ match: /\$\d+/ },
|
||||
NUMBER,
|
||||
CLASS_REFERENCE,
|
||||
{
|
||||
@ -7469,11 +7540,11 @@ function markdown(hljs) {
|
||||
contains: [], // defined later
|
||||
variants: [
|
||||
{
|
||||
begin: /_{2}/,
|
||||
begin: /_{2}(?!\s)/,
|
||||
end: /_{2}/
|
||||
},
|
||||
{
|
||||
begin: /\*{2}/,
|
||||
begin: /\*{2}(?!\s)/,
|
||||
end: /\*{2}/
|
||||
}
|
||||
]
|
||||
@ -7483,11 +7554,11 @@ function markdown(hljs) {
|
||||
contains: [], // defined later
|
||||
variants: [
|
||||
{
|
||||
begin: /\*(?!\*)/,
|
||||
begin: /\*(?![*\s])/,
|
||||
end: /\*/
|
||||
},
|
||||
{
|
||||
begin: /_(?!_)/,
|
||||
begin: /_(?![_\s])/,
|
||||
end: /_/,
|
||||
relevance: 0
|
||||
}
|
||||
@ -8344,10 +8415,18 @@ function php(hljs) {
|
||||
illegal: null,
|
||||
contains: hljs.QUOTE_STRING_MODE.contains.concat(SUBST),
|
||||
});
|
||||
const HEREDOC = hljs.END_SAME_AS_BEGIN({
|
||||
begin: /<<<[ \t]*(\w+)\n/,
|
||||
|
||||
const HEREDOC = {
|
||||
begin: /<<<[ \t]*(?:(\w+)|"(\w+)")\n/,
|
||||
end: /[ \t]*(\w+)\b/,
|
||||
contains: hljs.QUOTE_STRING_MODE.contains.concat(SUBST),
|
||||
'on:begin': (m, resp) => { resp.data._beginMatch = m[1] || m[2]; },
|
||||
'on:end': (m, resp) => { if (resp.data._beginMatch !== m[1]) resp.ignoreMatch(); },
|
||||
};
|
||||
|
||||
const NOWDOC = hljs.END_SAME_AS_BEGIN({
|
||||
begin: /<<<[ \t]*'(\w+)'\n/,
|
||||
end: /[ \t]*(\w+)\b/,
|
||||
});
|
||||
// list of valid whitespaces because non-breaking space might be part of a IDENT_RE
|
||||
const WHITESPACE = '[ \t\n]';
|
||||
@ -8356,7 +8435,8 @@ function php(hljs) {
|
||||
variants: [
|
||||
DOUBLE_QUOTED,
|
||||
SINGLE_QUOTED,
|
||||
HEREDOC
|
||||
HEREDOC,
|
||||
NOWDOC
|
||||
]
|
||||
};
|
||||
const NUMBER = {
|
||||
@ -9334,7 +9414,7 @@ function python(hljs) {
|
||||
],
|
||||
unicodeRegex: true,
|
||||
keywords: KEYWORDS,
|
||||
illegal: /(<\/|->|\?)|=>/,
|
||||
illegal: /(<\/|\?)|=>/,
|
||||
contains: [
|
||||
PROMPT,
|
||||
NUMBER,
|
||||
@ -9705,10 +9785,23 @@ function ruby(hljs) {
|
||||
)
|
||||
;
|
||||
const CLASS_NAME_WITH_NAMESPACE_RE = regex.concat(CLASS_NAME_RE, /(::\w+)*/);
|
||||
// very popular ruby built-ins that one might even assume
|
||||
// are actual keywords (despite that not being the case)
|
||||
const PSEUDO_KWS = [
|
||||
"include",
|
||||
"extend",
|
||||
"prepend",
|
||||
"public",
|
||||
"private",
|
||||
"protected",
|
||||
"raise",
|
||||
"throw"
|
||||
];
|
||||
const RUBY_KEYWORDS = {
|
||||
"variable.constant": [
|
||||
"__FILE__",
|
||||
"__LINE__"
|
||||
"__LINE__",
|
||||
"__ENCODING__"
|
||||
],
|
||||
"variable.language": [
|
||||
"self",
|
||||
@ -9717,9 +9810,6 @@ function ruby(hljs) {
|
||||
keyword: [
|
||||
"alias",
|
||||
"and",
|
||||
"attr_accessor",
|
||||
"attr_reader",
|
||||
"attr_writer",
|
||||
"begin",
|
||||
"BEGIN",
|
||||
"break",
|
||||
@ -9735,7 +9825,6 @@ function ruby(hljs) {
|
||||
"for",
|
||||
"if",
|
||||
"in",
|
||||
"include",
|
||||
"module",
|
||||
"next",
|
||||
"not",
|
||||
@ -9752,10 +9841,17 @@ function ruby(hljs) {
|
||||
"when",
|
||||
"while",
|
||||
"yield",
|
||||
...PSEUDO_KWS
|
||||
],
|
||||
built_in: [
|
||||
"proc",
|
||||
"lambda"
|
||||
"lambda",
|
||||
"attr_accessor",
|
||||
"attr_reader",
|
||||
"attr_writer",
|
||||
"define_method",
|
||||
"private_constant",
|
||||
"module_function"
|
||||
],
|
||||
literal: [
|
||||
"true",
|
||||
@ -9914,6 +10010,17 @@ function ruby(hljs) {
|
||||
]
|
||||
};
|
||||
|
||||
const INCLUDE_EXTEND = {
|
||||
match: [
|
||||
/(include|extend)\s+/,
|
||||
CLASS_NAME_WITH_NAMESPACE_RE
|
||||
],
|
||||
scope: {
|
||||
2: "title.class"
|
||||
},
|
||||
keywords: RUBY_KEYWORDS
|
||||
};
|
||||
|
||||
const CLASS_DEFINITION = {
|
||||
variants: [
|
||||
{
|
||||
@ -9926,7 +10033,7 @@ function ruby(hljs) {
|
||||
},
|
||||
{
|
||||
match: [
|
||||
/class\s+/,
|
||||
/\b(class|module)\s+/,
|
||||
CLASS_NAME_WITH_NAMESPACE_RE
|
||||
]
|
||||
}
|
||||
@ -9962,18 +10069,27 @@ function ruby(hljs) {
|
||||
relevance: 0,
|
||||
match: [
|
||||
CLASS_NAME_WITH_NAMESPACE_RE,
|
||||
/\.new[ (]/
|
||||
/\.new[. (]/
|
||||
],
|
||||
scope: {
|
||||
1: "title.class"
|
||||
}
|
||||
};
|
||||
|
||||
// CamelCase
|
||||
const CLASS_REFERENCE = {
|
||||
relevance: 0,
|
||||
match: CLASS_NAME_RE,
|
||||
scope: "title.class"
|
||||
};
|
||||
|
||||
const RUBY_DEFAULT_CONTAINS = [
|
||||
STRING,
|
||||
CLASS_DEFINITION,
|
||||
INCLUDE_EXTEND,
|
||||
OBJECT_CREATION,
|
||||
UPPER_CASE_CONSTANT,
|
||||
CLASS_REFERENCE,
|
||||
METHOD_DEFINITION,
|
||||
{
|
||||
// swallow namespace qualifiers before symbols
|
||||
@ -11165,7 +11281,7 @@ function sql(hljs) {
|
||||
|
||||
const VARIABLE = {
|
||||
className: "variable",
|
||||
begin: /@[a-z0-9]+/,
|
||||
begin: /@[a-z0-9][a-z0-9_]*/,
|
||||
};
|
||||
|
||||
const OPERATOR = {
|
||||
@ -12134,7 +12250,9 @@ function typescript(hljs) {
|
||||
name: 'TypeScript',
|
||||
aliases: [
|
||||
'ts',
|
||||
'tsx'
|
||||
'tsx',
|
||||
'mts',
|
||||
'cts'
|
||||
]
|
||||
});
|
||||
|
||||
@ -12629,43 +12747,43 @@ function yaml(hljs) {
|
||||
}
|
||||
|
||||
var builtIns = /*#__PURE__*/Object.freeze({
|
||||
__proto__: null,
|
||||
grmr_bash: bash,
|
||||
grmr_c: c,
|
||||
grmr_cpp: cpp,
|
||||
grmr_csharp: csharp,
|
||||
grmr_css: css,
|
||||
grmr_diff: diff,
|
||||
grmr_go: go,
|
||||
grmr_graphql: graphql,
|
||||
grmr_ini: ini,
|
||||
grmr_java: java,
|
||||
grmr_javascript: javascript,
|
||||
grmr_json: json,
|
||||
grmr_kotlin: kotlin,
|
||||
grmr_less: less,
|
||||
grmr_lua: lua,
|
||||
grmr_makefile: makefile,
|
||||
grmr_xml: xml,
|
||||
grmr_markdown: markdown,
|
||||
grmr_objectivec: objectivec,
|
||||
grmr_perl: perl,
|
||||
grmr_php: php,
|
||||
grmr_php_template: phpTemplate,
|
||||
grmr_plaintext: plaintext,
|
||||
grmr_python: python,
|
||||
grmr_python_repl: pythonRepl,
|
||||
grmr_r: r,
|
||||
grmr_ruby: ruby,
|
||||
grmr_rust: rust,
|
||||
grmr_scss: scss,
|
||||
grmr_shell: shell,
|
||||
grmr_sql: sql,
|
||||
grmr_swift: swift,
|
||||
grmr_typescript: typescript,
|
||||
grmr_vbnet: vbnet,
|
||||
grmr_wasm: wasm,
|
||||
grmr_yaml: yaml
|
||||
__proto__: null,
|
||||
grmr_bash: bash,
|
||||
grmr_c: c,
|
||||
grmr_cpp: cpp,
|
||||
grmr_csharp: csharp,
|
||||
grmr_css: css,
|
||||
grmr_diff: diff,
|
||||
grmr_go: go,
|
||||
grmr_graphql: graphql,
|
||||
grmr_ini: ini,
|
||||
grmr_java: java,
|
||||
grmr_javascript: javascript,
|
||||
grmr_json: json,
|
||||
grmr_kotlin: kotlin,
|
||||
grmr_less: less,
|
||||
grmr_lua: lua,
|
||||
grmr_makefile: makefile,
|
||||
grmr_xml: xml,
|
||||
grmr_markdown: markdown,
|
||||
grmr_objectivec: objectivec,
|
||||
grmr_perl: perl,
|
||||
grmr_php: php,
|
||||
grmr_php_template: phpTemplate,
|
||||
grmr_plaintext: plaintext,
|
||||
grmr_python: python,
|
||||
grmr_python_repl: pythonRepl,
|
||||
grmr_r: r,
|
||||
grmr_ruby: ruby,
|
||||
grmr_rust: rust,
|
||||
grmr_scss: scss,
|
||||
grmr_shell: shell,
|
||||
grmr_sql: sql,
|
||||
grmr_swift: swift,
|
||||
grmr_typescript: typescript,
|
||||
grmr_vbnet: vbnet,
|
||||
grmr_wasm: wasm,
|
||||
grmr_yaml: yaml
|
||||
});
|
||||
|
||||
const hljs = HighlightJS;
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
/*! `1c` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `1c` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return s=>{
|
||||
const x="[A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_][A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_0-9]+",n="\u0434\u0430\u043b\u0435\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0432\u044b\u0437\u0432\u0430\u0442\u044c\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0434\u043b\u044f \u0435\u0441\u043b\u0438 \u0438 \u0438\u0437 \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u0438\u043d\u0430\u0447\u0435\u0435\u0441\u043b\u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043e\u043d\u0435\u0446\u0435\u0441\u043b\u0438 \u043a\u043e\u043d\u0435\u0446\u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043a\u043e\u043d\u0435\u0446\u0446\u0438\u043a\u043b\u0430 \u043d\u0435 \u043d\u043e\u0432\u044b\u0439 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043f\u0435\u0440\u0435\u043c \u043f\u043e \u043f\u043e\u043a\u0430 \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0442\u043e\u0433\u0434\u0430 \u0446\u0438\u043a\u043b \u044d\u043a\u0441\u043f\u043e\u0440\u0442 ",e="null \u0438\u0441\u0442\u0438\u043d\u0430 \u043b\u043e\u0436\u044c \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e",o=s.inherit(s.NUMBER_MODE),t={
|
||||
className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},a={
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `abnf` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `abnf` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return a=>{
|
||||
const e=a.regex,s=a.COMMENT(/;/,/$/);return{name:"Augmented Backus-Naur Form",
|
||||
illegal:/[!@#$^&',?+~`|:]/,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `accesslog` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `accesslog` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const n=e.regex,a=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"]
|
||||
;return{name:"Apache Access Log",contains:[{className:"number",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `actionscript` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `actionscript` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const a=e.regex,t=/[a-zA-Z_$][a-zA-Z0-9_$]*/,n=a.concat(t,a.concat("(\\.",t,")*")),s={
|
||||
className:"rest_arg",begin:/[.]{3}/,end:t,relevance:10};return{
|
||||
|
@ -1,26 +1,25 @@
|
||||
/*! `ada` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `ada` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const n="[A-Za-z](_?[A-Za-z0-9.])*",s="[]\\{\\}%#'\"",a=e.COMMENT("--","$"),r={
|
||||
begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:s,contains:[{
|
||||
const n="\\d(_|\\d)*",s="[eE][-+]?"+n,a="\\b("+n+"#\\w+(\\.\\w+)?#("+s+")?|"+n+"(\\."+n+")?("+s+")?)",r="[A-Za-z](_?[A-Za-z0-9.])*",i="[]\\{\\}%#'\"",t=e.COMMENT("--","$"),l={
|
||||
begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:i,contains:[{
|
||||
beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",
|
||||
beginKeywords:"not null constant access function procedure in out aliased exception"
|
||||
},{className:"type",begin:n,endsParent:!0,relevance:0}]};return{name:"Ada",
|
||||
},{className:"type",begin:r,endsParent:!0,relevance:0}]};return{name:"Ada",
|
||||
case_insensitive:!0,keywords:{
|
||||
keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],
|
||||
literal:["True","False"]},contains:[a,{className:"string",begin:/"/,end:/"/,
|
||||
literal:["True","False"]},contains:[t,{className:"string",begin:/"/,end:/"/,
|
||||
contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{
|
||||
className:"number",
|
||||
begin:"\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)",
|
||||
relevance:0},{className:"symbol",begin:"'"+n},{className:"title",
|
||||
className:"number",begin:a,relevance:0},{className:"symbol",begin:"'"+r},{
|
||||
className:"title",
|
||||
begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",
|
||||
end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:s},{
|
||||
end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:i},{
|
||||
begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",
|
||||
end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",
|
||||
keywords:"overriding function procedure with is renames return",returnBegin:!0,
|
||||
contains:[a,{className:"title",
|
||||
contains:[t,{className:"title",
|
||||
begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",
|
||||
excludeBegin:!0,excludeEnd:!0,illegal:s},r,{className:"type",
|
||||
excludeBegin:!0,excludeEnd:!0,illegal:i},l,{className:"type",
|
||||
begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,
|
||||
excludeEnd:!0,endsParent:!0,illegal:s}]},{className:"type",
|
||||
begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:s
|
||||
},r]}}})();export default hljsGrammar;
|
||||
excludeEnd:!0,endsParent:!0,illegal:i}]},{className:"type",
|
||||
begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:i
|
||||
},l]}}})();export default hljsGrammar;
|
@ -1,4 +1,4 @@
|
||||
/*! `angelscript` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `angelscript` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const n={className:"built_in",
|
||||
begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"
|
||||
},a={className:"symbol",begin:"[a-zA-Z0-9_]+@"},i={className:"keyword",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `apache` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `apache` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a={className:"number",
|
||||
begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/};return{
|
||||
name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `applescript` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `applescript` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const t=e.regex,r=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a={
|
||||
className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,r]
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `arcade` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `arcade` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const n="[A-Za-z_][0-9A-Za-z_]*",a={
|
||||
keyword:["if","for","while","var","new","function","do","return","void","else","break"],
|
||||
|
@ -1,51 +1,51 @@
|
||||
/*! `arduino` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `arduino` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const t={
|
||||
type:["boolean","byte","word","String"],
|
||||
built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],
|
||||
_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],
|
||||
literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]
|
||||
},r=(e=>{const t=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]
|
||||
}),a="[a-zA-Z_]\\w*::",n="(?!struct)(decltype\\(auto\\)|"+t.optional(a)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",i={
|
||||
className:"type",begin:"\\b[a-z\\d_]*_t\\b"},s={className:"string",variants:[{
|
||||
}),a="decltype\\(auto\\)",n="[a-zA-Z_]\\w*::",i="(?!struct)("+a+"|"+t.optional(n)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={
|
||||
className:"type",begin:"\\b[a-z\\d_]*_t\\b"},o={className:"string",variants:[{
|
||||
begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{
|
||||
begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
|
||||
end:"'",illegal:"."},e.END_SAME_AS_BEGIN({
|
||||
begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={
|
||||
begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={
|
||||
className:"number",variants:[{begin:"\\b(0b[01']+)"},{
|
||||
begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"
|
||||
},{
|
||||
begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"
|
||||
}],relevance:0},l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
|
||||
}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
|
||||
keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"
|
||||
},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{
|
||||
className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},c={
|
||||
className:"title",begin:t.optional(a)+e.IDENT_RE,relevance:0
|
||||
},d=t.optional(a)+e.IDENT_RE+"\\s*\\(",u={
|
||||
},contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:"string"}),{
|
||||
className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},d={
|
||||
className:"title",begin:t.optional(n)+e.IDENT_RE,relevance:0
|
||||
},u=t.optional(n)+e.IDENT_RE+"\\s*\\(",p={
|
||||
type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],
|
||||
keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],
|
||||
literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],
|
||||
_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]
|
||||
},p={className:"function.dispatch",relevance:0,keywords:{
|
||||
},m={className:"function.dispatch",relevance:0,keywords:{
|
||||
_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]
|
||||
},
|
||||
begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))
|
||||
},m=[p,l,i,r,e.C_BLOCK_COMMENT_MODE,o,s],g={variants:[{begin:/=/,end:/;/},{
|
||||
},g=[m,c,s,r,e.C_BLOCK_COMMENT_MODE,l,o],_={variants:[{begin:/=/,end:/;/},{
|
||||
begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],
|
||||
keywords:u,contains:m.concat([{begin:/\(/,end:/\)/,keywords:u,
|
||||
contains:m.concat(["self"]),relevance:0}]),relevance:0},_={className:"function",
|
||||
begin:"("+n+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,
|
||||
keywords:u,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:"decltype\\(auto\\)",
|
||||
keywords:u,relevance:0},{begin:d,returnBegin:!0,contains:[c],relevance:0},{
|
||||
begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[s,o]},{
|
||||
relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:u,
|
||||
relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,s,o,i,{begin:/\(/,end:/\)/,
|
||||
keywords:u,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,s,o,i]}]
|
||||
},i,r,e.C_BLOCK_COMMENT_MODE,l]};return{name:"C++",
|
||||
aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:u,illegal:"</",
|
||||
keywords:p,contains:g.concat([{begin:/\(/,end:/\)/,keywords:p,
|
||||
contains:g.concat(["self"]),relevance:0}]),relevance:0},h={className:"function",
|
||||
begin:"("+i+"[\\*&\\s]+)+"+u,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,
|
||||
keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:p,relevance:0},{
|
||||
begin:u,returnBegin:!0,contains:[d],relevance:0},{begin:/::/,relevance:0},{
|
||||
begin:/:/,endsWithParent:!0,contains:[o,l]},{relevance:0,match:/,/},{
|
||||
className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,
|
||||
contains:[r,e.C_BLOCK_COMMENT_MODE,o,l,s,{begin:/\(/,end:/\)/,keywords:p,
|
||||
relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,o,l,s]}]
|
||||
},s,r,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",
|
||||
aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",
|
||||
classNameAliases:{"function.dispatch":"built_in"},
|
||||
contains:[].concat(g,_,p,m,[l,{
|
||||
contains:[].concat(_,h,m,g,[c,{
|
||||
begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",
|
||||
end:">",keywords:u,contains:["self",i]},{begin:e.IDENT_RE+"::",keywords:u},{
|
||||
end:">",keywords:p,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:p},{
|
||||
match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],
|
||||
className:{1:"keyword",3:"title.class"}}])}})(e),a=r.keywords
|
||||
;return a.type=[...a.type,...t.type],
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `armasm` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `armasm` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return s=>{const r={
|
||||
variants:[s.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0
|
||||
}),s.COMMENT("[;@]","$",{relevance:0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `asciidoc` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `asciidoc` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const n=e.regex,a=[{
|
||||
className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",
|
||||
begin:n.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `aspectj` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `aspectj` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const n=e.regex,t=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],i=["get","set","args","call"]
|
||||
;return{name:"AspectJ",keywords:t,illegal:/<\/|#/,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `autohotkey` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `autohotkey` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a={begin:"`[\\s\\S]"}
|
||||
;return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{
|
||||
keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `autoit` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `autoit` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const t={
|
||||
variants:[e.COMMENT(";","$",{relevance:0
|
||||
}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},r={
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `avrasm` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `avrasm` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return r=>({name:"AVR Assembly",
|
||||
case_insensitive:!0,keywords:{$pattern:"\\.?"+r.IDENT_RE,
|
||||
keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `awk` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `awk` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"Awk",keywords:{
|
||||
keyword:"BEGIN END if else while do for in break continue delete next nextfile function func exit|10"
|
||||
},contains:[{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `axapta` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `axapta` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const t=e.UNDERSCORE_IDENT_RE,s={
|
||||
keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],
|
||||
built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `bash` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `bash` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const s=e.regex,t={},a={
|
||||
begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]}
|
||||
;Object.assign(t,{className:"variable",variants:[{
|
||||
@ -6,13 +6,13 @@ begin:s.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const n={
|
||||
className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i={
|
||||
begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,
|
||||
end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,
|
||||
contains:[e.BACKSLASH_ESCAPE,t,n]};n.contains.push(c);const o={begin:/\$\(\(/,
|
||||
contains:[e.BACKSLASH_ESCAPE,t,n]};n.contains.push(c);const o={begin:/\$?\(\(/,
|
||||
end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t]
|
||||
},r=e.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10
|
||||
}),l={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,
|
||||
contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{
|
||||
name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,
|
||||
keyword:["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"],
|
||||
keyword:["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],
|
||||
literal:["true","false"],
|
||||
built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"]
|
||||
},contains:[r,e.SHEBANG(),l,o,e.HASH_COMMENT_MODE,i,{match:/(\/[a-z._-]+)+/},c,{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `basic` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `basic` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return E=>({name:"BASIC",case_insensitive:!0,
|
||||
illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",
|
||||
keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `bnf` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `bnf` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return a=>({name:"Backus\u2013Naur Form",
|
||||
contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,
|
||||
contains:[{begin:/</,end:/>/
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `brainfuck` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `brainfuck` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a={className:"literal",
|
||||
begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],
|
||||
contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{
|
||||
|
@ -1,41 +1,40 @@
|
||||
/*! `c` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `c` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const n=e.regex,t=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]
|
||||
}),a="[a-zA-Z_]\\w*::",s="(decltype\\(auto\\)|"+n.optional(a)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",r={
|
||||
}),s="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",r="("+s+"|"+n.optional(a)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",i={
|
||||
className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{
|
||||
match:/\batomic_[a-z]{3,6}\b/}]},i={className:"string",variants:[{
|
||||
match:/\batomic_[a-z]{3,6}\b/}]},l={className:"string",variants:[{
|
||||
begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{
|
||||
begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
|
||||
end:"'",illegal:"."},e.END_SAME_AS_BEGIN({
|
||||
begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={
|
||||
begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={
|
||||
className:"number",variants:[{begin:"\\b(0b[01']+)"},{
|
||||
begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"
|
||||
},{
|
||||
begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"
|
||||
}],relevance:0},o={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
|
||||
}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
|
||||
keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"
|
||||
},contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"string"}),{
|
||||
className:"string",begin:/<.*?>/},t,e.C_BLOCK_COMMENT_MODE]},c={
|
||||
},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{
|
||||
className:"string",begin:/<.*?>/},t,e.C_BLOCK_COMMENT_MODE]},d={
|
||||
className:"title",begin:n.optional(a)+e.IDENT_RE,relevance:0
|
||||
},d=n.optional(a)+e.IDENT_RE+"\\s*\\(",u={
|
||||
},u=n.optional(a)+e.IDENT_RE+"\\s*\\(",m={
|
||||
keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],
|
||||
type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],
|
||||
literal:"true false NULL",
|
||||
built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
|
||||
},m=[o,r,t,e.C_BLOCK_COMMENT_MODE,l,i],g={variants:[{begin:/=/,end:/;/},{
|
||||
},g=[c,i,t,e.C_BLOCK_COMMENT_MODE,o,l],p={variants:[{begin:/=/,end:/;/},{
|
||||
begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],
|
||||
keywords:u,contains:m.concat([{begin:/\(/,end:/\)/,keywords:u,
|
||||
contains:m.concat(["self"]),relevance:0}]),relevance:0},p={
|
||||
begin:"("+s+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,
|
||||
keywords:u,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:"decltype\\(auto\\)",
|
||||
keywords:u,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(c,{
|
||||
className:"title.function"})],relevance:0},{relevance:0,match:/,/},{
|
||||
className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,
|
||||
contains:[t,e.C_BLOCK_COMMENT_MODE,i,l,r,{begin:/\(/,end:/\)/,keywords:u,
|
||||
relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,i,l,r]}]
|
||||
},r,t,e.C_BLOCK_COMMENT_MODE,o]};return{name:"C",aliases:["h"],keywords:u,
|
||||
disableAutodetect:!0,illegal:"</",contains:[].concat(g,p,m,[o,{
|
||||
begin:e.IDENT_RE+"::",keywords:u},{className:"class",
|
||||
keywords:m,contains:g.concat([{begin:/\(/,end:/\)/,keywords:m,
|
||||
contains:g.concat(["self"]),relevance:0}]),relevance:0},_={
|
||||
begin:"("+r+"[\\*&\\s]+)+"+u,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,
|
||||
keywords:m,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:m,relevance:0},{
|
||||
begin:u,returnBegin:!0,contains:[e.inherit(d,{className:"title.function"})],
|
||||
relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,
|
||||
keywords:m,relevance:0,contains:[t,e.C_BLOCK_COMMENT_MODE,l,o,i,{begin:/\(/,
|
||||
end:/\)/,keywords:m,relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,l,o,i]
|
||||
}]},i,t,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:m,
|
||||
disableAutodetect:!0,illegal:"</",contains:[].concat(p,_,g,[c,{
|
||||
begin:e.IDENT_RE+"::",keywords:m},{className:"class",
|
||||
beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{
|
||||
beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:o,
|
||||
strings:i,keywords:u}}}})();export default hljsGrammar;
|
||||
beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c,
|
||||
strings:l,keywords:m}}}})();export default hljsGrammar;
|
@ -1,4 +1,4 @@
|
||||
/*! `cal` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `cal` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const r=e.regex,a=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{
|
||||
relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],t={className:"string",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `capnproto` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `capnproto` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return t=>{const n={variants:[{
|
||||
match:[/(struct|enum|interface)/,/\s+/,t.IDENT_RE]},{
|
||||
match:[/extends/,/\s*\(/,t.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `ceylon` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `ceylon` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const a=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],s={
|
||||
className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:a,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `clean` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `clean` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"Clean",
|
||||
aliases:["icl","dcl"],keywords:{
|
||||
keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `clojure-repl` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `clojure-repl` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return a=>({name:"Clojure REPL",contains:[{
|
||||
className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,
|
||||
subLanguage:"clojure"}}]})})();export default hljsGrammar;
|
@ -1,4 +1,4 @@
|
||||
/*! `clojure` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `clojure` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const t="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+t+"]["+t+"0-9/;:$#]*",a="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",r={
|
||||
$pattern:n,
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*! `cmake` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `cmake` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"CMake",
|
||||
aliases:["cmake.in"],case_insensitive:!0,keywords:{
|
||||
keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"
|
||||
},contains:[{className:"variable",begin:/\$\{/,end:/\}/
|
||||
},e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]})})()
|
||||
;export default hljsGrammar;
|
||||
},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]
|
||||
})})();export default hljsGrammar;
|
@ -1,4 +1,4 @@
|
||||
/*! `coffeescript` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `coffeescript` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict"
|
||||
;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],r=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"])
|
||||
;return a=>{const t={
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `coq` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `coq` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"Coq",keywords:{
|
||||
keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],
|
||||
built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `cos` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `cos` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"Cach\xe9 Object Script",
|
||||
case_insensitive:!0,aliases:["cls"],
|
||||
keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",
|
||||
|
@ -1,46 +1,46 @@
|
||||
/*! `cpp` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `cpp` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const t=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]
|
||||
}),n="[a-zA-Z_]\\w*::",r="(?!struct)(decltype\\(auto\\)|"+t.optional(n)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",i={
|
||||
className:"type",begin:"\\b[a-z\\d_]*_t\\b"},s={className:"string",variants:[{
|
||||
}),n="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",i="(?!struct)("+n+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={
|
||||
className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{
|
||||
begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{
|
||||
begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
|
||||
end:"'",illegal:"."},e.END_SAME_AS_BEGIN({
|
||||
begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={
|
||||
begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={
|
||||
className:"number",variants:[{begin:"\\b(0b[01']+)"},{
|
||||
begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"
|
||||
},{
|
||||
begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"
|
||||
}],relevance:0},o={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
|
||||
}],relevance:0},l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
|
||||
keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"
|
||||
},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{
|
||||
className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},l={
|
||||
className:"title",begin:t.optional(n)+e.IDENT_RE,relevance:0
|
||||
},d=t.optional(n)+e.IDENT_RE+"\\s*\\(",u={
|
||||
},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{
|
||||
className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},d={
|
||||
className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0
|
||||
},u=t.optional(r)+e.IDENT_RE+"\\s*\\(",p={
|
||||
type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],
|
||||
keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],
|
||||
literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],
|
||||
_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]
|
||||
},p={className:"function.dispatch",relevance:0,keywords:{
|
||||
},_={className:"function.dispatch",relevance:0,keywords:{
|
||||
_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]
|
||||
},
|
||||
begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))
|
||||
},_=[p,o,i,a,e.C_BLOCK_COMMENT_MODE,c,s],m={variants:[{begin:/=/,end:/;/},{
|
||||
},m=[_,l,s,a,e.C_BLOCK_COMMENT_MODE,o,c],g={variants:[{begin:/=/,end:/;/},{
|
||||
begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],
|
||||
keywords:u,contains:_.concat([{begin:/\(/,end:/\)/,keywords:u,
|
||||
contains:_.concat(["self"]),relevance:0}]),relevance:0},g={className:"function",
|
||||
begin:"("+r+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,
|
||||
keywords:u,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:"decltype\\(auto\\)",
|
||||
keywords:u,relevance:0},{begin:d,returnBegin:!0,contains:[l],relevance:0},{
|
||||
begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[s,c]},{
|
||||
relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:u,
|
||||
relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,s,c,i,{begin:/\(/,end:/\)/,
|
||||
keywords:u,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,s,c,i]}]
|
||||
},i,a,e.C_BLOCK_COMMENT_MODE,o]};return{name:"C++",
|
||||
aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:u,illegal:"</",
|
||||
keywords:p,contains:m.concat([{begin:/\(/,end:/\)/,keywords:p,
|
||||
contains:m.concat(["self"]),relevance:0}]),relevance:0},f={className:"function",
|
||||
begin:"("+i+"[\\*&\\s]+)+"+u,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,
|
||||
keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:p,relevance:0},{
|
||||
begin:u,returnBegin:!0,contains:[d],relevance:0},{begin:/::/,relevance:0},{
|
||||
begin:/:/,endsWithParent:!0,contains:[c,o]},{relevance:0,match:/,/},{
|
||||
className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,
|
||||
contains:[a,e.C_BLOCK_COMMENT_MODE,c,o,s,{begin:/\(/,end:/\)/,keywords:p,
|
||||
relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,c,o,s]}]
|
||||
},s,a,e.C_BLOCK_COMMENT_MODE,l]};return{name:"C++",
|
||||
aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",
|
||||
classNameAliases:{"function.dispatch":"built_in"},
|
||||
contains:[].concat(m,g,p,_,[o,{
|
||||
contains:[].concat(g,f,_,m,[l,{
|
||||
begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",
|
||||
end:">",keywords:u,contains:["self",i]},{begin:e.IDENT_RE+"::",keywords:u},{
|
||||
end:">",keywords:p,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:p},{
|
||||
match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],
|
||||
className:{1:"keyword",3:"title.class"}}])}}})();export default hljsGrammar;
|
@ -1,4 +1,4 @@
|
||||
/*! `crmsh` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `crmsh` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const t="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml"
|
||||
;return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `crystal` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `crystal` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const n="(_?[ui](8|16|32|64|128))?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",a="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",s={
|
||||
$pattern:"[a-zA-Z_]\\w*[!?=]?",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `csharp` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `csharp` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const n={
|
||||
keyword:["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]),
|
||||
built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `csp` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `csp` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return s=>({name:"CSP",case_insensitive:!1,
|
||||
keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",
|
||||
keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,20 +1,20 @@
|
||||
/*! `d` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `d` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a={
|
||||
$pattern:e.UNDERSCORE_IDENT_RE,
|
||||
keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",
|
||||
built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",
|
||||
literal:"false null true"
|
||||
},d="((0|[1-9][\\d_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))",t="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",n={
|
||||
className:"number",begin:"\\b"+d+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},r={
|
||||
},t="(0|[1-9][\\d_]*)",n="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",r="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",i="([eE][+-]?"+n+")",s="("+t+"|0[bB][01_]+|0[xX]"+r+")",l="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",c={
|
||||
className:"number",begin:"\\b"+s+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},_={
|
||||
className:"number",
|
||||
begin:"\\b(((0[xX](([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)\\.([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)|\\.?([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))[pP][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))|((0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(\\.\\d*|([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)))|\\d+\\.(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)|\\.(0|[1-9][\\d_]*)([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))?))([fF]|L|i|[fF]i|Li)?|"+d+"(i|[fF]i|Li))",
|
||||
relevance:0},_={className:"string",begin:"'("+t+"|.)",end:"'",illegal:"."},i={
|
||||
className:"string",begin:'"',contains:[{begin:t,relevance:0}],end:'"[cwd]?'
|
||||
},s=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{
|
||||
name:"D",keywords:a,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,{
|
||||
className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},i,{
|
||||
begin:"\\b(((0[xX]("+r+"\\."+r+"|\\.?"+r+")[pP][+-]?"+n+")|("+n+"(\\.\\d*|"+i+")|\\d+\\."+n+"|\\."+t+i+"?))([fF]|L|i|[fF]i|Li)?|"+s+"(i|[fF]i|Li))",
|
||||
relevance:0},d={className:"string",begin:"'("+l+"|.)",end:"'",illegal:"."},o={
|
||||
className:"string",begin:'"',contains:[{begin:l,relevance:0}],end:'"[cwd]?'
|
||||
},u=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{
|
||||
name:"D",keywords:a,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u,{
|
||||
className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},o,{
|
||||
className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},{className:"string",
|
||||
begin:"`",end:"`[cwd]?"},{className:"string",begin:'q"\\{',end:'\\}"'},r,n,_,{
|
||||
begin:"`",end:"`[cwd]?"},{className:"string",begin:'q"\\{',end:'\\}"'},_,c,d,{
|
||||
className:"meta",begin:"^#!",end:"$",relevance:5},{className:"meta",
|
||||
begin:"#(line)",end:"$",relevance:5},{className:"keyword",
|
||||
begin:"@[a-zA-Z_][a-zA-Z_\\d]*"}]}}})();export default hljsGrammar;
|
@ -1,4 +1,4 @@
|
||||
/*! `dart` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `dart` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const n={className:"subst",
|
||||
variants:[{begin:"\\$[A-Za-z0-9_]+"}]},a={className:"subst",variants:[{
|
||||
begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},t={
|
||||
@ -10,7 +10,7 @@ contains:[e.BACKSLASH_ESCAPE,n,a]},{begin:'"',end:'"',illegal:"\\n",
|
||||
contains:[e.BACKSLASH_ESCAPE,n,a]}]};a.contains=[e.C_NUMBER_MODE,t]
|
||||
;const i=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],r=i.map((e=>e+"?"))
|
||||
;return{name:"Dart",keywords:{
|
||||
keyword:["abstract","as","assert","async","await","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","inferface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","while","with","yield"],
|
||||
keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],
|
||||
built_in:i.concat(r).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),
|
||||
$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},
|
||||
contains:[t,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `delphi` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `delphi` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const r=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],a=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{
|
||||
relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],t={className:"meta",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `diff` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `diff` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a=e.regex;return{
|
||||
name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,
|
||||
match:a.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `django` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `django` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a={begin:/\|[A-Za-z]+:?/,
|
||||
keywords:{
|
||||
name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `dns` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `dns` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return d=>({name:"DNS Zone",
|
||||
aliases:["bind","zone"],
|
||||
keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `dockerfile` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `dockerfile` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"Dockerfile",
|
||||
aliases:["docker"],case_insensitive:!0,
|
||||
keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `dos` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `dos` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const r=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{
|
||||
name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `dsconfig` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `dsconfig` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({keywords:"dsconfig",contains:[{
|
||||
className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{
|
||||
className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `dts` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `dts` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a={className:"string",
|
||||
variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{
|
||||
begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `dust` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `dust` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"Dust",aliases:["dst"],
|
||||
case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",
|
||||
begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `ebnf` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `ebnf` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return a=>{const e=a.COMMENT(/\(\*/,/\*\)/)
|
||||
;return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[e,{
|
||||
className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,
|
||||
|
@ -1,34 +1,34 @@
|
||||
/*! `elixir` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `elixir` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const n=e.regex,a="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",i={$pattern:a,
|
||||
keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],
|
||||
literal:["false","nil","true"]},s={className:"subst",begin:/#\{/,end:/\}/,
|
||||
keywords:i},c={match:/\\[\s\S]/,scope:"char.escape",relevance:0},r=[{begin:/"/,
|
||||
end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{
|
||||
begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,
|
||||
end:/>/}],t=e=>({scope:"char.escape",begin:n.concat(/\\/,e),relevance:0}),d={
|
||||
className:"string",begin:"~[a-z](?=[/|([{<\"'])",
|
||||
contains:r.map((n=>e.inherit(n,{contains:[t(n.end),c,s]})))},o={
|
||||
className:"string",begin:"~[A-Z](?=[/|([{<\"'])",
|
||||
contains:r.map((n=>e.inherit(n,{contains:[t(n.end)]})))},b={className:"regex",
|
||||
variants:[{begin:"~r(?=[/|([{<\"'])",contains:r.map((a=>e.inherit(a,{
|
||||
end:n.concat(a.end,/[uismxfU]{0,7}/),contains:[t(a.end),c,s]})))},{
|
||||
begin:"~R(?=[/|([{<\"'])",contains:r.map((a=>e.inherit(a,{
|
||||
end:n.concat(a.end,/[uismxfU]{0,7}/),contains:[t(a.end)]})))}]},l={
|
||||
keywords:i},c={match:/\\[\s\S]/,scope:"char.escape",relevance:0
|
||||
},r="[/|([{<\"']",t=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,
|
||||
end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{
|
||||
begin:/\{/,end:/\}/},{begin:/</,end:/>/}],d=e=>({scope:"char.escape",
|
||||
begin:n.concat(/\\/,e),relevance:0}),o={className:"string",
|
||||
begin:"~[a-z](?="+r+")",contains:t.map((n=>e.inherit(n,{contains:[d(n.end),c,s]
|
||||
})))},b={className:"string",begin:"~[A-Z](?="+r+")",
|
||||
contains:t.map((n=>e.inherit(n,{contains:[d(n.end)]})))},l={className:"regex",
|
||||
variants:[{begin:"~r(?="+r+")",contains:t.map((a=>e.inherit(a,{
|
||||
end:n.concat(a.end,/[uismxfU]{0,7}/),contains:[d(a.end),c,s]})))},{
|
||||
begin:"~R(?="+r+")",contains:t.map((a=>e.inherit(a,{
|
||||
end:n.concat(a.end,/[uismxfU]{0,7}/),contains:[d(a.end)]})))}]},g={
|
||||
className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/"""/,
|
||||
end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{
|
||||
begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{
|
||||
begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},g={
|
||||
begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},m={
|
||||
className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,
|
||||
contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},m=e.inherit(g,{
|
||||
contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},u=e.inherit(m,{
|
||||
className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",
|
||||
end:/\bdo\b|$|;/}),u=[l,b,o,d,e.HASH_COMMENT_MODE,m,g,{begin:"::"},{
|
||||
className:"symbol",begin:":(?![\\s:])",contains:[l,{
|
||||
end:/\bdo\b|$|;/}),f=[g,l,b,o,e.HASH_COMMENT_MODE,u,m,{begin:"::"},{
|
||||
className:"symbol",begin:":(?![\\s:])",contains:[g,{
|
||||
begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"
|
||||
}],relevance:0},{className:"symbol",begin:a+":(?!:)",relevance:0},{
|
||||
className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},{
|
||||
className:"number",
|
||||
begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",
|
||||
relevance:0},{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}]
|
||||
;return s.contains=u,{name:"Elixir",aliases:["ex","exs"],keywords:i,contains:u}}
|
||||
;return s.contains=f,{name:"Elixir",aliases:["ex","exs"],keywords:i,contains:f}}
|
||||
})();export default hljsGrammar;
|
@ -1,4 +1,4 @@
|
||||
/*! `elm` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `elm` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const n={
|
||||
variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},i={
|
||||
className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},s={begin:"\\(",end:"\\)",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `erb` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `erb` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"ERB",subLanguage:"xml",
|
||||
contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",
|
||||
subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]})})()
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `erlang-repl` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `erlang-repl` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a=e.regex;return{
|
||||
name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",
|
||||
keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `erlang` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `erlang` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const n="[a-z'][a-zA-Z0-9_']*",r="("+n+":"+n+"|"+n+")",a={
|
||||
keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `excel` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `excel` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return E=>({name:"Excel formulae",
|
||||
aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,
|
||||
built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `fix` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `fix` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"FIX",contains:[{
|
||||
begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,
|
||||
returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `flix` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `flix` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"Flix",keywords:{
|
||||
keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],
|
||||
literal:["true","false"]},
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `fortran` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `fortran` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const n=e.regex,a={
|
||||
variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0
|
||||
}),e.COMMENT("^C$","$",{relevance:0})]
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `fsharp` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `fsharp` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";function e(e){
|
||||
return RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function n(e){
|
||||
return e?"string"==typeof e?e:e.source:null}function t(e){return i("(?=",e,")")}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `gams` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `gams` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a=e.regex,n={
|
||||
keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",
|
||||
literal:"eps inf na",
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
/*! `gcode` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `gcode` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const a=e.inherit(e.C_NUMBER_MODE,{
|
||||
begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+e.C_NUMBER_RE
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `gherkin` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `gherkin` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"Gherkin",
|
||||
aliases:["feature"],
|
||||
keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `glsl` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `glsl` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"GLSL",keywords:{
|
||||
keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",
|
||||
type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `gml` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `gml` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"GML",case_insensitive:!1,
|
||||
keywords:{
|
||||
keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","not","or","repeat","return","switch","then","until","var","while","with","xor"],
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `go` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `go` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const n={
|
||||
keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],
|
||||
type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `golo` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `golo` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"Golo",keywords:{
|
||||
keyword:["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"],
|
||||
literal:["true","false","null"]},
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `gradle` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `gradle` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"Gradle",
|
||||
case_insensitive:!0,
|
||||
keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `graphql` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `graphql` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a=e.regex;return{
|
||||
name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,
|
||||
keywords:{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `groovy` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `groovy` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";function e(e,a={}){return a.variants=e,a}
|
||||
return a=>{
|
||||
const n=a.regex,t="[A-Za-z0-9_$]+",r=e([a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.COMMENT("/\\*\\*","\\*/",{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `haml` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `haml` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"HAML",case_insensitive:!0,
|
||||
contains:[{className:"meta",
|
||||
begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `handlebars` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `handlebars` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a=e.regex,n={
|
||||
$pattern:/[\w.\/]+/,
|
||||
built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]
|
||||
|
@ -1,29 +1,30 @@
|
||||
/*! `haskell` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `haskell` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const n={
|
||||
variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},a={
|
||||
className:"meta",begin:/\{-#/,end:/#-\}/},i={className:"meta",begin:"^#",end:"$"
|
||||
},s={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},l={begin:"\\(",
|
||||
end:"\\)",illegal:'"',contains:[a,i,{className:"type",
|
||||
className:"meta",begin:/\{-#/,end:/#-\}/},s={className:"meta",begin:"^#",end:"$"
|
||||
},i={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},t={begin:"\\(",
|
||||
end:"\\)",illegal:'"',contains:[a,s,{className:"type",
|
||||
begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{
|
||||
begin:"[_a-z][\\w']*"}),n]},t="([0-9a-fA-F]_*)+",r={className:"number",
|
||||
relevance:0,variants:[{
|
||||
match:"\\b(([0-9]_*)+)(\\.(([0-9]_*)+))?([eE][+-]?(([0-9]_*)+))?\\b"},{
|
||||
match:`\\b0[xX]_*(${t})(\\.(${t}))?([pP][+-]?(([0-9]_*)+))?\\b`},{
|
||||
begin:"[_a-z][\\w']*"}),n]},l="([0-9]_*)+",c="([0-9a-fA-F]_*)+",r={
|
||||
className:"number",relevance:0,variants:[{
|
||||
match:`\\b(${l})(\\.(${l}))?([eE][+-]?(${l}))?\\b`},{
|
||||
match:`\\b0[xX]_*(${c})(\\.(${c}))?([pP][+-]?(${l}))?\\b`},{
|
||||
match:"\\b0[oO](([0-7]_*)+)\\b"},{match:"\\b0[bB](([01]_*)+)\\b"}]};return{
|
||||
name:"Haskell",aliases:["hs"],
|
||||
keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",
|
||||
contains:[{beginKeywords:"module",end:"where",keywords:"module where",
|
||||
contains:[l,n],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",
|
||||
keywords:"import qualified as hiding",contains:[l,n],illegal:"\\W\\.|;"},{
|
||||
contains:[t,n],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",
|
||||
keywords:"import qualified as hiding",contains:[t,n],illegal:"\\W\\.|;"},{
|
||||
className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",
|
||||
keywords:"class family instance where",contains:[s,l,n]},{className:"class",
|
||||
keywords:"class family instance where",contains:[i,t,n]},{className:"class",
|
||||
begin:"\\b(data|(new)?type)\\b",end:"$",
|
||||
keywords:"data family type newtype deriving",contains:[a,s,l,{begin:/\{/,
|
||||
end:/\}/,contains:l.contains},n]},{beginKeywords:"default",end:"$",
|
||||
contains:[s,l,n]},{beginKeywords:"infix infixl infixr",end:"$",
|
||||
keywords:"data family type newtype deriving",contains:[a,i,t,{begin:/\{/,
|
||||
end:/\}/,contains:t.contains},n]},{beginKeywords:"default",end:"$",
|
||||
contains:[i,t,n]},{beginKeywords:"infix infixl infixr",end:"$",
|
||||
contains:[e.C_NUMBER_MODE,n]},{begin:"\\bforeign\\b",end:"$",
|
||||
keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",
|
||||
contains:[s,e.QUOTE_STRING_MODE,n]},{className:"meta",
|
||||
begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"
|
||||
},a,i,e.QUOTE_STRING_MODE,r,s,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"
|
||||
}),n,{begin:"->|<-"}]}}})();export default hljsGrammar;
|
||||
contains:[i,e.QUOTE_STRING_MODE,n]},{className:"meta",
|
||||
begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},a,s,{scope:"string",
|
||||
begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]
|
||||
},e.QUOTE_STRING_MODE,r,i,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),n,{
|
||||
begin:"->|<-"}]}}})();export default hljsGrammar;
|
@ -1,4 +1,4 @@
|
||||
/*! `haxe` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `haxe` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"Haxe",aliases:["hx"],
|
||||
keywords:{
|
||||
keyword:"break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array ",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `hsp` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `hsp` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"HSP",case_insensitive:!0,
|
||||
keywords:{$pattern:/[\w._]+/,
|
||||
keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*! `http` grammar compiled for Highlight.js 11.6.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a="HTTP/(2|1\\.[01])",n={
|
||||
/*! `http` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a="HTTP/([32]|1\\.[01])",n={
|
||||
className:"attribute",
|
||||
begin:e.regex.concat("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{
|
||||
contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `hy` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `hy` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const a="a-zA-Z_\\-!.?+*=<>&#'",t="["+a+"]["+a+"0-9/;:]*",i={$pattern:t,
|
||||
built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `inform7` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `inform7` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"Inform 7",aliases:["i7"],
|
||||
case_insensitive:!0,keywords:{
|
||||
keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `ini` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `ini` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const n=e.regex,a={
|
||||
className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{
|
||||
begin:e.NUMBER_RE}]},s=e.COMMENT();s.variants=[{begin:/;/,end:/$/},{begin:/#/,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `irpf90` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `irpf90` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const n=e.regex,t=/(_[a-z_\d]+)?/,a=/([de][+-]?\d+)?/,i={className:"number",
|
||||
variants:[{begin:n.concat(/\b\d+/,/\.(\d*)/,a,t)},{begin:n.concat(/\b\d+/,a,t)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `isbl` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `isbl` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return S=>{
|
||||
const E="[A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_!][A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_0-9]*",_={
|
||||
className:"number",begin:S.NUMBER_RE,relevance:0},T={className:"string",
|
||||
|
@ -1,20 +1,20 @@
|
||||
/*! `java` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `java` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict"
|
||||
;var e="\\.([0-9](_*[0-9])*)",a="[0-9a-fA-F](_*[0-9a-fA-F])*",n={
|
||||
;var e="[0-9](_*[0-9])*",a=`\\.(${e})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",s={
|
||||
className:"number",variants:[{
|
||||
begin:`(\\b([0-9](_*[0-9])*)((${e})|\\.)?|(${e}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`
|
||||
},{begin:`\\b([0-9](_*[0-9])*)((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{
|
||||
begin:`(${e})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{
|
||||
begin:`\\b0[xX]((${a})\\.?|(${a})?\\.(${a}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`
|
||||
},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${a})[lL]?\\b`},{
|
||||
begin:`(\\b(${e})((${a})|\\.)?|(${a}))[eE][+-]?(${e})[fFdD]?\\b`},{
|
||||
begin:`\\b(${e})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`
|
||||
},{begin:`\\b(${e})[fFdD]\\b`},{
|
||||
begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${e})[fFdD]?\\b`},{
|
||||
begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{
|
||||
begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],
|
||||
relevance:0};function s(e,a,n){return-1===n?"":e.replace(a,(t=>s(e,a,n-1)))}
|
||||
relevance:0};function t(e,a,n){return-1===n?"":e.replace(a,(s=>t(e,a,n-1)))}
|
||||
return e=>{
|
||||
const a=e.regex,t="[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*",r=t+s("(?:<"+t+"~~~(?:\\s*,\\s*"+t+"~~~)*>)?",/~~~/g,2),i={
|
||||
keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed"],
|
||||
const a=e.regex,n="[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*",r=n+t("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),i={
|
||||
keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],
|
||||
literal:["false","true","null"],
|
||||
type:["char","boolean","long","float","int","byte","short","double"],
|
||||
built_in:["super","this"]},l={className:"meta",begin:"@"+t,contains:[{
|
||||
built_in:["super","this"]},l={className:"meta",begin:"@"+n,contains:[{
|
||||
begin:/\(/,end:/\)/,contains:["self"]}]},c={className:"params",begin:/\(/,
|
||||
end:/\)/,keywords:i,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0}
|
||||
;return{name:"Java",aliases:["jsp"],keywords:i,illegal:/<\/|#/,
|
||||
@ -24,15 +24,15 @@ begin:/import java\.[a-z]+\./,keywords:"import",relevance:2
|
||||
},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,
|
||||
className:"string",contains:[e.BACKSLASH_ESCAPE]
|
||||
},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{
|
||||
match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,t],className:{
|
||||
match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{
|
||||
1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{
|
||||
begin:[a.concat(/(?!else)/,t),/\s+/,t,/\s+/,/=(?!=)/],className:{1:"type",
|
||||
3:"variable",5:"operator"}},{begin:[/record/,/\s+/,t],className:{1:"keyword",
|
||||
begin:[a.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",
|
||||
3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",
|
||||
3:"title.class"},contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{
|
||||
beginKeywords:"new throw return else",relevance:0},{
|
||||
begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{
|
||||
2:"title.function"},keywords:i,contains:[{className:"params",begin:/\(/,
|
||||
end:/\)/,keywords:i,relevance:0,
|
||||
contains:[l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,n,e.C_BLOCK_COMMENT_MODE]
|
||||
},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},n,l]}}})()
|
||||
contains:[l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,e.C_BLOCK_COMMENT_MODE]
|
||||
},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},s,l]}}})()
|
||||
;export default hljsGrammar;
|
@ -1,77 +1,80 @@
|
||||
/*! `javascript` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `javascript` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict"
|
||||
;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],a=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","module","global"],i=[].concat(r,t,s)
|
||||
;return o=>{const l=o.regex,b=e,d={begin:/<[A-Za-z0-9\\._:-]+/,
|
||||
;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],a=["true","false","null","undefined","NaN","Infinity"],t=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],i=[].concat(r,t,s)
|
||||
;return o=>{const l=o.regex,d=e,b={begin:/<[A-Za-z0-9\\._:-]+/,
|
||||
end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{
|
||||
const a=e[0].length+e.index,t=e.input[a]
|
||||
;if("<"===t||","===t)return void n.ignoreMatch();let s
|
||||
;">"===t&&(((e,{after:n})=>{const a="</"+e[0].slice(1)
|
||||
;return-1!==e.input.indexOf(a,n)})(e,{after:a
|
||||
})||n.ignoreMatch()),(s=e.input.substring(a).match(/^\s+extends\s+/))&&0===s.index&&n.ignoreMatch()
|
||||
;return-1!==e.input.indexOf(a,n)})(e,{after:a})||n.ignoreMatch())
|
||||
;const r=e.input.substring(a)
|
||||
;((s=r.match(/^\s*=/))||(s=r.match(/^\s+extends\s+/))&&0===s.index)&&n.ignoreMatch()
|
||||
}},g={$pattern:e,keyword:n,literal:a,built_in:i,"variable.language":c
|
||||
},u="\\.([0-9](_?[0-9])*)",m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",E={
|
||||
},u="[0-9](_?[0-9])*",m=`\\.(${u})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",A={
|
||||
className:"number",variants:[{
|
||||
begin:`(\\b(${m})((${u})|\\.)?|(${u}))[eE][+-]?([0-9](_?[0-9])*)\\b`},{
|
||||
begin:`\\b(${m})\\b((${u})\\b|\\.)?|(${u})\\b`},{
|
||||
begin:`(\\b(${E})((${m})|\\.)?|(${m}))[eE][+-]?(${u})\\b`},{
|
||||
begin:`\\b(${E})\\b((${m})\\b|\\.)?|(${m})\\b`},{
|
||||
begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{
|
||||
begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{
|
||||
begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{
|
||||
begin:"\\b0[0-7]+n?\\b"}],relevance:0},A={className:"subst",begin:"\\$\\{",
|
||||
end:"\\}",keywords:g,contains:[]},y={begin:"html`",end:"",starts:{end:"`",
|
||||
returnEnd:!1,contains:[o.BACKSLASH_ESCAPE,A],subLanguage:"xml"}},N={
|
||||
begin:"\\b0[0-7]+n?\\b"}],relevance:0},y={className:"subst",begin:"\\$\\{",
|
||||
end:"\\}",keywords:g,contains:[]},h={begin:"html`",end:"",starts:{end:"`",
|
||||
returnEnd:!1,contains:[o.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},N={
|
||||
begin:"css`",end:"",starts:{end:"`",returnEnd:!1,
|
||||
contains:[o.BACKSLASH_ESCAPE,A],subLanguage:"css"}},_={className:"string",
|
||||
begin:"`",end:"`",contains:[o.BACKSLASH_ESCAPE,A]},f={className:"comment",
|
||||
contains:[o.BACKSLASH_ESCAPE,y],subLanguage:"css"}},_={begin:"gql`",end:"",
|
||||
starts:{end:"`",returnEnd:!1,contains:[o.BACKSLASH_ESCAPE,y],
|
||||
subLanguage:"graphql"}},f={className:"string",begin:"`",end:"`",
|
||||
contains:[o.BACKSLASH_ESCAPE,y]},p={className:"comment",
|
||||
variants:[o.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{
|
||||
begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",
|
||||
begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,
|
||||
excludeBegin:!0,relevance:0},{className:"variable",begin:b+"(?=\\s*(-)|$)",
|
||||
excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",
|
||||
endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]
|
||||
}),o.C_BLOCK_COMMENT_MODE,o.C_LINE_COMMENT_MODE]
|
||||
},h=[o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,y,N,_,E];A.contains=h.concat({
|
||||
begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(h)})
|
||||
;const v=[].concat(f,A.contains),p=v.concat([{begin:/\(/,end:/\)/,keywords:g,
|
||||
contains:["self"].concat(v)}]),S={className:"params",begin:/\(/,end:/\)/,
|
||||
excludeBegin:!0,excludeEnd:!0,keywords:g,contains:p},w={variants:[{
|
||||
match:[/class/,/\s+/,b,/\s+/,/extends/,/\s+/,l.concat(b,"(",l.concat(/\./,b),")*")],
|
||||
},v=[o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,h,N,_,f,{match:/\$\d+/},A]
|
||||
;y.contains=v.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(v)
|
||||
});const S=[].concat(p,y.contains),w=S.concat([{begin:/\(/,end:/\)/,keywords:g,
|
||||
contains:["self"].concat(S)}]),R={className:"params",begin:/\(/,end:/\)/,
|
||||
excludeBegin:!0,excludeEnd:!0,keywords:g,contains:w},O={variants:[{
|
||||
match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,l.concat(d,"(",l.concat(/\./,d),")*")],
|
||||
scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{
|
||||
match:[/class/,/\s+/,b],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0,
|
||||
match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},k={relevance:0,
|
||||
match:l.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
|
||||
className:"title.class",keywords:{_:[...t,...s]}},O={variants:[{
|
||||
match:[/function/,/\s+/,b,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],
|
||||
className:{1:"keyword",3:"title.function"},label:"func.def",contains:[S],
|
||||
illegal:/%/},k={
|
||||
match:l.concat(/\b/,(I=[...r,"super"],l.concat("(?!",I.join("|"),")")),b,l.lookahead(/\(/)),
|
||||
className:"title.function",relevance:0};var I;const x={
|
||||
begin:l.concat(/\./,l.lookahead(l.concat(b,/(?![0-9A-Za-z$_(])/))),end:b,
|
||||
excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},T={
|
||||
match:[/get|set/,/\s+/,b,/(?=\()/],className:{1:"keyword",3:"title.function"},
|
||||
contains:[{begin:/\(\)/},S]
|
||||
},C="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+o.UNDERSCORE_IDENT_RE+")\\s*=>",M={
|
||||
match:[/const|var|let/,/\s+/,b,/\s*/,/=\s*/,/(async\s*)?/,l.lookahead(C)],
|
||||
keywords:"async",className:{1:"keyword",3:"title.function"},contains:[S]}
|
||||
;return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{
|
||||
PARAMS_CONTAINS:p,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,
|
||||
className:"title.class",keywords:{_:[...t,...s]}},I={variants:[{
|
||||
match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],
|
||||
className:{1:"keyword",3:"title.function"},label:"func.def",contains:[R],
|
||||
illegal:/%/},x={
|
||||
match:l.concat(/\b/,(T=[...r,"super","import"],l.concat("(?!",T.join("|"),")")),d,l.lookahead(/\(/)),
|
||||
className:"title.function",relevance:0};var T;const C={
|
||||
begin:l.concat(/\./,l.lookahead(l.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,
|
||||
excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},M={
|
||||
match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},
|
||||
contains:[{begin:/\(\)/},R]
|
||||
},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+o.UNDERSCORE_IDENT_RE+")\\s*=>",$={
|
||||
match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,l.lookahead(B)],
|
||||
keywords:"async",className:{1:"keyword",3:"title.function"},contains:[R]}
|
||||
;return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{
|
||||
PARAMS_CONTAINS:w,CLASS_REFERENCE:k},illegal:/#(?![$_A-z])/,
|
||||
contains:[o.SHEBANG({label:"shebang",binary:"node",relevance:5}),{
|
||||
label:"use_strict",className:"meta",relevance:10,
|
||||
begin:/^\s*['"]use (strict|asm)['"]/
|
||||
},o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,y,N,_,f,E,R,{className:"attr",
|
||||
begin:b+l.lookahead(":"),relevance:0},M,{
|
||||
},o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,h,N,_,f,p,{match:/\$\d+/},A,k,{
|
||||
className:"attr",begin:d+l.lookahead(":"),relevance:0},$,{
|
||||
begin:"("+o.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",
|
||||
keywords:"return throw case",relevance:0,contains:[f,o.REGEXP_MODE,{
|
||||
className:"function",begin:C,returnBegin:!0,end:"\\s*=>",contains:[{
|
||||
keywords:"return throw case",relevance:0,contains:[p,o.REGEXP_MODE,{
|
||||
className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{
|
||||
className:"params",variants:[{begin:o.UNDERSCORE_IDENT_RE,relevance:0},{
|
||||
className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,
|
||||
excludeEnd:!0,keywords:g,contains:p}]}]},{begin:/,/,relevance:0},{match:/\s+/,
|
||||
excludeEnd:!0,keywords:g,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,
|
||||
relevance:0},{variants:[{begin:"<>",end:"</>"},{
|
||||
match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:d.begin,
|
||||
"on:begin":d.isTrulyOpeningTag,end:d.end}],subLanguage:"xml",contains:[{
|
||||
begin:d.begin,end:d.end,skip:!0,contains:["self"]}]}]},O,{
|
||||
match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:b.begin,
|
||||
"on:begin":b.isTrulyOpeningTag,end:b.end}],subLanguage:"xml",contains:[{
|
||||
begin:b.begin,end:b.end,skip:!0,contains:["self"]}]}]},I,{
|
||||
beginKeywords:"while if switch catch for"},{
|
||||
begin:"\\b(?!function)"+o.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
|
||||
returnBegin:!0,label:"func.def",contains:[S,o.inherit(o.TITLE_MODE,{begin:b,
|
||||
className:"title.function"})]},{match:/\.\.\./,relevance:0},x,{match:"\\$"+b,
|
||||
returnBegin:!0,label:"func.def",contains:[R,o.inherit(o.TITLE_MODE,{begin:d,
|
||||
className:"title.function"})]},{match:/\.\.\./,relevance:0},C,{match:"\\$"+d,
|
||||
relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},
|
||||
contains:[S]},k,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,
|
||||
className:"variable.constant"},w,T,{match:/\$[(.]/}]}}})()
|
||||
contains:[R]},x,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,
|
||||
className:"variable.constant"},O,M,{match:/\$[(.]/}]}}})()
|
||||
;export default hljsGrammar;
|
@ -1,4 +1,4 @@
|
||||
/*! `jboss-cli` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `jboss-cli` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>({name:"JBoss CLI",
|
||||
aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",
|
||||
keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `json` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `json` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const a=["true","false","null"],r={scope:"literal",beginKeywords:a.join(" ")}
|
||||
;return{name:"JSON",keywords:{literal:a},contains:[{className:"attr",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `julia-repl` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `julia-repl` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return a=>({name:"Julia REPL",contains:[{
|
||||
className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,
|
||||
subLanguage:"julia"}}],aliases:["jldoctest"]})})();export default hljsGrammar;
|
@ -1,4 +1,4 @@
|
||||
/*! `julia` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `julia` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const r="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",t={$pattern:r,
|
||||
keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],
|
||||
|
@ -1,17 +1,17 @@
|
||||
/*! `kotlin` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `kotlin` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict"
|
||||
;var e="\\.([0-9](_*[0-9])*)",n="[0-9a-fA-F](_*[0-9a-fA-F])*",a={
|
||||
;var e="[0-9](_*[0-9])*",n=`\\.(${e})`,a="[0-9a-fA-F](_*[0-9a-fA-F])*",i={
|
||||
className:"number",variants:[{
|
||||
begin:`(\\b([0-9](_*[0-9])*)((${e})|\\.)?|(${e}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`
|
||||
},{begin:`\\b([0-9](_*[0-9])*)((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{
|
||||
begin:`(${e})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{
|
||||
begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`
|
||||
},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{
|
||||
begin:`(\\b(${e})((${n})|\\.)?|(${n}))[eE][+-]?(${e})[fFdD]?\\b`},{
|
||||
begin:`\\b(${e})((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`
|
||||
},{begin:`\\b(${e})[fFdD]\\b`},{
|
||||
begin:`\\b0[xX]((${a})\\.?|(${a})?\\.(${a}))[pP][+-]?(${e})[fFdD]?\\b`},{
|
||||
begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${a})[lL]?\\b`},{
|
||||
begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],
|
||||
relevance:0};return e=>{const n={
|
||||
keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",
|
||||
built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",
|
||||
literal:"true false null"},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"
|
||||
literal:"true false null"},a={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"
|
||||
},s={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},t={
|
||||
className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},r={className:"string",
|
||||
variants:[{begin:'"""',end:'"""(?=[^"])',contains:[t,s]},{begin:"'",end:"'",
|
||||
@ -21,14 +21,14 @@ className:"meta",
|
||||
begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"
|
||||
},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,
|
||||
end:/\)/,contains:[e.inherit(r,{className:"string"}),"self"]}]
|
||||
},o=a,b=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),E={
|
||||
},o=i,b=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),E={
|
||||
variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,
|
||||
contains:[]}]},d=E;return d.variants[1].contains=[E],E.variants[1].contains=[d],
|
||||
{name:"Kotlin",aliases:["kt","kts"],keywords:n,
|
||||
contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",
|
||||
begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,b,{className:"keyword",
|
||||
begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",
|
||||
begin:/@\w+/}]}},i,l,c,{className:"function",beginKeywords:"fun",end:"[(]|$",
|
||||
begin:/@\w+/}]}},a,l,c,{className:"function",beginKeywords:"fun",end:"[(]|$",
|
||||
returnBegin:!0,excludeEnd:!0,keywords:n,relevance:5,contains:[{
|
||||
begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,
|
||||
contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,
|
||||
|
@ -1,29 +1,28 @@
|
||||
/*! `lasso` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `lasso` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const a="<\\?(lasso(script)?|=)",n="\\]|\\?>",r={
|
||||
$pattern:"[a-zA-Z_][\\w.]*|&[lg]t;",
|
||||
const a="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",r="\\]|\\?>",t={
|
||||
$pattern:a+"|&[lg]t;",
|
||||
literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",
|
||||
built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",
|
||||
keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"
|
||||
},t=e.COMMENT("\x3c!--","--\x3e",{relevance:0}),s={className:"meta",
|
||||
begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[t]
|
||||
}},i={className:"meta",begin:"\\[/noprocess|"+a
|
||||
},l=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{
|
||||
},s=e.COMMENT("\x3c!--","--\x3e",{relevance:0}),i={className:"meta",
|
||||
begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]
|
||||
}},l={className:"meta",begin:"\\[/noprocess|"+n},o={className:"symbol",
|
||||
begin:"'"+a+"'"
|
||||
},c=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{
|
||||
begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{
|
||||
illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{
|
||||
className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$][a-zA-Z_][\\w.]*"
|
||||
},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",
|
||||
end:"[a-zA-Z_][\\w.]*",illegal:"\\W"},{className:"params",variants:[{
|
||||
begin:"-(?!infinity)[a-zA-Z_][\\w.]*",relevance:0},{begin:"(\\.\\.\\.)"}]},{
|
||||
begin:/(->|\.)\s*/,relevance:0,contains:[{className:"symbol",
|
||||
begin:"'[a-zA-Z_][\\w.]*'"}]},{className:"class",beginKeywords:"define",
|
||||
returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{
|
||||
begin:"[a-zA-Z_][\\w.]*(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",
|
||||
aliases:["ls","lassoscript"],case_insensitive:!0,keywords:r,contains:[{
|
||||
className:"meta",begin:n,relevance:0,starts:{end:"\\[|"+a,returnEnd:!0,
|
||||
relevance:0,contains:[t]}},s,i,{className:"meta",begin:"\\[no_square_brackets",
|
||||
starts:{end:"\\[/no_square_brackets\\]",keywords:r,contains:[{className:"meta",
|
||||
begin:n,relevance:0,starts:{end:"\\[noprocess\\]|"+a,returnEnd:!0,contains:[t]}
|
||||
},s,i].concat(l)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",
|
||||
begin:"^#!",end:"lasso9$",relevance:10}].concat(l)}}})()
|
||||
;export default hljsGrammar;
|
||||
className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+a},{begin:"#",
|
||||
end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:a,illegal:"\\W"
|
||||
},{className:"params",variants:[{begin:"-(?!infinity)"+a,relevance:0},{
|
||||
begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[o]},{
|
||||
className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",
|
||||
contains:[e.inherit(e.TITLE_MODE,{begin:a+"(=(?!>))?|[-+*/%](?!>)"})]}];return{
|
||||
name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:t,
|
||||
contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[|"+n,
|
||||
returnEnd:!0,relevance:0,contains:[s]}},i,l,{className:"meta",
|
||||
begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",
|
||||
keywords:t,contains:[{className:"meta",begin:r,relevance:0,starts:{
|
||||
end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[s]}},i,l].concat(c)}},{
|
||||
className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",
|
||||
end:"lasso9$",relevance:10}].concat(c)}}})();export default hljsGrammar;
|
@ -1,4 +1,4 @@
|
||||
/*! `latex` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `latex` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{const a=[{begin:/\^{6}[0-9a-f]{6}/
|
||||
},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{
|
||||
begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `ldif` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `ldif` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return a=>({name:"LDIF",contains:[{
|
||||
className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",
|
||||
match:"^\\w+(?=:)"},{className:"literal",match:"^-"},a.HASH_COMMENT_MODE]})})()
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! `leaf` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `leaf` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return a=>({name:"Leaf",contains:[{
|
||||
className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:/ \{/,returnBegin:!0,
|
||||
excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{className:"title",
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
/*! `lisp` grammar compiled for Highlight.js 11.6.0 */
|
||||
/*! `lisp` grammar compiled for Highlight.js 11.8.0 */
|
||||
var hljsGrammar=(()=>{"use strict";return e=>{
|
||||
const n="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",a="\\|[^]*?\\|",i="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",s={
|
||||
className:"literal",begin:"\\b(t{1}|nil)\\b"},l={className:"number",variants:[{
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user