mirror of
https://github.com/nushell/nushell.git
synced 2025-06-25 04:11:25 +02:00
Fix syntax hightlight when using Circumflex-Operator (#3613)
This commit is contained in:
parent
721f704260
commit
774be79321
@ -1754,9 +1754,12 @@ fn parse_call(
|
|||||||
if lite_cmd.parts.is_empty() {
|
if lite_cmd.parts.is_empty() {
|
||||||
return (None, None);
|
return (None, None);
|
||||||
} else if lite_cmd.parts[0].item.starts_with('^') {
|
} else if lite_cmd.parts[0].item.starts_with('^') {
|
||||||
let name = lite_cmd.parts[0]
|
let mut name = lite_cmd.parts[0]
|
||||||
.clone()
|
.clone()
|
||||||
.map(|v| v.chars().skip(1).collect::<String>());
|
.map(|v| v.chars().skip(1).collect::<String>());
|
||||||
|
|
||||||
|
name.span = Span::new(name.span.start() + 1, name.span.end());
|
||||||
|
|
||||||
// TODO this is the same as the `else` branch below, only the name differs. Find a way
|
// TODO this is the same as the `else` branch below, only the name differs. Find a way
|
||||||
// to share this functionality.
|
// to share this functionality.
|
||||||
let mut args = vec![];
|
let mut args = vec![];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user