comparison trunk/src/dil/doc/Parser.d @ 745:7299159c3a19

Improved DDocParser.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sat, 09 Feb 2008 23:23:01 +0100
parents 35184354a502
children 00f872d949ea
comparison
equal deleted inserted replaced
744:7173ece1b696 745:7299159c3a19
61 // The body of A is empty, e.g.: 61 // The body of A is empty, e.g.:
62 // A = 62 // A =
63 // B = some text 63 // B = some text
64 // ^- begin and end point to B (or to this.textEnd in the 2nd case.) 64 // ^- begin and end point to B (or to this.textEnd in the 2nd case.)
65 if (begin is end) 65 if (begin is end)
66 return null; 66 return "";
67 // Remove trailing whitespace. 67 // Remove trailing whitespace.
68 while (isspace(*--end) || *end == '\n') 68 while (isspace(*--end) || *end == '\n')
69 {} 69 {}
70 end++; 70 end++;
71 return makeString(begin, end); 71 return makeString(begin, end);