Closed GoogleCodeExporter closed 9 years ago
The relevant portion of the grammar seems to be
verbatim-string-literal:
@" verbatim -string-literal-charactersopt "
verbatim-string-literal-characters:
verbatim-string-literal-character
verbatim-string-literal-characters verbatim-string-literal-character
verbatim-string-literal-character:
single-verbatim-string-literal-character
quote-escape-sequence
single-verbatim-string-literal-character:
any character except "
quote-escape-sequence:
""
So verbatim string literals can contain embedded newlines, cannot start with
single
quotes, and end at the first double quote not followed by a double quote.
Either
/^"(?:[^"]|"")*(?:"|$)/
or
/^"[\s\S]*?(?:"(?!")|$)/
Original comment by mikesamuel@gmail.com
on 2 Oct 2009 at 5:45
Thank you for taking on the issue and so quickly.
Original comment by Michael....@gmail.com
on 2 Oct 2009 at 5:49
Fixed at revision 83
http://google-code-prettify.googlecode.com/svn/trunk/tests/prettify_test.html#is
sue93
Original comment by mikesamuel@gmail.com
on 3 Oct 2009 at 8:50
Original issue reported on code.google.com by
Michael....@gmail.com
on 29 Sep 2009 at 5:14