Stewart Gordon wrote:
<snip>
TextPad's syntax highlighting engine manages 2/3 of this without any regexps (or anything to that effect). That said, I've just found that it can do a little bit of what remains: I can make it do `...` but not r"..." at the expense of distinguishing string and character literals.
<snip>

For the record, what I'd done is

StringStart = "
StringEnd = "
StringAlt = '
StringEsc = \
CharStart = `
CharEnd = `
CharEsc =

however, I've just found a bigger problem: only string literals, not char literals, can span lines in TP.

Stewart.

Reply via email to