Commit 7ae671d
Support for labels with no statement (#562)
* Add possibility to omit semicolon in labeled statement
* Add extra rule to properly parse semicolons so that the ASTs remain equal. Add test corroborating equality of ASTs
* Remove unnecesary rule for labeled statements
* Update label test to check the structure of the AST
---------
Co-authored-by: Ignacio Tiraboschi <ignacio.tiraboschi@eclypsium.com>1 parent 42b5423 commit 7ae671d
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1580 | 1580 | | |
1581 | 1581 | | |
1582 | 1582 | | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
1583 | 1587 | | |
1584 | 1588 | | |
1585 | 1589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2489 | 2489 | | |
2490 | 2490 | | |
2491 | 2491 | | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
2492 | 2506 | | |
2493 | 2507 | | |
2494 | 2508 | | |
| |||
0 commit comments