73bcce88
luigser
COMPONENTS
|
1
|
Prism.languages.rip = {
|
eb240478
Luigi Serra
public room cards...
|
2
|
'comment': /#.*/,
|
73bcce88
luigser
COMPONENTS
|
3
4
5
|
'keyword': /(?:=>|->)|\b(?:class|if|else|switch|case|return|exit|try|catch|finally|raise)\b/,
|
eb240478
Luigi Serra
public room cards...
|
6
|
'builtin': /@|\bSystem\b/,
|
73bcce88
luigser
COMPONENTS
|
7
|
|
eb240478
Luigi Serra
public room cards...
|
8
|
'boolean': /\b(?:true|false)\b/,
|
73bcce88
luigser
COMPONENTS
|
9
10
11
12
13
|
'date': /\b\d{4}-\d{2}-\d{2}\b/,
'time': /\b\d{2}:\d{2}:\d{2}\b/,
'datetime': /\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,
|
73bcce88
luigser
COMPONENTS
|
14
15
16
|
'character': /\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,
'regex': {
|
eb240478
Luigi Serra
public room cards...
|
17
|
pattern: /(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\\\r\n])+\/(?=\s*($|[\r\n,.;})]))/,
|
73bcce88
luigser
COMPONENTS
|
18
19
20
21
22
|
lookbehind: true
},
'symbol': /:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,
'string': /("|')(\\?.)*?\1/,
|
eb240478
Luigi Serra
public room cards...
|
23
|
'number': /[+-]?(?:(?:\d+\.\d+)|(?:\d+))/,
|
73bcce88
luigser
COMPONENTS
|
24
25
26
27
28
|
'punctuation': /(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,
'reference': /[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/
};
|