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"
|
||||
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++];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue