Support more syntaxes for highlighting with two-face

Co-authored-by: Redhawk18 <redhawk76767676@gmail.com>
This commit is contained in:
Héctor Ramón Jiménez 2025-12-03 19:29:31 +01:00
parent aa8c0c3f4c
commit f78fcebe30
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
4 changed files with 16 additions and 4 deletions

View file

@ -10,9 +10,10 @@ use std::sync::LazyLock;
use syntect::highlighting;
use syntect::parsing;
use two_face::re_exports::syntect;
static SYNTAXES: LazyLock<parsing::SyntaxSet> =
LazyLock::new(parsing::SyntaxSet::load_defaults_nonewlines);
LazyLock::new(two_face::syntax::extra_no_newlines);
static THEMES: LazyLock<highlighting::ThemeSet> =
LazyLock::new(highlighting::ThemeSet::load_defaults);