Commit 2fb9e3c
Fix formatting of markdown grammar with cut
This fixes a formatting issue with how the grammar is rendered in
markdown when there is a cut operator. The Alt renderer was incorrectly
missing a space on alternations that span multiple lines with a cut
operator. This is because the Cut expression is essentially the same as
a sequence, but the `last_expr` function was not treating it that way.
The Cut was preventing it from seeing that the alternation had a Break
at the end.1 parent a26605e commit 2fb9e3c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments