VSCode Theme Syntect
This is a simple library to parse a vscode theme to a syntect::highlighting::Theme.
I wrote this to use within my project quellcode, but other projects may find it useful.
Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
Usage
Parse from a string using parse_vscode_theme:
use Theme;
use parse_vscode_theme;
let theme = parse_vscode_theme.expect;
assert!;
Parse from a string using VscodeTheme::from_str:
use Theme;
use VscodeTheme;
use FromStr;
let theme = from_str.expect;
assert!;
Parse from a file using parse_vscode_theme_from_file
use Path;
use Theme;
use parse_vscode_theme_from_file;
let theme = parse_vscode_theme_from_file.expect;
assert!;
Contributing
Pull requests are welcome.
Some things that need to be done is add more unit tests.
If you do decide to contribute, it is recommended to follow the Conventional Commits specification when typing your commit messages.