{
    "tests": [
        {
            "description": "FOO<!-- BAR -->BAZ",
            "input": "FOO<!-- BAR -->BAZ",
            "output": [
                [
                    "Character",
                    "FOO"
                ],
                [
                    "Comment",
                    " BAR "
                ],
                [
                    "Character",
                    "BAZ"
                ]
            ]
        },
        {
            "description": "FOO<!-- BAR --!>BAZ",
            "input": "FOO<!-- BAR --!>BAZ",
            "output": [
                [
                    "Character",
                    "FOO"
                ],
                [
                    "Comment",
                    " BAR "
                ],
                [
                    "Character",
                    "BAZ"
                ]
            ]
        },
        {
            "description": "FOO<!-- BAR --   >BAZ",
            "input": "FOO<!-- BAR --   >BAZ",
            "output": [
                [
                    "Character",
                    "FOO"
                ],
                [
                    "Comment",
                    " BAR --   >BAZ"
                ]
            ]
        },
        {
            "description": "FOO<!-- BAR -- <QUX> -- MUX -->BAZ",
            "input": "FOO<!-- BAR -- <QUX> -- MUX -->BAZ",
            "output": [
                [
                    "Character",
                    "FOO"
                ],
                [
                    "Comment",
                    " BAR -- <QUX> -- MUX "
                ],
                [
                    "Character",
                    "BAZ"
                ]
            ]
        },
        {
            "description": "FOO<!-- BAR -- <QUX> -- MUX --!>BAZ",
            "input": "FOO<!-- BAR -- <QUX> -- MUX --!>BAZ",
            "output": [
                [
                    "Character",
                    "FOO"
                ],
                [
                    "Comment",
                    " BAR -- <QUX> -- MUX "
                ],
                [
                    "Character",
                    "BAZ"
                ]
            ]
        },
        {
            "description": "FOO<!-- BAR -- <QUX> -- MUX -- >BAZ",
            "input": "FOO<!-- BAR -- <QUX> -- MUX -- >BAZ",
            "output": [
                [
                    "Character",
                    "FOO"
                ],
                [
                    "Comment",
                    " BAR -- <QUX> -- MUX -- >BAZ"
                ]
            ]
        },
        {
            "description": "FOO<!---->BAZ",
            "input": "FOO<!---->BAZ",
            "output": [
                [
                    "Character",
                    "FOO"
                ],
                [
                    "Comment",
                    ""
                ],
                [
                    "Character",
                    "BAZ"
                ]
            ]
        },
        {
            "description": "FOO<!--->BAZ",
            "input": "FOO<!--->BAZ",
            "output": [
                [
                    "Character",
                    "FOO"
                ],
                [
                    "Comment",
                    ""
                ],
                [
                    "Character",
                    "BAZ"
                ]
            ]
        },
        {
            "description": "FOO<!-->BAZ",
            "input": "FOO<!-->BAZ",
            "output": [
                [
                    "Character",
                    "FOO"
                ],
                [
                    "Comment",
                    ""
                ],
                [
                    "Character",
                    "BAZ"
                ]
            ]
        },
        {
            "description": "<?xml version=\"1.0\">Hi",
            "input": "<?xml version=\"1.0\">Hi",
            "output": [
                [
                    "Comment",
                    "?xml version=\"1.0\""
                ],
                [
                    "Character",
                    "Hi"
                ]
            ]
        },
        {
            "description": "<?xml version=\"1.0\">",
            "input": "<?xml version=\"1.0\">",
            "output": [
                [
                    "Comment",
                    "?xml version=\"1.0\""
                ]
            ]
        },
        {
            "description": "<?xml version",
            "input": "<?xml version",
            "output": [
                [
                    "Comment",
                    "?xml version"
                ]
            ]
        },
        {
            "description": "FOO<!----->BAZ",
            "input": "FOO<!----->BAZ",
            "output": [
                [
                    "Character",
                    "FOO"
                ],
                [
                    "Comment",
                    "-"
                ],
                [
                    "Character",
                    "BAZ"
                ]
            ]
        },
        {
            "description": "<html><!-- comment --><title>Comment before head</title>",
            "input": "<html><!-- comment --><title>Comment before head</title>",
            "output": [
                [
                    "StartTag",
                    "html",
                    {}
                ],
                [
                    "Comment",
                    " comment "
                ],
                [
                    "StartTag",
                    "title",
                    {}
                ],
                [
                    "Character",
                    "Comment before head"
                ],
                [
                    "EndTag",
                    "title"
                ]
            ]
        }
    ]
}