|
From: George H. <gh...@gm...> - 2011-05-16 15:57:48
|
I've encountered an unusual form of string which I would like to color, if
possible. The string is delimited with double quotes ("). There is at most
one such string per line, and if present is fully contained on one line.
The special feature is that the string itself may also contain zero or more
occurrences of double quote, and these are not distinguished or 'escaped' in
any way. For example, in
X"The "string" contains a ", ie a quote."Y
the string is
The "string"contains a ", ie a quote.
To state it slightly differently, the string is delimited by the first and
last double quote on the line. It would be nice to color the two
delimiting quotes and the interior of the string with different tokens, but
coloring the whole is OK too.
Any ideas?
Thanks for reading this,
George
|