Bug in new D string literals

Issue #293 resolved
Former user created an issue

The D lexer's highlighting of non-nesting delimited strings is broken. This regex, on line 286 of lexers/compiled.py:

{{{ r'q"(.)[^\1]*\1"' }}}

Should look like this:

{{{ r'q"(.).*?\1"' }}}

That is, it should not be greedy, and it should use a dot instead of that weird [!^\1] construct.

-Kirk !McDonald

Reported by guest

Comments (4)

  1. Log in to comment