diff options
| author | jmoenig <jens@moenig.org> | 2013-04-21 17:57:14 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-04-21 17:57:14 +0200 |
| commit | 977da0314c01ce8d3cda160cb913e12d4a980f36 (patch) | |
| tree | b8acf63c7d14a38f9b4eaa32667021808917a2cc | |
| parent | 7681525cc2f3f900136d745dc95594b3a731dcd1 (diff) | |
| download | snap-byow-977da0314c01ce8d3cda160cb913e12d4a980f36.tar.gz snap-byow-977da0314c01ce8d3cda160cb913e12d4a980f36.zip | |
Fixed #65
using the percent character in variable names is now safe
| -rw-r--r-- | blocks.js | 7 | ||||
| -rwxr-xr-x | history.txt | 4 |
2 files changed, 8 insertions, 3 deletions
@@ -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)); diff --git a/history.txt b/history.txt index cea0d19..f8cb536 100755 --- a/history.txt +++ b/history.txt @@ -1643,3 +1643,7 @@ ______ 130419 ------ * German translation update for "scripts pic" feature + +130421 +------ +* using the percent character in variable names is now safe (fixes Github issue #65) |
