Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318626 - Ruby syntax coloring messed up by blocks
Summary: Ruby syntax coloring messed up by blocks
Status: CLOSED WONTFIX
Alias: None
Product: DLTK
Classification: Technology
Component: Ruby (show other bugs)
Version: 0.95   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: dltk.ruby-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-01 11:15 EDT by cdfw02 CLA
Modified: 2020-01-03 07:57 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cdfw02 CLA 2010-07-01 11:15:55 EDT
Build Identifier: M20090211-1700

Method calls in class instance methods that have blocks in Ruby cause syntax coloring to become shifted later in the file. Further class methods that have blocks will shift the highlighting even more. I have provided a simple example. A do..end block is provided to some_method in bar of Foo. After this, much of the highlighting is wrong. When other_method is called later on, :opts should be colored blue. Instead, (:op is colored blue.

Reproducible: Always

Steps to Reproduce:
Paste the following in a new file called test.rb and note the syntax highlighting on other_method:

class Foo
  def bar
    some_method do
      puts "something"
    end
  end
end

other_method(:opts=>x)
Comment 1 Remy Suen CLA 2010-07-02 08:15:49 EDT
Which Ruby plug-in are you using?
Comment 2 cdfw02 CLA 2010-07-09 11:16:25 EDT
(In reply to comment #1)
> Which Ruby plug-in are you using?

Ruby Dev Tools (Incubation) 0.95.0v20080526
Comment 3 Remy Suen CLA 2010-07-09 11:21:30 EDT
(In reply to comment #2)
> Ruby Dev Tools (Incubation) 0.95.0v20080526

Which update site did you install this from? From Aptana?
Comment 4 cdfw02 CLA 2010-07-09 14:34:29 EDT
(In reply to comment #3)
> (In reply to comment #2)
> > Ruby Dev Tools (Incubation) 0.95.0v20080526
> 
> Which update site did you install this from? From Aptana?

The provider is listed as Eclipse.org
Comment 5 Remy Suen CLA 2010-07-09 14:38:30 EDT
(In reply to comment #4)
> The provider is listed as Eclipse.org

Thank you. I will guess DLTK then.
Comment 6 Dawid Pakula CLA 2020-01-03 07:57:33 EST
Ruby support has been removed.