]> gitweb.factorcode.org Git - factor.git/commit
peg.javascript.tokenizer: allow escaped quotes in strings
authorcatb0t <thebinaryminer@gmail.com>
Sat, 11 Jun 2016 21:36:14 +0000 (17:36 -0400)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 11 Jun 2016 22:17:50 +0000 (15:17 -0700)
commit385cf35e7fb347aa91351a358650c8e9fe15c760
tree7bb6d9d641c633b2b4fb84a46093708ea378a4cd
parent6984bae7ca3dbb963a9c77dd5e63eb40ebf4953b
peg.javascript.tokenizer: allow escaped quotes in strings

Previously, the tokenizer didn't understand
escaped quotes in string literals. Also added was
a test to ensure the escaping works.
extra/peg/javascript/tokenizer/tokenizer-tests.factor
extra/peg/javascript/tokenizer/tokenizer.factor