improve the syntect patch
Sylvestre Ledru
1 year, 10 months ago
212 | 212 | |
213 | 213 | #[test] |
214 | 214 | fn can_parse_yaml() { |
215 | @@ -884,7 +884,7 @@ mod tests { | |
216 | assert_eq!(ops(&mut state, "struct{estruct", &ss).len(), 10); | |
217 | } | |
218 | ||
219 | - #[test] | |
220 | + /*#[test] | |
221 | fn can_compare_parse_states() { | |
222 | let ss = SyntaxSet::load_from_folder("testdata/Packages").unwrap(); | |
223 | let syntax = ss.find_syntax_by_name("Java").unwrap(); | |
215 | 224 | @@ -897,9 +897,9 @@ mod tests { |
216 | 225 | assert_eq!(state1, state2); |
217 | 226 | ops(&mut state1, "}", &ss); |
310 | 319 | =================================================================== |
311 | 320 | --- syntect.orig/src/highlighting/theme_set.rs |
312 | 321 | +++ syntect/src/highlighting/theme_set.rs |
313 | @@ -74,7 +74,7 @@ impl ThemeSet { | |
322 | @@ -73,7 +73,7 @@ impl ThemeSet { | |
323 | #[cfg(test)] | |
314 | 324 | mod tests { |
315 | 325 | use crate::highlighting::{ThemeSet, Color}; |
316 | #[cfg(feature = "plist-load")] | |
317 | - #[test] | |
318 | + /*#[test] | |
326 | - #[cfg(feature = "plist-load")] | |
327 | + /*#[cfg(feature = "plist-load")] | |
328 | #[test] | |
319 | 329 | fn can_parse_common_themes() { |
320 | 330 | let themes = ThemeSet::load_from_folder("testdata").unwrap(); |
321 | let all_themes: Vec<&str> = themes.themes.keys().map(|x| &**x).collect(); | |
322 | 331 | @@ -99,5 +99,5 @@ mod tests { |
323 | 332 | a: 0xFF, |
324 | 333 | }); |