Repository navigation
Commit 10bd4a2
committed
gh-142714: Strip hidden parts of the PEG grammar in all builders
Apply PEGLexer's stripping to peg literal blocks before the i18n transform,
so the catalogs (and the text builder) only get what the rendered page shows.
This also stops the hidden rules from showing on translated pages, which
happens when the "rules for invalid syntax" comment is translated (as on
zh-tw).1 parent c04ad8c commit 10bd4a2
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
5 | 25 | | |
6 | 26 | | |
7 | 27 | | |
8 | 28 | | |
9 | 29 | | |
| 30 | + | |
10 | 31 | | |
11 | 32 | | |
12 | 33 | | |
| |||
0 commit comments