using the percent character in variable names is now safe
pull/3/merge
jmoenig 2013-04-21 17:57:14 +02:00
rodzic 7681525cc2
commit 977da0314c
2 zmienionych plików z 8 dodań i 3 usunięć

Wyświetl plik

@ -153,7 +153,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph*/
// Global stuff //////////////////////////////////////////////////////// // Global stuff ////////////////////////////////////////////////////////
modules.blocks = '2013-April-19'; modules.blocks = '2013-April-21';
var SyntaxElementMorph; var SyntaxElementMorph;
var BlockMorph; var BlockMorph;
@ -628,8 +628,9 @@ SyntaxElementMorph.prototype.fixBlockColor = function (
SyntaxElementMorph.prototype.labelPart = function (spec) { SyntaxElementMorph.prototype.labelPart = function (spec) {
var part; var part;
if ((spec[0] === '%') && (spec.length > 1)) { if (spec[0] === '%' &&
spec.length > 1 &&
this.selector !== 'reportGetVar') {
// check for variable multi-arg-slot: // check for variable multi-arg-slot:
if ((spec.length > 5) && (spec.slice(0, 5) === '%mult')) { if ((spec.length > 5) && (spec.slice(0, 5) === '%mult')) {
part = new MultiArgMorph(spec.slice(5)); part = new MultiArgMorph(spec.slice(5));

Wyświetl plik

@ -1643,3 +1643,7 @@ ______
130419 130419
------ ------
* German translation update for "scripts pic" feature * German translation update for "scripts pic" feature
130421
------
* using the percent character in variable names is now safe (fixes Github issue #65)