Merge pull request #866 from andrasio/color-external

color escaped external command.
This commit is contained in:
Andrés N. Robalino 2019-10-22 20:16:03 -05:00 committed by GitHub
commit 07b90f4b4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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