Fixed crash while typing error.
This commit is contained in:
parent
2fd8ab7626
commit
9eece0985b
@ -523,7 +523,9 @@ fn writeNodeTokens(
|
||||
try gap_highlighter.end(lastToken(tree, node));
|
||||
},
|
||||
.error_value => {
|
||||
if (datas[node].lhs != 0) {
|
||||
try writeToken(builder, datas[node].lhs - 1, .keyword);
|
||||
}
|
||||
try writeToken(builder, datas[node].rhs, .errorTag);
|
||||
},
|
||||
.identifier => {
|
||||
|
Loading…
Reference in New Issue
Block a user