This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
def max(a,b); a>b ? a : b; end def min(a,b); a<b ? a : b; end Oddly enough, the function max gets colored correctly, by the function min does not (the 'b' stays black)
Hmm, seems to work for me in the very latest build. Which build are you using (Help -> About)? Does closing the file and opening it again help?
That's odd since it should be easy to reproduce. For me, it happens on 6.5, 6.7M2 and the latest build (it does take a little while for the coloring to show up). I found that inserting spaces around the < fixes it, so this one is fine: def min(a,b); a < b ? a : b; end As far as bugs go this is a tiny one, but I thought I'd report it since it may be indicative of a larger issue
Oops, sorry -- I didn't look carefully enough, indeed the 'b' in a<b stays black for me too (in 'a : b' it's colored correctly though). I will look into this, thanks for reporting.
I'll try to fix this for 6.9, should be simple unless the problem is in the AST produced by the parser.