diff options
author | 2023-09-17 19:03:58 +0200 | |
---|---|---|
committer | 2023-09-17 19:04:23 +0200 | |
commit | d3011992a76e83e12f74402c2ade616cdc7f1497 (patch) | |
tree | 50547c123164ef3b28d1e59264ebe9435edd648c /core/src/text | |
parent | 76dc82e8e8b5201ec10f8d00d851c1decf998583 (diff) | |
download | iced-d3011992a76e83e12f74402c2ade616cdc7f1497.tar.gz iced-d3011992a76e83e12f74402c2ade616cdc7f1497.tar.bz2 iced-d3011992a76e83e12f74402c2ade616cdc7f1497.zip |
Implement basic syntax highlighting with `syntect` in `editor` example
Diffstat (limited to 'core/src/text')
-rw-r--r-- | core/src/text/highlighter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/text/highlighter.rs b/core/src/text/highlighter.rs index 1f9ac840..a929826f 100644 --- a/core/src/text/highlighter.rs +++ b/core/src/text/highlighter.rs @@ -3,7 +3,7 @@ use crate::Color; use std::hash::Hash; use std::ops::Range; -pub trait Highlighter: Clone + 'static { +pub trait Highlighter: 'static { type Settings: Hash; type Highlight; |