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 91198 - Consider better inline expression coloring
Summary: Consider better inline expression coloring
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:
Depends on:
Blocks:
 
Reported: 2006-12-18 12:59 UTC by Martin Krauskopf
Modified: 2011-01-28 20:10 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
VimVsNB.png (33.87 KB, image/png)
2006-12-18 13:00 UTC, Martin Krauskopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Krauskopf 2006-12-18 12:59:41 UTC
Compare attached Vim vs. NetBeans screenshot. In VIM expression is more readable
then in NB. i.e. also "${" and "}" should be colorized since it is not part of
the actual string.
Comment 1 Martin Krauskopf 2006-12-18 13:00:04 UTC
Created attachment 36741 [details]
VimVsNB.png
Comment 2 Martin Krauskopf 2006-12-21 11:39:09 UTC
Other case which looks little odd is:

  TMP="#{ENV['HOME']}/tmp"

Try to put it into editor.
Comment 3 Torbjorn Norbye 2006-12-22 21:12:43 UTC
The problem is that the JRuby lexer does not split the strings into these
tokens; e.g. if I have


"foo#{x}bar"

I will get
" - string begin
foo#{ - string
x - whatever
}bar - string

To make the #{ and } substrings separate tokens (which I can then assign
non-string colors) I'll have to split up what I'm getting back from JRuby (or
patch their lexer further). Definitely doable, but I'm putting it off until I've
taken care of a few higher priority items.
Comment 4 Jiri Kovalsky 2007-07-03 14:01:23 UTC
Reassigning this issue to newly created 'ruby' component.