Commit 69f651c
committed
fix allowing empty
Because of the leading pipe, |, these categories were permitted to be
empty:
AsciiEscape ::=
| $$\0$$
| $$\"$$
..
Because of that, CharacterLiteral was also allowed to be empty:
CharacterLiteral ::=
$$'$$ CharacterContent $$'$$
CharacterContent ::=
AsciiEscape
| CharacterLiteralCharacter
| UnicodeEscape
Same for ByteEscape and ByteLiteral. These were the only two categories:
$ rg -U '::=\n +\|' | wc -l
0{Ascii,Byte}Escape
1 parent 61713ca commit 69f651c
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
| 577 | + | |
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| |||
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
1105 | | - | |
| 1105 | + | |
1106 | 1106 | | |
1107 | 1107 | | |
1108 | 1108 | | |
| |||
0 commit comments