pub fn parse_vscode_theme(scheme: &str) -> Result<VscodeTheme, ParseError>Expand description
Parse a Visual Studio Code theme from a string.
Equivalent to calling VscodeTheme::from_str
ยงExample usage
use syntect::highlighting::Theme;
use vscode_theme_syntect::parse_vscode_theme;
let theme = parse_vscode_theme(include_str!("../assets/palenight.json")).expect("Failed to parse theme");
assert!(Theme::try_from(theme).is_ok());