Bernhard Reiter <[EMAIL PROTECTED]> writes:

> ATM, in the source view (eg in the preamble), the last character before
> a comment (ie percent sign) is greyed out as if part of the comment. The
> attached patch should fix this behavior.

Makes me wonder whether we need a regexp (and not of the most readable
kind) for such a mundane task.

Also, the code does not get the case
   \\%comment
right.

The algorithm could be

for each % sign in the string
  if (number of \ before the sign is even (incl 0)) 
    we have a comment
  else 
    continue

JMarc

Reply via email to