diff --git a/RegExpSupport/src/org/intellij/lang/regexp/RegExpWordSelectionFilter.java b/RegExpSupport/src/org/intellij/lang/regexp/RegExpWordSelectionFilter.java index ed7a2193a18d..234b43306923 100644 --- a/RegExpSupport/src/org/intellij/lang/regexp/RegExpWordSelectionFilter.java +++ b/RegExpSupport/src/org/intellij/lang/regexp/RegExpWordSelectionFilter.java @@ -19,7 +19,6 @@ import com.intellij.lang.ASTNode; import com.intellij.openapi.util.Condition; import com.intellij.psi.PsiElement; import org.intellij.lang.regexp.psi.RegExpChar; -import org.intellij.lang.regexp.psi.RegExpNamedCharacter; import org.jetbrains.annotations.NotNull; /** @@ -30,7 +29,7 @@ public class RegExpWordSelectionFilter implements Condition { public boolean value(@NotNull PsiElement element) { final ASTNode node = element.getNode(); if ((node != null && node.getElementType() == RegExpTT.CHARACTER) || - (element instanceof RegExpChar && !(element instanceof RegExpNamedCharacter))) { + (element instanceof RegExpChar && ((RegExpChar)element).getType() == RegExpChar.Type.CHAR)) { return false; } return true;