mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
RegExp: simplify parse error message
GitOrigin-RevId: d9a3763a488de4912c850693ea23bf4b714988e4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
185111ad4b
commit
044afc1613
@@ -123,10 +123,9 @@ parse.error.posix.character.class.name.expected=POSIX character class name expec
|
||||
parse.error.property.name.expected=Property name expected
|
||||
parse.error.property.value.expected=Property value expected
|
||||
parse.error.unclosed.character.class=Unclosed character class
|
||||
parse.error.unclosed.conditional=Unclosed conditional
|
||||
parse.error.unclosed.group.name=Unclosed group name
|
||||
parse.error.unclosed.group.reference=Unclosed group reference
|
||||
parse.error.unclosed.group=Unclosed group
|
||||
parse.error.unclosed.group=')' expected
|
||||
parse.error.unclosed.mysql.character.equivalence.class=Unclosed MySQL character equivalence class
|
||||
parse.error.unclosed.mysql.character.expression=Unclosed MySQL character expression
|
||||
parse.error.unclosed.options.group=Unclosed options group
|
||||
|
||||
@@ -425,7 +425,7 @@ public class RegExpParser implements PsiParser, LightPsiParser {
|
||||
builder.advanceLexer();
|
||||
parseBranch(builder);
|
||||
}
|
||||
checkMatches(builder, RegExpTT.GROUP_END, RegExpBundle.message("parse.error.unclosed.conditional"));
|
||||
checkMatches(builder, RegExpTT.GROUP_END, RegExpBundle.message("parse.error.unclosed.group"));
|
||||
marker.done(RegExpElementTypes.CONDITIONAL);
|
||||
}
|
||||
else if (type == RegExpTT.PROPERTY) {
|
||||
|
||||
@@ -52,5 +52,5 @@ REGEXP_FILE
|
||||
PsiElement(GROUP_END)(')')
|
||||
PsiElement(GROUP_END)(')')
|
||||
PsiElement(GROUP_END)(')')
|
||||
PsiErrorElement:Unclosed group
|
||||
PsiErrorElement:')' expected
|
||||
<empty list>
|
||||
@@ -10,5 +10,5 @@ REGEXP_FILE
|
||||
PsiElement(CARET)('^')
|
||||
RegExpQuantifierImpl: <*>
|
||||
PsiElement(STAR)('*')
|
||||
PsiErrorElement:Unclosed group
|
||||
PsiErrorElement:')' expected
|
||||
<empty list>
|
||||
@@ -12,5 +12,5 @@ REGEXP_FILE
|
||||
RegExpPatternImpl: <>
|
||||
RegExpBranchImpl: <>
|
||||
<empty list>
|
||||
PsiErrorElement:Unclosed group
|
||||
PsiErrorElement:')' expected
|
||||
<empty list>
|
||||
@@ -10,5 +10,5 @@ REGEXP_FILE
|
||||
PsiErrorElement:Dangling metacharacter
|
||||
<empty list>
|
||||
PsiElement(LBRACE)('{')
|
||||
PsiErrorElement:Unclosed group
|
||||
PsiErrorElement:')' expected
|
||||
<empty list>
|
||||
@@ -33,5 +33,5 @@ REGEXP_FILE
|
||||
PsiErrorElement:Dangling metacharacter
|
||||
<empty list>
|
||||
PsiElement(LBRACE)('{')
|
||||
PsiErrorElement:Unclosed conditional
|
||||
PsiErrorElement:')' expected
|
||||
<empty list>
|
||||
@@ -50,7 +50,7 @@ REGEXP_FILE
|
||||
PsiElement(CHARACTER)('r')
|
||||
RegExpCharImpl: <n>
|
||||
PsiElement(CHARACTER)('n')
|
||||
PsiErrorElement:Unclosed conditional
|
||||
PsiErrorElement:')' expected
|
||||
<empty list>
|
||||
PsiElement(UNION)('|')
|
||||
RegExpBranchImpl: <maybe-pattern>
|
||||
|
||||
@@ -6,5 +6,5 @@ REGEXP_FILE
|
||||
RegExpPatternImpl: <>
|
||||
RegExpBranchImpl: <>
|
||||
<empty list>
|
||||
PsiErrorElement:Unclosed group
|
||||
PsiErrorElement:')' expected
|
||||
<empty list>
|
||||
@@ -11,5 +11,5 @@ REGEXP_FILE
|
||||
PsiElement(CHARACTER)('b')
|
||||
RegExpCharImpl: <c>
|
||||
PsiElement(CHARACTER)('c')
|
||||
PsiErrorElement:Unclosed group
|
||||
PsiErrorElement:')' expected
|
||||
<empty list>
|
||||
@@ -191,7 +191,7 @@ public class RegExpHighlightingTest extends LightJavaCodeInsightFixtureTestCase
|
||||
}
|
||||
|
||||
public void testNoNPE() {
|
||||
doTest("(<error descr=\"Unclosed group\">\"</error>);}}//");
|
||||
doTest("(<error descr=\"')' expected\">\"</error>);}}//");
|
||||
}
|
||||
|
||||
public void testBadInlineOption() {
|
||||
|
||||
Reference in New Issue
Block a user