I am using version 10.0.2
If I set
SetAttributes[ol, Orderless]
Then the following expression appears to be highlighted incorrectly after clicking in it (no need to evaluate it)
ol[a_, b_] :> {a, b} (*click in this expression*)
Of course replacements like this still work
ol[1, 2] /. ol[a_, b_] :> {a, b}
{1, 2}
Am I correct in concluding that this is a (small) bug?
Edit: I tested this several times with a fresh kernel, but with a fresh front end the bug does not occur. I will try to see what steps I took to get the front end in this state.
Edit2
Can somebody please evaluate the following code in one cell and then manually type a space, to see if they get the same incorrect highlighting?
SetAttributes[ol, Orderless]
Cell[BoxData@
RowBox@{
RowBox@{"ol", "[",
RowBox@{"a_", ",", "b_"}, "]"
}
,
"\[RuleDelayed]"
,
RowBox@{"{",
RowBox@{"a", ",", "b"}, "}"
}
},
"Input"
] // CellPrint
SelectionMove[EvaluationNotebook[], Before, CellContents]
SelectionMove[EvaluationNotebook[], Next, Character, 11]
b
is blue for me :P. $\endgroup$