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 178305

Summary: Bug in highlighting name
Product: ruby Reporter: hmm <hmm>
Component: EditingAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Show part of the screen
one more printscreen
ruby 1.9 hash colorize

Description hmm 2009-12-08 08:26:58 UTC
In Netbeans 6.8 RC2, the code:

puts "Hello world!"

Only "pu" is highlighted, "ts" is left out. I found that many of the "ts" or "s" suffixies of the method's name have the same problem.
Comment 1 Erno Mononen 2009-12-08 08:32:15 UTC
Thanks for the report. Can you please tell whether you use Ruby or JRuby, and which exact version? Also, do you have any other content in the file where you can see this bug? If yes, could you paste the content here. Thanks.
Comment 2 hmm 2009-12-08 08:34:39 UTC
Created attachment 92285 [details]
Show part of the screen
Comment 3 hmm 2009-12-09 23:14:51 UTC
I use "Ruby 1.9.1 (2009-07-16 patchlevel 243) [i386-mingw32]" from "http://rubyinstaller.org/" with ruby-debug19 from "http://wiki.github.com/mark-moseley/ruby-debug".

When I tried to change back to the default JRuby 1.4, the problem seems to disappear.

P.S.: The content of the file is just: puts "Hello world!"
Comment 4 Erno Mononen 2009-12-10 01:47:03 UTC
Thanks for the info. Seems to be a bug in the 1.9 parser; JRuby 1.4 runs in 1.8 mode by default so that's why it works with it. I'll try to fix this in the parser, in the meantime if using Ruby 1.8 is an option for you I'd recommend to do that to workaround this.
Comment 5 rakoth3d 2010-04-11 17:43:47 UTC
Created attachment 97031 [details]
one more printscreen

Have same bug with code on the picture.
Comment 6 rakoth3d 2010-04-11 17:56:50 UTC
Created attachment 97032 [details]
ruby 1.9 hash colorize

Keys in hash must be colorized as symbols (see third picture)