Implement basic syntax highlighting with syntect in editor example
This commit is contained in:
parent
76dc82e8e8
commit
d3011992a7
5 changed files with 211 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue