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
InvalidYaml(ScanError)
Tuple Fields
0: ScanError
Invalid YAML file syntax, or at least something yaml_rust can’t handle
EmptyFile
The file must contain at least one YAML document
MissingMandatoryKey(&'static str)
Tuple Fields
0: &'static str
Some keys are required for something to be a valid .sublime-syntax
RegexCompileError(String, Box<dyn Error + Send + Sync + 'static>)
Invalid regex
InvalidScope(ParseScopeError)
Tuple Fields
A scope that syntect’s scope implementation can’t handle
BadFileRef
A reference to another file that is invalid
MainMissing
Syntaxes must have a context named “main”
TypeMismatch
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.