mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
color escaped external command.
This commit is contained in:
parent
29ec9a436a
commit
16751b5dee
1 changed files with 2 additions and 2 deletions
|
@ -985,8 +985,8 @@ impl FallibleColorSyntax for CommandHeadShape {
|
|||
|
||||
match atom.item {
|
||||
// If the head is an explicit external command (^cmd), color it as an external command
|
||||
AtomicToken::ExternalCommand { command } => {
|
||||
token_nodes.color_shape(FlatShape::ExternalCommand.spanned(command));
|
||||
AtomicToken::ExternalCommand { .. } => {
|
||||
token_nodes.color_shape(FlatShape::ExternalCommand.spanned(atom.span));
|
||||
Ok(CommandHeadKind::External)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue