mirror of
https://github.com/nushell/nushell
synced 2025-01-14 06:04:09 +00:00
Fix syntax hightlight when using Circumflex-Operator (#3613)
This commit is contained in:
parent
721f704260
commit
774be79321
1 changed files with 4 additions and 1 deletions
|
@ -1754,9 +1754,12 @@ fn parse_call(
|
|||
if lite_cmd.parts.is_empty() {
|
||||
return (None, None);
|
||||
} else if lite_cmd.parts[0].item.starts_with('^') {
|
||||
let name = lite_cmd.parts[0]
|
||||
let mut name = lite_cmd.parts[0]
|
||||
.clone()
|
||||
.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
|
||||
// to share this functionality.
|
||||
let mut args = vec![];
|
||||
|
|
Loading…
Reference in a new issue