Changes between Version 4 and Version 5 of SyntaxHighlightingBugs
- Timestamp:
- 07/20/07 15:15:55 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SyntaxHighlightingBugs
v4 v5 1 There is at least [http://www.dsource.org/forums/viewtopic.php?p=15314#15314 one bug in the Pygments-based D parser]. It seems to be related to escaped backslashes in string literals denoted with double quote marks. 2 3 {{{ 4 #!d 5 const char[] quoteReg = "\'"; 6 const char[] backslashReg = "\\"; 7 const char[] quoteReg2 = "\'"; 8 9 void main() 10 { 11 printf("Hello, World!"); 12 } 13 }}} 1 ''I don't know of any bugs in the current release of the Pygments-based D parser, but I would describe them here if I found any.'' 14 2 15 3 16 Here are some more examples:17 * EscapeSequencesExample (below the "backslashReg" line)18 * StringLiteralsExample (below "const char[] a3" line)19 * CreateLinkUsingCom (below the "char[] SCPath = " line)20 * ApplicationPathExample (below the line with "int j = rfind(strtmp")21 * [http://www.dsource.org/projects/tutorials/browser/trunk/src/tutorials/d2html/d2html.d#L253 d2html] (below line that contains "dst.writeLine("<link rel=\"stylesheet\" href=\"style.css\"" ~ (xhtmlFormat ? "\\" : "") ~ ">");")22 4 23 I might need to create a new ticket or add a comment to [http://www.dsource.org/projects/dsource/ticket/8 dsource ticket #8] to notify someone who would be able to fix this bug.24 5 25 ''This is fixed in Pygments as of r3772, and should be updated on dsource shortly. -KirkMcDonald''