mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
Bug 326418 - fixed false positives in language keyword check.
This commit is contained in:
parent
a10ba4bd8b
commit
64a95583ff
1 changed files with 3 additions and 1 deletions
|
@ -169,8 +169,10 @@ public class CElementHyperlinkDetector extends AbstractHyperlinkDetector {
|
|||
return true;
|
||||
}
|
||||
for (String keyword : keywords.getPreprocessorKeywords()) {
|
||||
if (keyword.charAt(0) == '#' && keyword.regionMatches(1, word, 0, word.length()))
|
||||
if (keyword.charAt(0) == '#' && keyword.length() == word.length() + 1 &&
|
||||
keyword.regionMatches(1, word, 0, word.length())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue