Enum syntect::parsing::ParseSyntaxError [−][src]
pub enum ParseSyntaxError { InvalidYaml(ScanError), EmptyFile, MissingMandatoryKey(&'static str), RegexCompileError(String, Box<dyn Error + Send + Sync + 'static>), InvalidScope(ParseScopeError), BadFileRef, MainMissing, TypeMismatch, }
Variants
Invalid YAML file syntax, or at least something yaml_rust can’t handle
Tuple Fields of InvalidYaml
0: ScanError
The file must contain at least one YAML document
Some keys are required for something to be a valid .sublime-syntax
Tuple Fields of MissingMandatoryKey
0: &'static str
Invalid regex
A scope that syntect’s scope implementation can’t handle
Tuple Fields of InvalidScope
A reference to another file that is invalid
Syntaxes must have a context named “main”
Some part of the YAML file is the wrong type (e.g a string but should be a list) Sorry this doesn’t give you any way to narrow down where this is. Maybe use Sublime Text to figure it out.
Trait Implementations
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
use the Display impl or to_string()
Performs the conversion.