Implement basic syntax highlighting with syntect in editor example

This commit is contained in:
Héctor Ramón Jiménez 2023-09-17 19:03:58 +02:00
parent 76dc82e8e8
commit d3011992a7
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 211 additions and 6 deletions

View file

@ -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;