diff options
| author | figsoda <figsoda@pm.me> | 2023-06-20 12:11:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-20 18:11:20 +0200 |
| commit | c0c03812d08bc833b8a2477c594d762f43a0c95b (patch) | |
| tree | 7ecf451953b39779b2580dfcb7b2e8def108ff47 /library/src/text/raw.rs | |
| parent | 57d4b8b75175c2fb169ab24ae683f580bcd42c99 (diff) | |
Move assets/data to library/assets (#1515)
So these assets lives inside the typst-library crate and doesn't break `cargo vendor`
Diffstat (limited to 'library/src/text/raw.rs')
| -rw-r--r-- | library/src/text/raw.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/library/src/text/raw.rs b/library/src/text/raw.rs index 747a75d1..1cb3cab1 100644 --- a/library/src/text/raw.rs +++ b/library/src/text/raw.rs @@ -343,9 +343,8 @@ fn to_syn(RgbaColor { r, g, b, a }: RgbaColor) -> synt::Color { /// syntaxes/02_Extra/VimHelp.sublime-syntax /// syntaxes/02_Extra/cmd-help/syntaxes/cmd-help.sublime-syntax /// ``` -static SYNTAXES: Lazy<syntect::parsing::SyntaxSet> = Lazy::new(|| { - syntect::dumps::from_binary(include_bytes!("../../../assets/data/syntect.bin")) -}); +static SYNTAXES: Lazy<syntect::parsing::SyntaxSet> = + Lazy::new(|| syntect::dumps::from_binary(include_bytes!("../../assets/syntect.bin"))); /// The default theme used for syntax highlighting. pub static THEME: Lazy<synt::Theme> = Lazy::new(|| synt::Theme { |
