Start work on handling unicode property escapes in regexes
This commit is contained in:
parent
38444ea7f9
commit
e3ba701344
7 changed files with 246 additions and 10 deletions
|
|
@ -13,8 +13,9 @@ impl Error {
|
|||
Error(vec![format!("Grammar error: {}", message)])
|
||||
}
|
||||
|
||||
pub fn regex(message: &str) -> Self {
|
||||
Error(vec![format!("Regex error: {}", message)])
|
||||
pub fn regex(mut message: String) -> Self {
|
||||
message.insert_str(0, "Regex error: ");
|
||||
Error(vec![message])
|
||||
}
|
||||
|
||||
pub fn undefined_symbol(name: &str) -> Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue