diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-09-20 13:05:55 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-09-20 16:37:15 +0200 |
| commit | 757a701c1aa2a6fb80033c7e75666661818da6f9 (patch) | |
| tree | 0415fec94d3856f4ebc97a1744cf2ba75fe8e7aa /src/syntax/highlight.rs | |
| parent | e29f55bb294cc298daad97accf6d8a76976b409c (diff) | |
A New World
Diffstat (limited to 'src/syntax/highlight.rs')
| -rw-r--r-- | src/syntax/highlight.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/syntax/highlight.rs b/src/syntax/highlight.rs index 6470e4fb..7f5ee083 100644 --- a/src/syntax/highlight.rs +++ b/src/syntax/highlight.rs @@ -384,10 +384,10 @@ mod tests { use Category::*; #[track_caller] - fn test(src: &str, goal: &[(Range<usize>, Category)]) { + fn test(text: &str, goal: &[(Range<usize>, Category)]) { let mut vec = vec![]; - let source = Source::detached(src); - let full = 0 .. src.len(); + let source = Source::detached(text); + let full = 0 .. text.len(); highlight_node(source.root(), full, &mut |range, category| { vec.push((range, category)); }); |
