Start work on handling unicode property escapes in regexes

This commit is contained in:
Max Brunsfeld 2021-01-29 16:37:45 -08:00
parent 38444ea7f9
commit e3ba701344
7 changed files with 246 additions and 10 deletions

View file

@ -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 {