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

Summary: Symbols are not colored properly
Product: ruby Reporter: Tomas Danek <musilt2>
Component: CodeAssignee: Torbjorn Norbye <tor>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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.