mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-09 02:08:16 +08:00
52 lines
1.4 KiB
JavaScript
52 lines
1.4 KiB
JavaScript
|
import {
|
||
|
__commonJS
|
||
|
} from "./chunk-2TUXWMP5.js";
|
||
|
|
||
|
// node_modules/refractor/lang/apl.js
|
||
|
var require_apl = __commonJS({
|
||
|
"node_modules/refractor/lang/apl.js"(exports, module) {
|
||
|
module.exports = apl;
|
||
|
apl.displayName = "apl";
|
||
|
apl.aliases = [];
|
||
|
function apl(Prism) {
|
||
|
Prism.languages.apl = {
|
||
|
comment: /(?:⍝|#[! ]).*$/m,
|
||
|
string: {
|
||
|
pattern: /'(?:[^'\r\n]|'')*'/,
|
||
|
greedy: true
|
||
|
},
|
||
|
number: /¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,
|
||
|
statement: /:[A-Z][a-z][A-Za-z]*\b/,
|
||
|
"system-function": {
|
||
|
pattern: /⎕[A-Z]+/i,
|
||
|
alias: "function"
|
||
|
},
|
||
|
constant: /[⍬⌾#⎕⍞]/,
|
||
|
function: /[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
|
||
|
"monadic-operator": {
|
||
|
pattern: /[\\\/⌿⍀¨⍨⌶&∥]/,
|
||
|
alias: "operator"
|
||
|
},
|
||
|
"dyadic-operator": {
|
||
|
pattern: /[.⍣⍠⍤∘⌸@⌺⍥]/,
|
||
|
alias: "operator"
|
||
|
},
|
||
|
assignment: {
|
||
|
pattern: /←/,
|
||
|
alias: "keyword"
|
||
|
},
|
||
|
punctuation: /[\[;\]()◇⋄]/,
|
||
|
dfn: {
|
||
|
pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
|
||
|
alias: "builtin"
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
export {
|
||
|
require_apl
|
||
|
};
|
||
|
//# sourceMappingURL=chunk-AFVBVPIL.js.map
|