summaryrefslogtreecommitdiff
path: root/src/syntax/highlight.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-09-19 11:31:37 +0200
committerLaurenz <laurmaedje@gmail.com>2022-09-19 11:36:59 +0200
commit30be75c6687f1e03cf867d258b3ddba353cc7aa2 (patch)
tree51afd42ae8875811ae51974e66681a17990de7f2 /src/syntax/highlight.rs
parent4ec3bcee487c1567bc6551f81d4f69eee4379076 (diff)
Renaming
`Face` -> `Font` `FaceId` -> `FontId` `SourceFile` -> `Source`
Diffstat (limited to 'src/syntax/highlight.rs')
-rw-r--r--src/syntax/highlight.rs4
1 files changed, 2 insertions, 2 deletions
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<usize>, 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));