Browse Source

Add \0 escape sequence

master
darkf 4 years ago
parent
commit
55f393b4f1
  1. 1
      Parser.hs

1
Parser.hs

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

Loading…
Cancel
Save