regexp: really fix boundaries

This commit is contained in:
Bas Leijdekkers
2016-08-12 12:39:17 +02:00
parent 17613998de
commit a0ea168990
@@ -31,12 +31,14 @@ public class RegExpBoundaryImpl extends RegExpElementImpl implements RegExpBound
@NotNull
public Type getType() {
final IElementType type = getNode().getElementType();
final ASTNode child = getNode().getFirstChildNode();
assert child != null;
final IElementType type = child.getElementType();
if (type == RegExpTT.CARET) {
return Type.LINE_START;
} else if (type == RegExpTT.DOLLAR) {
return Type.LINE_END;
} else {
} else if (type == RegExpTT.BOUNDARY){
final String s = getUnescapedText();
if (s.equals("\\b")) {
return Type.WORD;