mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
RegExp: small simplification
GitOrigin-RevId: aae8e33d12b5252f7c781be9d38782f0aaf7aead
This commit is contained in:
committed by
intellij-monorepo-bot
parent
554a472101
commit
d1a8ea1bc5
@@ -543,11 +543,10 @@ public final class RegExpAnnotator extends RegExpElementVisitor implements Annot
|
||||
else {
|
||||
final ASTNode token = quantifier.getToken();
|
||||
assert token != null;
|
||||
final String tokenText = token.getText();
|
||||
if ("?".equals(tokenText) && mySupport == RegExpLanguageHost.Lookbehind.FINITE_REPETITION) {
|
||||
if (token.getElementType().equals(RegExpTT.QUEST) && mySupport == RegExpLanguageHost.Lookbehind.FINITE_REPETITION) {
|
||||
return;
|
||||
}
|
||||
stopAndReportError(quantifier, RegExpBundle.message("error.0.repetition.not.allowed.inside.lookbehind", tokenText));
|
||||
stopAndReportError(quantifier, RegExpBundle.message("error.0.repetition.not.allowed.inside.lookbehind", quantifier.getText()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user