| ... | ... | @@ -5387,10 +5387,7 @@ fn parseCPrimaryExpr(c: *Context, it: *CTokenList.Iterator, source: []const u8, |
| 5387 | 5387 | switch (tok.id) { |
| 5388 | 5388 | .CharLiteral => { |
| 5389 | 5389 | const first_tok = it.list.at(0); |
| 5390 | | if ( |
| 5391 | | (source[tok.start+1] == '\\' and tok.end - tok.start == 4) |
| 5392 | | or (source[tok.start+1] != '\\' and tok.end - tok.start == 3) |
| 5393 | | ) { |
| 5390 | if (source[tok.start] != '\'' or source[tok.start + 1] == '\\' or tok.end - tok.start == 3) { |
| 5394 | 5391 | const token = try appendToken(c, .CharLiteral, try zigifyEscapeSequences(c, source[tok.start..tok.end], source[first_tok.start..first_tok.end], source_loc)); |
| 5395 | 5392 | const node = try c.a().create(ast.Node.CharLiteral); |
| 5396 | 5393 | node.* = .{ |