-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhlJS.js
20 lines (13 loc) · 1.47 KB
/
hlJS.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function setClass(className, value) {
return `<span class="hljs-${className}">${value}</span>`;
}
// 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 = ["Intl", "DataView", "Number", "Math", "Date", "String", "RegExp", "Object", "Function", "Boolean", "Error", "Symbol", "Set", "Map", "WeakSet", "WeakMap", "Proxy", "Reflect", "JSON", "Promise", "Float64Array", "Int16Array", "Int32Array", "Int8Array", "Uint16Array", "Uint32Array", "Float32Array", "Array", "Uint8Array", "Uint8ClampedArray", "ArrayBuffer", "BigInt64Array", "BigUint64Array", "BigInt"],
// s = ["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"],
// i = ["arguments", "this", "super", "console", "window", "document", "localStorage", "module", "global"],
// c = [].concat(r, t, s);
function hlJS(js) {
}