cleanup some highlighting

This commit is contained in:
JT 2021-07-30 16:43:31 +12:00
parent 184125a70a
commit 1caae90c02

View File

@ -655,13 +655,14 @@ impl<'a> ParserWorkingSet<'a> {
error,
);
}
let keyword_span = spans[*spans_idx - 1];
let (expr, err) = self.parse_multispan_value(spans, spans_idx, arg);
error = error.or(err);
let ty = expr.ty.clone();
(
Expression {
expr: Expr::Keyword(keyword.clone(), spans[*spans_idx - 1], Box::new(expr)),
expr: Expr::Keyword(keyword.clone(), keyword_span, Box::new(expr)),
span: arg_span,
ty,
},