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 - Bug in highlighting name
Summary: Bug in highlighting name
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-08 08:26 UTC by hmm
Modified: 2011-01-28 20:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Show part of the screen (1.29 KB, image/x-png)
2009-12-08 08:34 UTC, hmm
Details
one more printscreen (41.67 KB, image/jpeg)
2010-04-11 17:43 UTC, rakoth3d
Details
ruby 1.9 hash colorize (9.71 KB, image/jpeg)
2010-04-11 17:56 UTC, rakoth3d
Details

Note You need to log in before you can comment on or make changes to this bug.
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)