Skip to content

Commit 7341286

Browse files
committed
Make the Slot highlighter dive into braces #[#Test] to make #Test green as well
1 parent 6527b4a commit 7341286

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/de/halirutan/mathematica/codeinsight/highlighting/MathematicaHighlightingAnnotator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,15 @@ public void visitSlot(final Slot slot) {
126126

127127
@Override
128128
public void visitSlotExpression(final SlotExpression slotExpr) {
129+
129130
IElementType head = slotExpr.getFirstChild().getNode().getElementType();
130131
if (head.equals(MathematicaElementTypes.ASSOCIATION_SLOT)) {
131132
setHighlighting(slotExpr, myHolder, MathematicaSyntaxHighlighterColors.PATTERN);
132133
} else {
133134
setHighlighting(slotExpr.getFirstChild(), myHolder, MathematicaSyntaxHighlighterColors.PATTERN);
134135
}
136+
slotExpr.acceptChildren(this);
137+
135138
}
136139
};
137140
function.accept(slotVisitor);

0 commit comments

Comments
 (0)