about summary refs log tree commit diff
path: root/tools/cheddar/src
diff options
context:
space:
mode:
Diffstat (limited to 'tools/cheddar/src')
-rw-r--r--tools/cheddar/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/cheddar/src/main.rs b/tools/cheddar/src/main.rs
index 1d58bb2ad462..9cf85385705d 100644
--- a/tools/cheddar/src/main.rs
+++ b/tools/cheddar/src/main.rs
@@ -4,6 +4,7 @@ use std::io::BufRead;
 use std::io;
 use std::path::Path;
 use syntect::easy::HighlightLines;
+use syntect::dumps::from_binary;
 use syntect::highlighting::ThemeSet;
 use syntect::parsing::{SyntaxSet, SyntaxReference};
 
@@ -35,7 +36,7 @@ fn should_continue(res: &io::Result<usize>) -> bool {
 }
 
 fn main() {
-    let syntaxes = SyntaxSet::load_defaults_newlines();
+    let syntaxes = from_binary(include_bytes!(env!("BAT_SYNTAXES")));
 
     let stdin = io::stdin();
     let mut stdin = stdin.lock();