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" // "TODO"
while (true) { while (true) {
if (pos == text.length) break; if (pos == text.length) break;
auto upIdent = identifier.strip.toUpper; if (identifier.length > 3) {
if (upIdent == "TODO" || upIdent == "FIXME"){ auto upIdent = identifier.strip.toUpper;
isTodoComment = true; if (upIdent == "TODO" || upIdent == "FIXME"){
text = text[pos..$]; isTodoComment = true;
break; text = text[pos..$];
break;
}
} }
identifier ~= text[pos++]; identifier ~= text[pos++];
} }