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:
- EscapeSequencesExample (below the "backslashReg" line)
- StringLiteralsExample (below "const char[] a3" line)
- CreateLinkUsingCom (below the "char[] SCPath = " line)
- ApplicationPathExample (below the line with "int j = rfind(strtmp")
- d2html (below line that contains "dst.writeLine("<link rel=\"stylesheet\" href=\"style.css\"" ~ (xhtmlFormat ? "\\" : "") ~ ">");")
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?