This repository has been archived by the owner on Feb 12, 2018. It is now read-only.
forked from trishume/syntect
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request trishume#5 from trishume/theme-dumps
Internal theme dumps
- Loading branch information
Showing
16 changed files
with
217 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
extern crate syntect; | ||
use syntect::package_set::PackageSet; | ||
use syntect::theme_set::ThemeSet; | ||
use syntect::dumps::*; | ||
|
||
fn main() { | ||
let mut ps = PackageSet::new(); | ||
ps.load_syntaxes("testdata/Packages", true).unwrap(); | ||
ps.dump_to_file("assets/default_newlines.packdump").unwrap(); | ||
dump_to_file(&ps, "assets/default_newlines.packdump").unwrap(); | ||
|
||
let mut ps2 = PackageSet::new(); | ||
ps2.load_syntaxes("testdata/Packages", false).unwrap(); | ||
ps2.dump_to_file("assets/default_nonewlines.packdump").unwrap(); | ||
dump_to_file(&ps2, "assets/default_nonewlines.packdump").unwrap(); | ||
|
||
let ts = ThemeSet::load_from_folder("testdata").unwrap(); | ||
dump_to_file(&ts, "assets/default.themedump").unwrap(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.