From 942fa6636d34a70dcd3d1dfe91a81ea6893f481e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 15 Feb 2023 09:52:08 +0100 Subject: Fix raw block highlighting --- library/src/text/raw.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/src/text') diff --git a/library/src/text/raw.rs b/library/src/text/raw.rs index aa3a10d7..225c257d 100644 --- a/library/src/text/raw.rs +++ b/library/src/text/raw.rs @@ -281,7 +281,7 @@ fn to_syn(RgbaColor { r, g, b, a }: RgbaColor) -> synt::Color { /// The syntect syntax definitions. static SYNTAXES: Lazy = - Lazy::new(|| syntect::parsing::SyntaxSet::load_defaults_newlines()); + Lazy::new(|| syntect::parsing::SyntaxSet::load_defaults_nonewlines()); /// The default theme used for syntax highlighting. pub static THEME: Lazy = Lazy::new(|| synt::Theme { -- cgit v1.2.3