-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
In a shortened condition, it seems that the operator
:
is wrongly classified as a Symbol when it is followed by an identifier without a space. See: http://coderay.rubychan.de/rays/show/6917 - @bovi (Daniel Bovensiepen)
It's a known problem. It's hard to tell ?: and :sym apart without doing false positives. In this case, it really looks like a Symbol :) - @korny
But I can try. Thank you for the test code:
n=->k{k==0?'':n[k-1]+'{'+n[k-1]+'}'}
From Redmine: http://odd-eyed-code.org/issues/266