mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Comment adjustments.
This commit is contained in:
parent
eee2636999
commit
bf6979fc33
1 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue