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.

Bug 194609 - Valid ruby syntax marked as invalid
Summary: Valid ruby syntax marked as invalid
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-22 01:58 UTC by TikiTDO
Modified: 2011-01-28 20:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans 6.9.1 failure example (9.15 KB, image/png)
2011-01-22 01:59 UTC, TikiTDO
Details

Note You need to log in before you can comment on or make changes to this bug.
Description TikiTDO 2011-01-22 01:58:50 UTC
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.
Comment 1 TikiTDO 2011-01-22 01:59:27 UTC
Created attachment 105266 [details]
NetBeans 6.9.1 failure example