Merge pull request #557 from Techatrix/patch-1

Highlight orelse as a keyword
This commit is contained in:
Auguste Rame 2022-07-23 05:26:19 -04:00 committed by GitHub
commit 0f7d173ea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 });
const token_type: TokenType = switch (tag) {
.bool_and, .bool_or => .keyword,
.bool_and, .bool_or, .@"orelse" => .keyword,
else => .operator,
};