Update MolangJS to 1.6

Add support for conditional scopes and loops
Try and fix PWA issue where app still rotates with auto rotation disabled on device
This commit is contained in:
JannisX11 2022-12-30 01:13:42 +01:00
parent 5112b56bf0
commit 1ec07f21c4
4 changed files with 6 additions and 4 deletions

View File

@ -108,7 +108,10 @@ Animator.MolangParser.variableHandler = function (variable) {
'temp.', //'t.',
'context.', //'c.',
'this',
'loop()',
'return',
'break',
'continue',
]
let MolangQueries = [
// common

View File

@ -5,6 +5,6 @@ Prism.languages.molang = {
'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,
'keyword': /\b(return|loop|for_each|break|continue)\b/i,
'punctuation': /[.,;()[\]{}]/,
};

File diff suppressed because one or more lines are too long

View File

@ -24,6 +24,5 @@
"background_color": "#21252b",
"theme_color": "#3e90ff",
"display": "standalone",
"display_override": ["tabbed", "minimal-ui"],
"orientation": "any"
"display_override": ["tabbed", "minimal-ui"]
}