| Summary: | Ruby syntax coloring messed up by blocks | ||
|---|---|---|---|
| Product: | [Technology] DLTK | Reporter: | cdfw02 |
| Component: | Ruby | Assignee: | dltk.ruby-inbox <dltk.ruby-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | remy.suen |
| Version: | 0.95 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
Which Ruby plug-in are you using? (In reply to comment #1) > Which Ruby plug-in are you using? Ruby Dev Tools (Incubation) 0.95.0v20080526 (In reply to comment #2) > Ruby Dev Tools (Incubation) 0.95.0v20080526 Which update site did you install this from? From Aptana? (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 (In reply to comment #4) > The provider is listed as Eclipse.org Thank you. I will guess DLTK then. Ruby support has been removed. |
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)