Merge pull request #1093 from jonathandturner/fix_asset

Try to fix asset building
This commit is contained in:
Jonathan Turner 2019-12-17 10:28:15 -08:00 committed by GitHub
commit f52235b1c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@ -254,14 +254,12 @@ fn view_text_value(value: &Value) {
match extension { match extension {
Some(extension) => { Some(extension) => {
// Load these once at the start of your program // Load these once at the start of your program
let ps: SyntaxSet = syntect::dumps::from_binary(include_bytes!( let ps: SyntaxSet =
"../../../assets/syntaxes.bin" syntect::dumps::from_binary(include_bytes!("assets/syntaxes.bin"));
));
if let Some(syntax) = ps.find_syntax_by_extension(&extension) { if let Some(syntax) = ps.find_syntax_by_extension(&extension) {
let ts: ThemeSet = syntect::dumps::from_binary(include_bytes!( let ts: ThemeSet =
"../../../assets/themes.bin" syntect::dumps::from_binary(include_bytes!("assets/themes.bin"));
));
let mut h = HighlightLines::new(syntax, &ts.themes["OneHalfDark"]); let mut h = HighlightLines::new(syntax, &ts.themes["OneHalfDark"]);
let mut v = vec![]; let mut v = vec![];