Handle more escaped characters in regexps

This commit is contained in:
Max Brunsfeld 2014-08-03 21:57:21 -07:00
parent 4720672cfb
commit 01571da30d
2 changed files with 16 additions and 0 deletions

View file

@ -126,6 +126,16 @@ describe("parsing regex patterns", []() {
})
},
{
"escaped characters",
"\\t\\n\\r",
seq({
character({ '\t' }),
character({ '\n' }),
character({ '\r' }),
})
},
{
"plus repeats",
"(ab)+(cd)+",