summaryrefslogtreecommitdiff
path: root/byob.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2015-05-06 15:32:17 +0200
committerGubolin <gubolin@fantasymail.de>2015-05-06 15:32:17 +0200
commitb0d5fca03273d74c009c1415285c0ec375e1f848 (patch)
tree38a6a8ab1714f0f0945cd6b1a093503c8e9ac127 /byob.js
parent8a83be1c8a37ed3b3672c77028741ec5ec8c7b5a (diff)
parent83628bc0aca42c078a96b0a6fbb2675cf6cae5c3 (diff)
downloadsnap-b0d5fca03273d74c009c1415285c0ec375e1f848.tar.gz
snap-b0d5fca03273d74c009c1415285c0ec375e1f848.zip
merge upstream
Diffstat (limited to 'byob.js')
-rw-r--r--byob.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/byob.js b/byob.js
index c9f3daa..bc0f75f 100644
--- a/byob.js
+++ b/byob.js
@@ -106,7 +106,7 @@ SymbolMorph, isNil*/
// Global stuff ////////////////////////////////////////////////////////
-modules.byob = '2015-March-02';
+modules.byob = '2015-May-01';
// Declarations
@@ -2049,7 +2049,13 @@ BlockLabelFragment.prototype.defTemplateSpecFragment = function () {
)) {
suff = ' \u03BB';
} else if (this.defaultValue) {
- suff = ' = ' + this.defaultValue.toString();
+ if (this.type === '%n') {
+ suff = ' # = ' + this.defaultValue.toString();
+ } else { // 'any' or 'text'
+ suff = ' = ' + this.defaultValue.toString();
+ }
+ } else if (this.type === '%n') {
+ suff = ' #';
}
return this.labelString + suff;
};