@@ -62,7 +62,7 @@ if (Meteor.is_client) {
6262 var statementHeads = makeSet (
6363 ( 'functionDecl expression label block variables ' +
6464 'if for do while return continue break throw with switch ' +
65- 'try debugger' ) . split ( ' ' ) ) ;
65+ 'try debugger empty ' ) . split ( ' ' ) ) ;
6666 var toHtml = function ( obj ) {
6767 if ( _ . isArray ( obj ) ) {
6868 var head = obj [ 0 ] || 'none' ;
@@ -73,7 +73,8 @@ if (Meteor.is_client) {
7373 info ,
7474 '<div class="box named' + ( isStatement ? ' statement' : '' ) +
7575 '"><div class="box head">' +
76- Handlebars . _escape ( head ) + '</div>' +
76+ Handlebars . _escape ( head + ( isStatement ? ' statement' : '' ) ) +
77+ '</div>' +
7778 _ . map ( rest , toHtml ) . join ( '' ) + '</div>' ) ;
7879 unclosedInfos . push ( info ) ;
7980 return html ;
@@ -86,9 +87,9 @@ if (Meteor.is_client) {
8687 unclosedInfos . length = 0 ;
8788 var text = obj . text ;
8889 // insert zero-width spaces to allow wrapping
89- text = text . replace ( / \w { 10 } / g, "$&\n" ) ;
90+ text = text . replace ( / . { 20 } / g, "$&\n" ) ;
9091 text = Handlebars . _escape ( text ) ;
91- text = text . replace ( / \n / g, '­ ;' ) ;
92+ text = text . replace ( / \n / g, '​ ;' ) ;
9293 return Spark . setDataContext (
9394 obj ,
9495 '<div class="box token">' + text + '</div>' ) ;
0 commit comments