Adapt tk's work for a source command

This commit is contained in:
JT
2021-10-06 15:29:05 +13:00
parent d481d5ca96
commit 7eb022b58c
4 changed files with 18 additions and 101 deletions

View File

@ -34,9 +34,6 @@ impl Highlighter for NuHighlighter {
.to_string();
output.push((Style::new(), gap));
}
// println!("line: \n{}", line);
// println!("shape: \n{:#?}\n", shape);
// println!("global_span_offset: \n{:#?}\n", global_span_offset);
let next_token = line
[(shape.0.start - global_span_offset)..(shape.0.end - global_span_offset)]
.to_string();