2020-09-13 15:34:12 +02:00
|
|
|
Prism.languages.molang = {
|
|
|
|
'string': /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
|
|
'function-name': /\b(?!\d)math\.\w+(?=[\t ]*\()/i,
|
2021-05-22 09:51:37 +02:00
|
|
|
'selector': /\b(?!\d)((query|variable|temp|context|math|q|v|t|c)\.\w+)|this/i,
|
2020-09-13 15:34:12 +02:00
|
|
|
'boolean': /\b(?:true|false)\b/i,
|
|
|
|
'number': /(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,
|
2020-09-29 17:14:26 +02:00
|
|
|
'operator': /&&|\|\||[-+*/!<>]=?|[:?=]/i,
|
2020-09-13 15:34:12 +02:00
|
|
|
'keyword': /\b(Return)\b/i,
|
|
|
|
'punctuation': /[.,;()[\]{}]/,
|
|
|
|
};
|