Enum syntect::parsing::ParseSyntaxError [] [src]

pub enum ParseSyntaxError {
    InvalidYaml(ScanError),
    EmptyFile,
    MissingMandatoryKey(&'static str),
    RegexCompileError(Error),
    InvalidScope(ParseScopeError),
    BadFileRef,
    MainMissing,
    TypeMismatch,
}

Variants

Invalid YAML file syntax, or at least something yaml_rust can't handle

The file must contain at least on YAML document

Some keys are required for something to be a valid .sublime-syntax

Invalid regex

A scope that syntect's scope implementation can't handle

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

impl Debug for ParseSyntaxError
[src]

Formats the value using the given formatter.