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.
a = lambda {|foo, &bar| do_stuff(foo, bar) } a.call(1) do do_other_stuff end The IDE chokes on ", &bar" part with "Unexpected tAMPER." Running the built-in JRuby interpreter results in proper execution. This is still a problem in 7.0 Beta (Build 201011152355). In all versions up to 6.9.1 this also breaks the syntax highlighting for the rest of the file, making it really difficult to edit. Please refer to attached image for an example from 6.9.1 showing the syntax error, highlighting error, and the results of the execution.
Created attachment 105266 [details] NetBeans 6.9.1 failure example