mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-09 05:58:15 +08:00
58 lines
2.3 KiB
JavaScript
58 lines
2.3 KiB
JavaScript
|
import {
|
||
|
__commonJS
|
||
|
} from "./chunk-2TUXWMP5.js";
|
||
|
|
||
|
// node_modules/refractor/lang/kusto.js
|
||
|
var require_kusto = __commonJS({
|
||
|
"node_modules/refractor/lang/kusto.js"(exports, module) {
|
||
|
module.exports = kusto;
|
||
|
kusto.displayName = "kusto";
|
||
|
kusto.aliases = [];
|
||
|
function kusto(Prism) {
|
||
|
Prism.languages.kusto = {
|
||
|
comment: {
|
||
|
pattern: /\/\/.*/,
|
||
|
greedy: true
|
||
|
},
|
||
|
string: {
|
||
|
pattern: /```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,
|
||
|
greedy: true
|
||
|
},
|
||
|
verb: {
|
||
|
pattern: /(\|\s*)[a-z][\w-]*/i,
|
||
|
lookbehind: true,
|
||
|
alias: "keyword"
|
||
|
},
|
||
|
command: {
|
||
|
pattern: /\.[a-z][a-z\d-]*\b/,
|
||
|
alias: "keyword"
|
||
|
},
|
||
|
"class-name": /\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,
|
||
|
keyword: /\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,
|
||
|
boolean: /\b(?:false|null|true)\b/,
|
||
|
function: /\b[a-z_]\w*(?=\s*\()/,
|
||
|
datetime: [
|
||
|
{
|
||
|
// RFC 822 + RFC 850
|
||
|
pattern: /\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,
|
||
|
alias: "number"
|
||
|
},
|
||
|
{
|
||
|
// ISO 8601
|
||
|
pattern: /[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,
|
||
|
alias: "number"
|
||
|
}
|
||
|
],
|
||
|
number: /\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,
|
||
|
operator: /=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,
|
||
|
punctuation: /[()\[\]{},;.:]/
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
export {
|
||
|
require_kusto
|
||
|
};
|
||
|
//# sourceMappingURL=chunk-T72ZIGED.js.map
|