mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
RegExp: don't look deep into class when calculating lookbehind length (PY-42776)
GitOrigin-RevId: b834ca01dc20d7e0f287270addf5e07db94f5800
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9d7eb44586
commit
023dd078b3
@@ -457,7 +457,6 @@ public final class RegExpAnnotator extends RegExpElementVisitor implements Annot
|
||||
|
||||
@Override
|
||||
public void visitRegExpClass(RegExpClass regExpClass) {
|
||||
super.visitRegExpClass(regExpClass);
|
||||
myLength++;
|
||||
}
|
||||
|
||||
|
||||
@@ -8,4 +8,5 @@ re.compile(r"(?<!a<error descr="Unequal min and max in counted quantifier not al
|
||||
re.compile(r"(?<!a|b<weak_warning descr="Single repetition">{1}</weak_warning>)")
|
||||
re.compile(r"(?<!abcd|(ab){2})")
|
||||
re.compile(r"(?<!abcde|x(ab){2})")
|
||||
re.compile(r"(?<!a(ab|cd)|xyz)")
|
||||
re.compile(r"(?<!a(ab|cd)|xyz)")
|
||||
re.compile(r'(?<!aa|b[cd]|ee)str')
|
||||
Reference in New Issue
Block a user