From 30be75c6687f1e03cf867d258b3ddba353cc7aa2 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 19 Sep 2022 11:31:37 +0200 Subject: Renaming `Face` -> `Font` `FaceId` -> `FontId` `SourceFile` -> `Source` --- src/syntax/highlight.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/syntax') diff --git a/src/syntax/highlight.rs b/src/syntax/highlight.rs index ff02190a..6470e4fb 100644 --- a/src/syntax/highlight.rs +++ b/src/syntax/highlight.rs @@ -377,7 +377,7 @@ impl Category { #[cfg(test)] mod tests { use super::*; - use crate::source::SourceFile; + use crate::source::Source; #[test] fn test_highlighting() { @@ -386,7 +386,7 @@ mod tests { #[track_caller] fn test(src: &str, goal: &[(Range, Category)]) { let mut vec = vec![]; - let source = SourceFile::detached(src); + let source = Source::detached(src); let full = 0 .. src.len(); highlight_node(source.root(), full, &mut |range, category| { vec.push((range, category)); -- cgit v1.2.3