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));
|
try gap_highlighter.end(lastToken(tree, node));
|
||||||
},
|
},
|
||||||
.error_value => {
|
.error_value => {
|
||||||
try writeToken(builder, datas[node].lhs - 1, .keyword);
|
if (datas[node].lhs != 0) {
|
||||||
|
try writeToken(builder, datas[node].lhs - 1, .keyword);
|
||||||
|
}
|
||||||
try writeToken(builder, datas[node].rhs, .errorTag);
|
try writeToken(builder, datas[node].rhs, .errorTag);
|
||||||
},
|
},
|
||||||
.identifier => {
|
.identifier => {
|
||||||
|
Loading…
Reference in New Issue
Block a user