Highlight block and record (#653)

This commit is contained in:
JT
2022-01-03 16:21:26 +11:00
committed by GitHub
parent 9535e2c309
commit fe5f65a247
4 changed files with 114 additions and 7 deletions

View File

@ -142,6 +142,20 @@ impl Highlighter for NuHighlighter {
next_token,
))
}
FlatShape::Record => {
// nushell ???
output.push((
get_shape_color(shape.1.to_string(), &self.config),
next_token,
))
}
FlatShape::Block => {
// 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),