@Test
public void testNestableBlockComment_withQuotedPattern() {

  Parser<Void> scanner = Scanners.nestableBlockComment("<!--", "-->", Patterns.ANY_CHAR);
  assertNull(scanner.parse("<!-- not nested -->"));
  assertNull(scanner.parse("<!-- this is <!--nested--> -->"));
  assertFailure(mode, scanner, "", 1, 1);
  assertFailure(mode, scanner, "<!--", 1, 5);
  assertFailure(mode, scanner, "<!-- <!---->", 1, 13);
  assertFailure(mode, scanner, "<!-- <!---->-", 1, 14);
}