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 93341 - Add syntax highlighting of Ruby embedded in Strings
Summary: Add syntax highlighting of Ruby embedded in Strings
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-26 17:36 UTC by Torbjorn Norbye
Modified: 2007-07-03 14:43 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjorn Norbye 2007-01-26 17:36:54 UTC
I had to disable rendering of embedded Ruby code in Strings, such as

  $stderr.puts "other: #{other}"

It was relying on creating an embedding path where Ruby is directly inside of
Ruby, and this no longer works - as shown in P1 issue 93287. Figure out if this
can be made to work again, or if I can implement it differently.
Comment 1 Torbjorn Norbye 2007-01-26 20:02:16 UTC
I have fixed this in build #244. I'm using a workaround where I'm creating an
intermediate language for embedding that is different than Ruby, and this
intermediate language simply creates a single token for the whole input and
marks it as embedding Ruby code. This gets around the limitation that one
language can directly embed fragments of itself the way I needed to (because the
Ruby lexer produces string tokens with embedded Ruby at the Ruby level, not
within strings).

I have an e-mail pending to see if there is a better way to fix this or if the
new restriction on language embeddings is really necessary (since this was
working fine until recently.)
Comment 2 Jiri Kovalsky 2007-07-03 14:12:14 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 3 Jiri Kovalsky 2007-07-03 14:43:05 UTC
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.