| Index: lib/src/prism/tests/languages/rest/quoted-literal-block_feature.test
|
| diff --git a/lib/src/prism/tests/languages/rest/quoted-literal-block_feature.test b/lib/src/prism/tests/languages/rest/quoted-literal-block_feature.test
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7dba1d1757ea64a7cf9072800478b858cc6c1892
|
| --- /dev/null
|
| +++ b/lib/src/prism/tests/languages/rest/quoted-literal-block_feature.test
|
| @@ -0,0 +1,333 @@
|
| +::
|
| +! Foo
|
| +!! Bar
|
| +! Baz
|
| +
|
| +Foobar ::
|
| +" Foo
|
| +" Bar
|
| +"" Baz
|
| +
|
| +::
|
| +# Foo
|
| +# Bar
|
| +
|
| +::
|
| +$ Foo
|
| +$ Bar
|
| +
|
| +::
|
| +% Foo
|
| +% Bar
|
| +
|
| +::
|
| +& Foo
|
| +& Bar
|
| +
|
| +::
|
| +' Foo
|
| +' Bar
|
| +
|
| +::
|
| +( Foo
|
| +( Bar
|
| +
|
| +::
|
| +) Foo
|
| +) Bar
|
| +
|
| +::
|
| +* Foo
|
| +* Bar
|
| +
|
| +::
|
| ++ Foo
|
| ++ Bar
|
| +
|
| +::
|
| +, Foo
|
| +, Bar
|
| +
|
| +::
|
| +- Foo
|
| +- Bar
|
| +
|
| +::
|
| +. Foo
|
| +. Bar
|
| +
|
| +::
|
| +/ Foo
|
| +/ Bar
|
| +
|
| +::
|
| +: Foo
|
| +: Bar
|
| +
|
| +::
|
| +; Foo
|
| +; Bar
|
| +
|
| +::
|
| +< Foo
|
| +< Bar
|
| +
|
| +::
|
| += Foo
|
| += Bar
|
| +
|
| +::
|
| +> Foo
|
| +> Bar
|
| +
|
| +::
|
| +? Foo
|
| +? Bar
|
| +
|
| +::
|
| +@ Foo
|
| +@ Bar
|
| +
|
| +::
|
| +[ Foo
|
| +[ Bar
|
| +
|
| +::
|
| +\ Foo
|
| +\ Bar
|
| +
|
| +::
|
| +] Foo
|
| +] Bar
|
| +
|
| +::
|
| +^ Foo
|
| +^ Bar
|
| +
|
| +::
|
| +_ Foo
|
| +_ Bar
|
| +
|
| +::
|
| +` Foo
|
| +` Bar
|
| +
|
| +::
|
| +{ Foo
|
| +{ Bar
|
| +
|
| +::
|
| +| Foo
|
| +| Bar
|
| +
|
| +::
|
| +} Foo
|
| +} Bar
|
| +
|
| +::
|
| +~ Foo
|
| +~ Bar
|
| +
|
| +
|
| +----------------------------------------------------
|
| +
|
| +[
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "!"], " Foo\r\n",
|
| + ["literal-block-punctuation", "!!"], " Bar\r\n",
|
| + ["literal-block-punctuation", "!"], " Baz"
|
| + ]],
|
| +
|
| + "\r\n\r\nFoobar ",
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "\""], " Foo\r\n",
|
| + ["literal-block-punctuation", "\""], " Bar\r\n",
|
| + ["literal-block-punctuation", "\"\""], " Baz"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "#"], " Foo\r\n",
|
| + ["literal-block-punctuation", "#"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "$"], " Foo\r\n",
|
| + ["literal-block-punctuation", "$"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "%"], " Foo\r\n",
|
| + ["literal-block-punctuation", "%"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "&"], " Foo\r\n",
|
| + ["literal-block-punctuation", "&"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "'"], " Foo\r\n",
|
| + ["literal-block-punctuation", "'"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "("], " Foo\r\n",
|
| + ["literal-block-punctuation", "("], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", ")"], " Foo\r\n",
|
| + ["literal-block-punctuation", ")"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "*"], " Foo\r\n",
|
| + ["literal-block-punctuation", "*"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "+"], " Foo\r\n",
|
| + ["literal-block-punctuation", "+"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", ","], " Foo\r\n",
|
| + ["literal-block-punctuation", ","], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "-"], " Foo\r\n",
|
| + ["literal-block-punctuation", "-"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "."], " Foo\r\n",
|
| + ["literal-block-punctuation", "."], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "/"], " Foo\r\n",
|
| + ["literal-block-punctuation", "/"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", ":"], " Foo\r\n",
|
| + ["literal-block-punctuation", ":"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", ";"], " Foo\r\n",
|
| + ["literal-block-punctuation", ";"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "<"], " Foo\r\n",
|
| + ["literal-block-punctuation", "<"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "="], " Foo\r\n",
|
| + ["literal-block-punctuation", "="], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", ">"], " Foo\r\n",
|
| + ["literal-block-punctuation", ">"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "?"], " Foo\r\n",
|
| + ["literal-block-punctuation", "?"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "@"], " Foo\r\n",
|
| + ["literal-block-punctuation", "@"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "["], " Foo\r\n",
|
| + ["literal-block-punctuation", "["], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "\\"], " Foo\r\n",
|
| + ["literal-block-punctuation", "\\"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "]"], " Foo\r\n",
|
| + ["literal-block-punctuation", "]"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "^"], " Foo\r\n",
|
| + ["literal-block-punctuation", "^"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "_"], " Foo\r\n",
|
| + ["literal-block-punctuation", "_"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "`"], " Foo\r\n",
|
| + ["literal-block-punctuation", "`"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "{"], " Foo\r\n",
|
| + ["literal-block-punctuation", "{"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "|"], " Foo\r\n",
|
| + ["literal-block-punctuation", "|"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "}"], " Foo\r\n",
|
| + ["literal-block-punctuation", "}"], " Bar"
|
| + ]],
|
| +
|
| + ["quoted-literal-block", [
|
| + ["literal-block-punctuation", "::"],
|
| + ["literal-block-punctuation", "~"], " Foo\r\n",
|
| + ["literal-block-punctuation", "~"], " Bar"
|
| + ]]
|
| +]
|
| +
|
| +----------------------------------------------------
|
| +
|
| +Checks for quoted literal blocks, with every possible character.
|
|
|