minor TODO detection improvement

This commit is contained in:
Basile Burg 2015-01-31 13:08:08 +01:00
parent c9bebfd262
commit e9c6de2700
1 changed files with 7 additions and 5 deletions

View File

@ -161,11 +161,13 @@ void main(string[] args)
// "TODO"
while (true) {
if (pos == text.length) break;
auto upIdent = identifier.strip.toUpper;
if (upIdent == "TODO" || upIdent == "FIXME"){
isTodoComment = true;
text = text[pos..$];
break;
if (identifier.length > 3) {
auto upIdent = identifier.strip.toUpper;
if (upIdent == "TODO" || upIdent == "FIXME"){
isTodoComment = true;
text = text[pos..$];
break;
}
}
identifier ~= text[pos++];
}