mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Follow up for bug 246846.
This commit is contained in:
parent
db6836a8b8
commit
c28c10d595
2 changed files with 5 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue