完成世界书、骰子、apiconfig页面处理
This commit is contained in:
44
frontend/node_modules/refractor/lang/apl.js
generated
vendored
Normal file
44
frontend/node_modules/refractor/lang/apl.js
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
// @ts-nocheck
|
||||
/**
|
||||
* @import {Refractor} from '../lib/core.js'
|
||||
*/
|
||||
apl.displayName = 'apl'
|
||||
apl.aliases = []
|
||||
|
||||
/** @param {Refractor} Prism */
|
||||
export default 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user