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 134931 - keywords in method names cause problems in formatting
Summary: keywords in method names cause problems in formatting
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
: 155669 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-13 10:23 UTC by Erno Mononen
Modified: 2011-01-28 20:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erno Mononen 2008-05-13 10:23:42 UTC
Build 080512

For example the following gets formatted incorrectly:

class Klass
  def begin
  end
end

Similarly a method named 'def' causes problems as well, which is probably not much of an issue but for example 'end' 
seems to be somewhat common as a method name.
Comment 1 Erno Mononen 2009-05-19 15:07:57 UTC
Still valid.
Comment 2 Erno Mononen 2009-05-22 15:00:06 UTC
*** Issue 155669 has been marked as a duplicate of this issue. ***
Comment 3 Erno Mononen 2010-04-19 13:40:21 UTC
This should be fixed in jruby-parser, caused by wrong tokens returned by the jruby-parser lexer. Probably not for 6.9.