From 977da0314c01ce8d3cda160cb913e12d4a980f36 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Sun, 21 Apr 2013 17:57:14 +0200 Subject: Fixed #65 using the percent character in variable names is now safe --- blocks.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'blocks.js') diff --git a/blocks.js b/blocks.js index 35c01a7..44ffdb5 100644 --- a/blocks.js +++ b/blocks.js @@ -153,7 +153,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2013-April-19'; +modules.blocks = '2013-April-21'; var SyntaxElementMorph; var BlockMorph; @@ -628,8 +628,9 @@ SyntaxElementMorph.prototype.fixBlockColor = function ( SyntaxElementMorph.prototype.labelPart = function (spec) { var part; - if ((spec[0] === '%') && (spec.length > 1)) { - + if (spec[0] === '%' && + spec.length > 1 && + this.selector !== 'reportGetVar') { // check for variable multi-arg-slot: if ((spec.length > 5) && (spec.slice(0, 5) === '%mult')) { part = new MultiArgMorph(spec.slice(5)); -- cgit v1.3.1