You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

highlighting.rs 445B

12345678910111213141516
  1. use syntect::dumps::from_binary;
  2. use syntect::parsing::SyntaxSet;
  3. use syntect::highlighting::ThemeSet;
  4. thread_local!{
  5. pub static SYNTAX_SET: SyntaxSet = {
  6. let mut ss: SyntaxSet = from_binary(include_bytes!("../../../sublime_syntaxes/newlines.packdump"));
  7. ss.link_syntaxes();
  8. ss
  9. };
  10. }
  11. lazy_static!{
  12. pub static ref THEME_SET: ThemeSet = from_binary(include_bytes!("../../../sublime_themes/all.themedump"));
  13. }