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.
It appears as if in the editor it is mistaking a comment as the variable that proceeds the comment. Example: # A simple comment some_var = "A simple variable" a_number = 2 another_var = some_var + a_number.to_s In the preceding example the comment is being recognized as the variable some_var. If you click the comment it hints that it is some_var by highlighting the variable some_var in the line another_var = some_var + a_number.to_s Also if you remove the last two lines from the example the editor hints that the comment is unused instead of hinting that the variable some_var is unused.
Thanks for the report. I was able to reproduce this with 1.9, is that what you are using too? Seems that the problem is in the 1.9 parser.
Yes it only happens with the 1.9 interpreter just tested again now with 1.8.7. I also noticed this affects anything that comes right after a comment not just variables but functions as well. So it definitely seems like a parser issue.