mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-3511 False positive "Unresolved reference" on :param RST tag with underscores in
This commit is contained in:
@@ -46,7 +46,10 @@ public class DocStringReferenceProvider extends PsiReferenceProvider {
|
||||
break;
|
||||
}
|
||||
pos = CharMatcher.anyOf(" \t*").negate().indexIn(docString, tagRange.getEndOffset());
|
||||
int endPos = CharMatcher.JAVA_LETTER_OR_DIGIT.negate().indexIn(docString, pos);
|
||||
int endPos = new CharMatcher() {
|
||||
@Override public boolean matches(char c) {
|
||||
return Character.isLetterOrDigit(c) || c == '_';
|
||||
}}.negate().indexIn(docString, pos);
|
||||
if (endPos < 0) {
|
||||
endPos = docString.length();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user