mirror of
https://github.com/nushell/nushell.git
synced 2024-12-27 17:39:15 +01:00
Merge pull request #866 from andrasio/color-external
color escaped external command.
This commit is contained in:
commit
07b90f4b4b
@ -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 New Issue
Block a user