pub fn check(text: &str, limits: &Limits) -> Vec<Error>Expand description
Parses and validates text, and returns every error found, ordered by position.
An empty list means that Document::parse_with succeeds.
let errors = spritebox::check("palette p\n x #12345\n y #zzzzzz\n", &Default::default());
assert_eq!(errors.len(), 2);
assert_eq!(errors[0].position.unwrap().line, 2);