mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 00:48:59 +02:00
Add support for positive integer ranges
Including support for variables and subexpressions as range bounds.
This commit is contained in:
@ -57,6 +57,10 @@ impl Highlighter for NuHighlighter {
|
||||
FlatShape::Float => {
|
||||
output.push((Style::new().fg(nu_ansi_term::Color::Green), next_token))
|
||||
}
|
||||
FlatShape::Range => output.push((
|
||||
Style::new().fg(nu_ansi_term::Color::LightPurple),
|
||||
next_token,
|
||||
)),
|
||||
FlatShape::Bool => {
|
||||
output.push((Style::new().fg(nu_ansi_term::Color::LightCyan), next_token))
|
||||
}
|
||||
|
Reference in New Issue
Block a user