Odd number of apostrophes inside comments cause "Unclosed string in template" exception

Here's an example:

> Twig.exports.twig({ data: "{# Don't blink. #}&lt;span>Hi&lt;/span>" })
> "Unclosed string in template"

Even more troubling, comments can gobble up template content between them:

> Twig.exports.twig({ data: "{# Don't blink. #}&lt;span>Hi&lt;/span>{# Don't blink. #}" }).render()
> ""