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

Comment adjustments.

This commit is contained in:
Sergey Prigogin 2009-05-22 06:07:49 +00:00
parent eee2636999
commit bf6979fc33

View file

@ -83,7 +83,7 @@ public class TodoTaskParser {
if (tagLength == 0 || i + tagLength > commentLength)
continue nextTag;
// Ensure tag is not leaded with letter if tag starts with a letter
// Ensure tag is not leaded by a letter if the tag starts with a letter.
if (isIdentifierStart(tag[0]) && isIdentifierPart(previous)) {
continue nextTag;
}
@ -100,10 +100,10 @@ public class TodoTaskParser {
}
}
}
// Ensure tag is not followed with letter if tag finishes with a letter
if (i + tagLength < commentLength && isIdentifierPart(comment[i + tagLength - 1])) {
if (isIdentifierPart(comment[i + tagLength]))
continue nextTag;
// Ensure tag is not followed by a letter if the tag ends with a letter.
if (i + tagLength < commentLength && isIdentifierPart(comment[i + tagLength - 1]) &&
isIdentifierPart(comment[i + tagLength])) {
continue nextTag;
}
Task task = new Task(filename, i, i + tagLength, lineNumber,