Support >2 and JSON-formatted options in parser tests.
authorC. Scott Ananian <cscott@cscott.net>
Wed, 19 Feb 2014 17:14:08 +0000 (07:14 -1000)
committerC. Scott Ananian <cscott@cscott.net>
Wed, 19 Feb 2014 17:50:47 +0000 (07:50 -1000)
commit312b0ca106287630479f2654721f9ad1f121c588
tree85485866d72f5e2083e7b347c4b22911e0a3c33e
parentf51b6015d84a9d67caa6b4a24b8420364ee49843
Support >2 and JSON-formatted options in parser tests.

The parserTests options handling had a regex capture bug which caused
it to discard all but the first and last option values.  Fix this (by
separating value splitting from key/value capture).

Add support for JSON-valued options, which parsoid would like to begin
using.  Add support for backslash escapes in quoted strings.

Change-Id: I69323bb44b7a481bad6f490d0773a984239c0b9c
tests/parser/parserTest.inc