Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.
Version 4 (modified by KirkMcDonald, 17 years ago)
--

There is at least one bug in the Pygments-based D parser. It seems to be related to escaped backslashes in string literals denoted with double quote marks.

const char[] quoteReg = "\'";
const char[] backslashReg = "\\";
const char[] quoteReg2 = "\'";

void main()
{
    printf("Hello, World!");  
}

Here are some more examples:

I might need to create a new ticket or add a comment to dsource ticket #8 to notify someone who would be able to fix this bug.

This is fixed in Pygments as of r3772, and should be updated on dsource shortly. -KirkMcDonald?