Remove two-face (it can be added by user of library)
This commit is contained in:
parent
d001e5c09e
commit
b3c5f14e47
2 changed files with 0 additions and 13 deletions
|
|
@ -21,7 +21,6 @@ self_cell = "1.0.1"
|
||||||
swash = { version = "0.1.8", optional = true }
|
swash = { version = "0.1.8", optional = true }
|
||||||
syntect = { version = "5.1.0", optional = true }
|
syntect = { version = "5.1.0", optional = true }
|
||||||
sys-locale = { version = "0.3.1", optional = true }
|
sys-locale = { version = "0.3.1", optional = true }
|
||||||
two-face = { version = "0.3.0", optional = true }
|
|
||||||
unicode-linebreak = "0.1.5"
|
unicode-linebreak = "0.1.5"
|
||||||
unicode-script = "0.5.5"
|
unicode-script = "0.5.5"
|
||||||
unicode-segmentation = "1.10.1"
|
unicode-segmentation = "1.10.1"
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ pub struct SyntaxSystem {
|
||||||
|
|
||||||
impl SyntaxSystem {
|
impl SyntaxSystem {
|
||||||
/// Create a new [`SyntaxSystem`]
|
/// Create a new [`SyntaxSystem`]
|
||||||
#[cfg(not(feature = "two-face"))]
|
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
//TODO: store newlines in buffer
|
//TODO: store newlines in buffer
|
||||||
|
|
@ -30,17 +29,6 @@ impl SyntaxSystem {
|
||||||
theme_set: ThemeSet::load_defaults(),
|
theme_set: ThemeSet::load_defaults(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create a new [`SyntaxSystem`] using `[two-face]` definitions
|
|
||||||
#[cfg(feature = "two-face")]
|
|
||||||
pub fn new() -> Self {
|
|
||||||
Self {
|
|
||||||
//TODO: store newlines in buffer
|
|
||||||
syntax_set: two_face::syntax::extra_no_newlines(),
|
|
||||||
//TODO: use two-face themes
|
|
||||||
theme_set: ThemeSet::load_defaults(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A wrapper of [`Editor`] with syntax highlighting provided by [`SyntaxSystem`]
|
/// A wrapper of [`Editor`] with syntax highlighting provided by [`SyntaxSystem`]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue