Merge pull request #557 from Techatrix/patch-1
Highlight orelse as a keyword
This commit is contained in:
commit
0f7d173ea1
@ -871,7 +871,7 @@ fn writeNodeTokens(builder: *Builder, arena: *std.heap.ArenaAllocator, store: *D
|
|||||||
=> {
|
=> {
|
||||||
try await @asyncCall(child_frame, {}, writeNodeTokens, .{ builder, arena, store, node_data[node].lhs });
|
try await @asyncCall(child_frame, {}, writeNodeTokens, .{ builder, arena, store, node_data[node].lhs });
|
||||||
const token_type: TokenType = switch (tag) {
|
const token_type: TokenType = switch (tag) {
|
||||||
.bool_and, .bool_or => .keyword,
|
.bool_and, .bool_or, .@"orelse" => .keyword,
|
||||||
else => .operator,
|
else => .operator,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user