Add \0 escape sequence

This commit is contained in:
darkf 2017-06-01 21:30:58 +00:00
parent 904716b94f
commit 55f393b4f1
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ escChar :: Char
/ 'n' { '\n' } / 'n' { '\n' }
/ 'r' { '\r' } / 'r' { '\r' }
/ 't' { '\t' } / 't' { '\t' }
/ '0' { '\0' }
identifier ::: T.Text identifier ::: T.Text
= [a-zA-Z_] [a-zA-Z0-9_'?!]* { T.pack ($1 : $2) } = [a-zA-Z_] [a-zA-Z0-9_'?!]* { T.pack ($1 : $2) }