@@ -394,10 +394,10 @@ <h1><a href="https://github.com/dy/subscript" class="logo-link" target="_blank"
394394 ternary : '?:' , arrow : '=>' , optional : '?.' , spread : '...' ,
395395 unary : 'typeof void' , identity : '=== !==' , nullish : '??' ,
396396 // Literals
397- literal : 'true/false/null' , collection : '[], {}' , template : '`${}`' ,
397+ literal : 'true/false/null' , collection : '[1,2 ], {a:1 }' , template : '`${}`' ,
398398 regex : '/re/' , unit : '5px' , comment : '//' ,
399399 // Control
400- block : '{ }' , 'if' : 'if/else' , loop : 'for/while' , 'switch' : 'switch' ,
400+ block : '{... }' , 'if' : 'if/else' , loop : 'for/while' , 'switch' : 'switch,
401401 ' var ': 'let/const' , destruct : '{a,b}=' , 'try' : 'try/catch' ,
402402 // Functions
403403 'function' : 'fn(){}' , async : 'async/await' , 'class' : 'class X {}' ,
@@ -431,7 +431,7 @@ <h1><a href="https://github.com/dy/subscript" class="logo-link" target="_blank"
431431 regex : 'Regular expressions<br><code>/pattern/</code> <code>/\\d+/g</code>' ,
432432 unit : 'Unit suffixes<br><code>5px</code> <code>10rem</code> <code>2s</code>' ,
433433 comment : 'Comments (ignored)<br><code>// line</code> <code>/* block */</code>' ,
434- block : 'Block statements <br><code>{ stmt1; stmt2 }</code>' ,
434+ block : 'Statement block <br><code>if (x) { a; b }</code>' ,
435435 'if' : 'Conditionals<br><code>if (c) x</code> <code>if (c) x else y</code>' ,
436436 loop : 'Loops<br><code>while (c) body</code> <code>for (;;) body</code> <code>for (x of arr)</code>' ,
437437 'switch' : 'Switch statement<br><code>switch (x) { case 1: ... }</code>' ,
0 commit comments