mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Fix list spread syntax highlighting (#12793)
# Description I broke syntax highlighting for list spreads in #12529. This should fix #12792 😅. I just copied the code for highlighting record spreads.
This commit is contained in:
@ -3895,7 +3895,7 @@ pub fn parse_list_expression(
|
||||
Type::List(elem_ty) => *elem_ty.clone(),
|
||||
_ => Type::Any,
|
||||
};
|
||||
let span = Span::new(curr_span.start, spread_arg.span.end);
|
||||
let span = Span::new(curr_span.start, curr_span.start + 3);
|
||||
(ListItem::Spread(span, spread_arg), elem_ty)
|
||||
} else {
|
||||
let arg = parse_multispan_value(
|
||||
|
Reference in New Issue
Block a user