diff --git a/src/parse.rs b/src/parse.rs index 8fd3a76..118bb05 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -11,7 +11,7 @@ use unicode::regex::{PERLD, PERLS, PERLW}; pub type Result = result::Result; #[derive(Debug)] -enum ParseError { +pub enum ParseError { ClassInvalid(char), ClassMustClose, ClassSetMustClose, @@ -447,7 +447,7 @@ impl Parser { }; } } - + Err(ParseError::EllipsisNotLast) } // Return the next character which follows a `\`.