Color escaped externals.

This commit is contained in:
Andrés N. Robalino 2019-10-14 13:46:37 -05:00
parent 7d4fec4db3
commit 43cf52275b

View file

@ -726,8 +726,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 } => {
shapes.push(FlatShape::ExternalCommand.spanned(command));
AtomicToken::ExternalCommand { .. } => {
shapes.push(FlatShape::ExternalCommand.spanned(atom.span));
Ok(CommandHeadKind::External)
}