summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blocks.js1
-rw-r--r--threads.js3
2 files changed, 4 insertions, 0 deletions
diff --git a/blocks.js b/blocks.js
index 61d8b01..fb47993 100644
--- a/blocks.js
+++ b/blocks.js
@@ -836,6 +836,7 @@ SyntaxElementMorph.prototype.labelPart = function (spec) {
null, // text
false, // numeric?
{
+ 'character' : ['character'],
'whitespace' : ['whitespace'],
'line' : ['line'],
'tab' : ['tab'],
diff --git a/threads.js b/threads.js
index 50abf78..3b7074e 100644
--- a/threads.js
+++ b/threads.js
@@ -2148,6 +2148,9 @@ Process.prototype.reportTextSplit = function (string, delimiter) {
break;
case 'whitespace':
return new List(str.trim().split(/[\t\r\n ]+/));
+ case 'character':
+ del = '';
+ break
default:
del = (delimiter || '').toString();
}