Locally add prismjs
This commit is contained in:
parent
35af792c6a
commit
6aa044cf9b
701 changed files with 35787 additions and 0 deletions
32
node_modules/prismjs/components/prism-apl.js
generated
vendored
Normal file
32
node_modules/prismjs/components/prism-apl.js
generated
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
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'
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue