mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
regexp: better name
This commit is contained in:
@@ -33,7 +33,7 @@ public interface RegExpElementTypes {
|
||||
IElementType CHAR = new RegExpElementType("CHAR");
|
||||
IElementType GROUP = new RegExpElementType("GROUP");
|
||||
IElementType PROPERTY = new RegExpElementType("PROPERTY");
|
||||
IElementType NAMED_CHARACTER_ELEMENT = new RegExpElementType("NAMED_CHARACTER_ELEMENT");
|
||||
IElementType NAMED_CHARACTER = new RegExpElementType("NAMED_CHARACTER");
|
||||
IElementType OPTIONS = new RegExpElementType("OPTIONS");
|
||||
IElementType SET_OPTIONS = new RegExpElementType("SET_OPTIONS");
|
||||
IElementType BACKREF = new RegExpElementType("BACKREF");
|
||||
|
||||
@@ -495,7 +495,7 @@ public class RegExpParser implements PsiParser {
|
||||
checkMatches(builder, RegExpTT.LBRACE, "'{' expected");
|
||||
checkMatches(builder, RegExpTT.NAME, "Unicode character name expected");
|
||||
checkMatches(builder, RegExpTT.RBRACE, "'}' expected");
|
||||
marker.done(RegExpElementTypes.NAMED_CHARACTER_ELEMENT);
|
||||
marker.done(RegExpElementTypes.NAMED_CHARACTER);
|
||||
}
|
||||
|
||||
private static void patternExpected(PsiBuilder builder) {
|
||||
|
||||
@@ -95,7 +95,7 @@ public class RegExpParserDefinition implements ParserDefinition {
|
||||
return new RegExpGroupImpl(node);
|
||||
} else if (type == RegExpElementTypes.PROPERTY) {
|
||||
return new RegExpPropertyImpl(node);
|
||||
} else if (type == RegExpElementTypes.NAMED_CHARACTER_ELEMENT) {
|
||||
} else if (type == RegExpElementTypes.NAMED_CHARACTER) {
|
||||
return new RegExpNamedCharacterImpl(node);
|
||||
} else if (type == RegExpElementTypes.SET_OPTIONS) {
|
||||
return new RegExpSetOptionsImpl(node);
|
||||
|
||||
Reference in New Issue
Block a user