diff options
Diffstat (limited to '')
| -rw-r--r-- | Cargo.lock | 12 | ||||
| -rw-r--r-- | Cargo.toml | 3 | ||||
| -rw-r--r-- | src/lib.rs | 2 |
3 files changed, 15 insertions, 2 deletions
@@ -138,6 +138,7 @@ version = "0.1.0" dependencies = [ "iced_core", "syntect", + "two-face", ] [[package]] @@ -466,6 +467,17 @@ dependencies = [ ] [[package]] +name = "two-face" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384eda438ddf62e2c6f39a174452d952d9d9df5a8ad5ade22198609f8dcaf852" +dependencies = [ + "once_cell", + "serde", + "syntect", +] + +[[package]] name = "unicode-ident" version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -11,7 +11,8 @@ keywords = ["gui", "ui", "graphics", "interface", "widgets"] rust-version = "1.80" [dependencies] -syntect = { version = "5.2", default-features = false, features = ["default-syntaxes", "regex-onig"] } +syntect = { version = "5.2", default-features = false, features = ["regex-onig"] } +two-face = "0.4.3" [dependencies.iced_core] git = "https://github.com/pml68/iced" @@ -65,7 +65,7 @@ use syntect::highlighting; use syntect::parsing; static SYNTAXES: LazyLock<parsing::SyntaxSet> = - LazyLock::new(parsing::SyntaxSet::load_defaults_nonewlines); + LazyLock::new(two_face::syntax::extra_no_newlines); const LINES_PER_SNAPSHOT: usize = 50; |
