1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Follow up for bug 246846.

This commit is contained in:
Sergey Prigogin 2009-05-19 05:42:39 +00:00
parent db6836a8b8
commit c28c10d595
2 changed files with 5 additions and 4 deletions

View file

@ -145,10 +145,12 @@ public class TodoTaskParser {
}
}
// Trim the message
while (msgStart < end && CharOperation.isWhitespace(comment[end - 1]))
while (msgStart < end && CharOperation.isWhitespace(comment[end - 1])) {
end--;
while (msgStart < end && CharOperation.isWhitespace(comment[msgStart]))
}
while (msgStart < end && (CharOperation.isWhitespace(comment[msgStart]) || comment[msgStart] == ':')) {
msgStart++;
}
if (msgStart == end) {
// If the description is empty, we might want to see if two tags
// are not sharing the same message.

View file

@ -43,8 +43,7 @@ public final class TaskTagRule extends CombinedWordRule implements IPropertyChan
}
public boolean isWordPart(char c) {
// Allow task tags like "todo(myname):"
return c == '.' || c == '(' || c == ')' || c == ':' || Character.isJavaIdentifierPart(c);
return c == '.' || Character.isJavaIdentifierPart(c);
}
}