Skip to content

Commit

Permalink
Fix issues with semantic tokens for ternary when.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGavin committed Oct 3, 2024
1 parent afe0c72 commit 2e20163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/semantic_tokens.odin
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ visit_node :: proc(node: ^ast.Node, builder: ^SemanticTokenBuilder) {
visit_node(n.y, builder)
}
case ^Ternary_When_Expr:
visit_node(n.cond, builder)
visit_node(n.x, builder)
visit_node(n.cond, builder)
visit_node(n.y, builder)
case ^Union_Type:
visit_nodes(n.variants, builder)
Expand Down

0 comments on commit 2e20163

Please sign in to comment.