mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
881c0559fd
Bump version to 3.9 Change text color of recent project date
11 lines
441 B
JavaScript
11 lines
441 B
JavaScript
Prism.languages.molang = {
|
|
'string': /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
'function-name': /\b(?!\d)math\.\w+(?=[\t ]*\()/i,
|
|
'selector': /\b(?!\d)((query|variable|temp|context|math|q|v|t|c)\.\w+)|this/i,
|
|
'boolean': /\b(?:true|false)\b/i,
|
|
'number': /(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,
|
|
'operator': /&&|\|\||[-+*/!<>]=?|[:?=]/i,
|
|
'keyword': /\b(Return)\b/i,
|
|
'punctuation': /[.,;()[\]{}]/,
|
|
};
|