mirror of https://gitlab.com/basile.b/dexed.git
minor TODO detection improvement
This commit is contained in:
parent
c9bebfd262
commit
e9c6de2700
|
@ -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++];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue