mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-17 16:20:13 +08:00
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:
parent
5112b56bf0
commit
1ec07f21c4
@ -108,7 +108,10 @@ Animator.MolangParser.variableHandler = function (variable) {
|
||||
'temp.', //'t.',
|
||||
'context.', //'c.',
|
||||
'this',
|
||||
'loop()',
|
||||
'return',
|
||||
'break',
|
||||
'continue',
|
||||
]
|
||||
let MolangQueries = [
|
||||
// common
|
||||
|
@ -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
@ -24,6 +24,5 @@
|
||||
"background_color": "#21252b",
|
||||
"theme_color": "#3e90ff",
|
||||
"display": "standalone",
|
||||
"display_override": ["tabbed", "minimal-ui"],
|
||||
"orientation": "any"
|
||||
"display_override": ["tabbed", "minimal-ui"]
|
||||
}
|
Loading…
Reference in New Issue
Block a user