Commit 29ece43
committed
fix c grammar for wide string literals
It seems to me that it's impossible to parse wide string literals using c.peg. (i.e. L"foo"). The issue appears to be that the "L" will be captured by the Identifier subrule in PrimaryExpression before StringLiteral can capture it. My fix is to reorder these subrules, putting StringLiteral before Identifier.1 parent 984ba86 commit 29ece43
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
0 commit comments