Mercurial > projects > dil
diff trunk/src/dil/doc/Parser.d @ 737:f88b5285b86b
Implemented DDocEmitter.
Fixed quite a few bugs.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sat, 09 Feb 2008 02:00:20 +0100 |
parents | c204b6a9e0ef |
children | 35184354a502 |
line wrap: on
line diff
--- a/trunk/src/dil/doc/Parser.d Mon Feb 04 21:55:44 2008 +0200 +++ b/trunk/src/dil/doc/Parser.d Sat Feb 09 02:00:20 2008 +0100 @@ -60,6 +60,8 @@ while (p < textEnd) { skipWhitespace(); + if (p >= textEnd) + break; auto idBegin = p; if (isidbeg(*p) || isUnicodeAlpha(p, textEnd)) // IdStart { @@ -69,7 +71,7 @@ auto idEnd = p; skipWhitespace(); - if (*p == '=') + if (p < textEnd && *p == '=') { p++; skipWhitespace();