summaryrefslogtreecommitdiffstats
path: root/examples/editor/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/editor/src')
-rw-r--r--examples/editor/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/editor/src/main.rs b/examples/editor/src/main.rs
index 71b1a719..9ffb4d1a 100644
--- a/examples/editor/src/main.rs
+++ b/examples/editor/src/main.rs
@@ -189,7 +189,7 @@ impl Editor {
.highlight::<Highlighter>(
highlighter::Settings {
theme: self.theme,
- extension: self
+ token: self
.file
.as_deref()
.and_then(Path::extension)