color escaped external command.

This commit is contained in:
Andrés N. Robalino 2019-10-22 19:29:39 -05:00
parent 29ec9a436a
commit 16751b5dee

View File

@ -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)
} }