mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 19:38:20 -07:00
29 lines
830 B
JavaScript
29 lines
830 B
JavaScript
|
Prism.languages.apl = {
|
|||
|
'comment': /(?:⍝|#[! ]).*$/m,
|
|||
|
'string': /'(?:[^'\r\n]|'')*'/,
|
|||
|
'number': /¯?(?:\d*\.?\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:\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'
|
|||
|
}
|
|||
|
};
|