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 220989

Summary: Groovy editor always treat / as a string delimiter
Product: groovy Reporter: RusselWinder
Component: EditorAssignee: Martin Janicek <mjanicek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description RusselWinder 2012-10-29 06:49:16 UTC
Product Version = NetBeans IDE 7.3 Beta (Build 201210011125)
Operating System = Linux version 3.5-trunk-amd64 running on amd64
Java; VM; Vendor = 1.8.0-ea
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b02

I am using / as a numeric divide operator in a Groovy code but the editor colourizes (or sometimes colorizes) the code as though it was a string opening. It treats all characters including end-of-lines as part of the string up to the next /, which is my code is the beginning of a one-line comment.
Comment 1 RusselWinder 2012-10-29 06:49:21 UTC
Created attachment 126693 [details]
IDE log
Comment 2 Martin Janicek 2012-10-29 15:05:03 UTC
Thanks for the report. Simplest case to reproduce is:

int x = 15/5
int y = 10/2

..everything between those two delimiters is incorrectly colored.
Comment 3 Martin Janicek 2012-10-29 15:07:49 UTC
One more note: After pasting the code from comment 2 to the groovy script, the coloring is fine. But after adding one space between "/" and "5", the coloring gets wrong.
Comment 4 st_erdogan 2017-12-22 12:45:50 UTC
Bug still exist in NetBeans 8.2.