mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
Conv macro string concat to ++
This commit is contained in:
parent
f9db21f03e
commit
2a05ca1c94
@ -5782,6 +5782,18 @@ fn parseCSuffixOpExpr(c: *Context, it: *CTokenList.Iterator, source: []const u8,
|
||||
op_id = .Mod;
|
||||
op_token = try appendToken(c, .Percent, "%");
|
||||
},
|
||||
.StringLiteral => {
|
||||
op_id = .ArrayCat;
|
||||
op_token = try appendToken(c, .PlusPlus, "++");
|
||||
|
||||
_ = it.prev();
|
||||
},
|
||||
.Identifier => {
|
||||
op_id = .ArrayCat;
|
||||
op_token = try appendToken(c, .PlusPlus, "++");
|
||||
|
||||
_ = it.prev();
|
||||
},
|
||||
else => {
|
||||
_ = it.prev();
|
||||
return node;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user