We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 984ba86 + 29ece43 commit e7588a8Copy full SHA for e7588a8
2 files changed
grammars/c/c.peg
@@ -313,9 +313,9 @@ JumpStatement
313
#-------------------------------------------------------------------------
314
315
PrimaryExpression
316
- <- Identifier
+ <- StringLiteral
317
/ Constant
318
- / StringLiteral
+ / Identifier
319
/ LPAR Expression RPAR
320
321
PostfixExpression
grammars/c/c_test.go
@@ -202,3 +202,7 @@ func TestCParsing_Long(t *testing.T) {
202
}
203
walk("c/")
204
205
+
206
+func TestCParsing_WideString(t *testing.T) {
207
+ parseC_4t(t, `wchar_t *msg = L"Hello";`);
208
+}
0 commit comments