knowledgebase_law/node_modules/.vite/deps/chunk-ASX3K5C7.js
2025-04-11 11:47:09 -04:00

80 lines
2.9 KiB
JavaScript

import {
__commonJS
} from "./chunk-2TUXWMP5.js";
// node_modules/refractor/lang/tremor.js
var require_tremor = __commonJS({
"node_modules/refractor/lang/tremor.js"(exports, module) {
module.exports = tremor;
tremor.displayName = "tremor";
tremor.aliases = [];
function tremor(Prism) {
;
(function(Prism2) {
Prism2.languages.tremor = {
comment: {
pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,
lookbehind: true
},
"interpolated-string": null,
// see below
extractor: {
pattern: /\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,
greedy: true,
inside: {
regex: {
pattern: /(^re)\|[\s\S]+/,
lookbehind: true
},
function: /^\w+/,
value: /\|[\s\S]+/
}
},
identifier: {
pattern: /`[^`]*`/,
greedy: true
},
function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,
keyword: /\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,
boolean: /\b(?:false|null|true)\b/i,
number: /\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,
"pattern-punctuation": {
pattern: /%(?=[({[])/,
alias: "punctuation"
},
operator: /[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,
punctuation: /::|[;\[\]()\{\},.:]/
};
var interpolationPattern = /#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;
Prism2.languages.tremor["interpolated-string"] = {
pattern: RegExp(
/(^|[^\\])/.source + '(?:"""(?:' + /[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source + "|" + interpolationPattern + ')*"""|"(?:' + /[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source + "|" + interpolationPattern + ')*")'
),
lookbehind: true,
greedy: true,
inside: {
interpolation: {
pattern: RegExp(interpolationPattern),
inside: {
punctuation: /^#\{|\}$/,
expression: {
pattern: /[\s\S]+/,
inside: Prism2.languages.tremor
}
}
},
string: /[\s\S]+/
}
};
Prism2.languages.troy = Prism2.languages["tremor"];
Prism2.languages.trickle = Prism2.languages["tremor"];
})(Prism);
}
}
});
export {
require_tremor
};
//# sourceMappingURL=chunk-ASX3K5C7.js.map