Locally add prismjs
This commit is contained in:
parent
35af792c6a
commit
6aa044cf9b
701 changed files with 35787 additions and 0 deletions
21
node_modules/prismjs/components/prism-warpscript.js
generated
vendored
Normal file
21
node_modules/prismjs/components/prism-warpscript.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
Prism.languages.warpscript = {
|
||||
'comment': /#.*|\/\/.*|\/\*[\s\S]*?\*\//,
|
||||
'string': {
|
||||
pattern: /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,
|
||||
greedy: true
|
||||
},
|
||||
'variable': /\$\S+/,
|
||||
'macro': {
|
||||
pattern: /@\S+/,
|
||||
alias: 'property'
|
||||
},
|
||||
// WarpScript doesn't have any keywords, these are all functions under the control category
|
||||
// https://www.warp10.io/tags/control
|
||||
'keyword': /\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,
|
||||
'number': /[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,
|
||||
'boolean': /\b(?:F|T|false|true)\b/,
|
||||
'punctuation': /<%|%>|[{}[\]()]/,
|
||||
// Some operators from the "operators" category
|
||||
// https://www.warp10.io/tags/operators
|
||||
'operator': /==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue