summaryrefslogtreecommitdiff
path: root/src/syntax/highlight.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax/highlight.rs')
-rw-r--r--src/syntax/highlight.rs6
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));
});