forked from extern/nushell
color escaped external command.
This commit is contained in:
parent
29ec9a436a
commit
16751b5dee
@ -985,8 +985,8 @@ impl FallibleColorSyntax for CommandHeadShape {
|
|||||||
|
|
||||||
match atom.item {
|
match atom.item {
|
||||||
// If the head is an explicit external command (^cmd), color it as an external command
|
// If the head is an explicit external command (^cmd), color it as an external command
|
||||||
AtomicToken::ExternalCommand { command } => {
|
AtomicToken::ExternalCommand { .. } => {
|
||||||
token_nodes.color_shape(FlatShape::ExternalCommand.spanned(command));
|
token_nodes.color_shape(FlatShape::ExternalCommand.spanned(atom.span));
|
||||||
Ok(CommandHeadKind::External)
|
Ok(CommandHeadKind::External)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user