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.

lib.rs 506B

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