Fix list and table print (#652)

* Fix list printing

* Fix list and table highlighting
This commit is contained in:
JT
2022-01-03 14:18:23 +11:00
committed by GitHub
parent 850f66aa9d
commit 9535e2c309
4 changed files with 109 additions and 10 deletions

View File

@ -128,6 +128,20 @@ impl Highlighter for NuHighlighter {
next_token,
))
}
FlatShape::List => {
// nushell ???
output.push((
get_shape_color(shape.1.to_string(), &self.config),
next_token,
))
}
FlatShape::Table => {
// nushell ???
output.push((
get_shape_color(shape.1.to_string(), &self.config),
next_token,
))
}
FlatShape::Filepath => output.push((
// nushell Path
get_shape_color(shape.1.to_string(), &self.config),