Support more syntaxes for highlighting with two-face
Co-authored-by: Redhawk18 <redhawk76767676@gmail.com>
This commit is contained in:
parent
aa8c0c3f4c
commit
f78fcebe30
4 changed files with 16 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue