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 91340 - Symbols are not colored properly
Summary: Symbols are not colored properly
Status: VERIFIED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-20 14:08 UTC by Tomas Danek
Modified: 2007-07-03 14:44 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 Tomas Danek 2006-12-20 14:08:16 UTC
#196:

have a simple code like this:
class Foo
    attr_reader :var
    attr_writer :var

    def initialize(value)  
        @var = value 
    end
end

in editor, on line     
    attr_writer :var
is coloring ok, ":var" is colored bold green, but on line
    attr_reader :var
is ":var" colored black.
Comment 1 Martin Krauskopf 2006-12-21 11:36:55 UTC
Similarly with this code:

  def nothing
  end
  puts :aa, :bb, :cc

:aa is not colorized.

When having just file with content:

  puts :aa, :bb, :cc

:aa is colorized correctly.
Comment 2 Torbjorn Norbye 2006-12-22 16:54:22 UTC
Fixed in #198. 
/cvs/semplice/modules/scripting/ruby/jruby/jruby.diff,v  <--  jruby.diff
new revision: 1.2; previous revision: 1.1

The bug here was that in the JRuby lexer, which I've modified slightly to return
whitespace tokens, I had not updated the commandStart and lex_state variables
after seeing a newline character, which is done when the lexer does not return
whitespace tokens. The net result was that the state machine ended up taking a
different path later on when interpreting the ':'.
Comment 3 Tomas Danek 2007-01-03 15:29:46 UTC
verified in #208
Comment 4 Jiri Kovalsky 2007-07-03 14:01:57 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 5 Jiri Kovalsky 2007-07-03 14:44:22 UTC
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.