From e5ada4753a889a592d8103fa795234083c5765ce Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 5 Jul 2013 23:02:27 -0400 Subject: [PATCH] Adding a test for triple backslashes. --- tests/tokenizer/tags.mwtest | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/tokenizer/tags.mwtest b/tests/tokenizer/tags.mwtest index 37ee50a..b534fd2 100644 --- a/tests/tokenizer/tags.mwtest +++ b/tests/tokenizer/tags.mwtest @@ -418,6 +418,13 @@ output: [TagOpenOpen(showtag=True), Text(text="foo"), TagAttrStart(pad_first=" " --- +name: backslash_triple +label: three adjacent backslashes, which do *not* affect the quote +input: "blah" +output: [TagOpenOpen(showtag=True), Text(text="foo"), TagAttrStart(pad_first=" ", pad_before_eq="", pad_after_eq=""), Text(text="attribute"), TagAttrEquals(), TagAttrQuote(), Text(text="this is\\\\\\"), TagAttrStart(pad_first=" ", pad_before_eq="", pad_after_eq=""), Text(text="quoted\""), TagCloseOpen(padding=""), Text(text="blah"), TagOpenClose(), Text(text="foo"), TagCloseClose()] + +--- + name: backslash_unaffecting label: backslashes near quotes, but not immediately adjacent, thus having no effect input: "blah"