blockbench/lib/molang-prism-syntax.js
JannisX11 0896c7dcd9 Fix some number input issues
Fix min-max not working for number settings
Change PWA screen orientation
Fix dialog stack issue
Update molang
2022-12-31 01:28:49 +01:00

11 lines
465 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+f?)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b/i,
'operator': /&&|\|\||[-+*/!<>]=?|[:?=]/i,
'keyword': /\b(return|loop|for_each|break|continue)\b/i,
'punctuation': /[.,;()[\]{}]/,
};