aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-02-28 00:23:31 +0100
committerpml68 <contact@pml68.dev>2025-02-28 00:23:31 +0100
commit5a0cee3ff53a601caa89341901b142bc9de0f963 (patch)
tree74c1c312850376a8a43410b0785b98145663b16a /src/lib.rs
parentfeat: add `Stream` highlighter from upstream (diff)
downloadiced_custom_highlighter-5a0cee3ff53a601caa89341901b142bc9de0f963.tar.gz
feat: add extra syntaxes with `two-face`
Diffstat (limited to '')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 69cea60..5506d0e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;