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 - Groovy editor always treat / as a string delimiter
Summary: Groovy editor always treat / as a string delimiter
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Martin Janicek
Depends on:
Reported: 2012-10-29 06:49 UTC by RusselWinder
Modified: 2017-12-22 12:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

IDE log (265.13 KB, text/plain)
2012-10-29 06:49 UTC, RusselWinder

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