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 226484 - JavaScript Syntax Highlighting missing separator
Summary: JavaScript Syntax Highlighting missing separator
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-21 22:33 UTC by dalelarsen
Modified: 2013-11-15 09:55 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (77.77 KB, text/plain)
2013-02-21 22:33 UTC, dalelarsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dalelarsen 2013-02-21 22:33:33 UTC
Product Version = NetBeans IDE 7.3 (Build 201302132200)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_26
Runtime = Java HotSpot(TM) Client VM 20.1-b02

I have customized my own syntax coloring theme.

For all languages there is an option for "separator" which colors  chars like (,),[,],{,}, etc. But javascript is not colored with that separator color. Its just white. I checked to see if there was an option to adjust the separator color for just javascript and there is not. My code looks unfamiliar without that simple coloring for separators, gonna have to revert to 7.2.1 for now...
Comment 1 dalelarsen 2013-02-21 22:33:36 UTC
Created attachment 131699 [details]
IDE log
Comment 2 Vladimir Riha 2013-02-21 23:01:53 UTC
Probably formatting component? Reassigning
Comment 3 dalelarsen 2013-09-12 13:53:14 UTC
I just tested this on netbeans 7.4 beta and its still a problem.
Comment 4 Petr Pisl 2013-09-16 13:30:58 UTC
The "separator" category is available only in Java. JavaScript and PHP doesn't have such category. IMHO this is not showstopper for NB 7.4.
Comment 5 dalelarsen 2013-09-16 13:48:07 UTC
The problem is that JavaScript doesn't take on that value for separator on "All languages" So instead of being the global all languages separator color, its just white. Everyone in my company has not been able update to 7.3 because of this problem. Do what you think is best but I don't see why no one can take a few minutes to look into this bug and knock it out. Thanks
Comment 6 Petr Pisl 2013-09-16 14:05:17 UTC
I did the fix in web main: http://hg.netbeans.org/web-main/rev/0eb7cd75b5fc and http://hg.netbeans.org/web-main/rev/d9f6f8e89d4b

The fix is not in the code basically, it's just redefinition the categories for tokens {}()[],.;: 

So the fix should be safe, but should be tested with other themes like CityLights and Dark theme. So it's up to the QA if they want it in NetBeans 7.4, to test it.

I'm sorry that I haven't look at this before. If you really think that this is showstopper for NB 7.4, increase the priority back, but I would like to know QE opinion.
Comment 7 dalelarsen 2013-09-16 14:17:48 UTC
If the fix is basically not in the code is there something we can do to modify our  own netbeans locally?
Comment 8 Vladimir Riha 2013-09-16 14:29:50 UTC
Personally I don't think it should go to 7.4, as it is not a serious stopper and it is too late for 7.4.
Comment 9 Petr Pisl 2013-09-16 15:09:30 UTC
I'm sorry for the misleading comment. I didn't change a java code from program logic code point of view, it was change in the name of category. Unfortunately the category names, are defined as constants in the code, so you need the whole javascript nbm module file.
Comment 10 dalelarsen 2013-09-16 15:10:25 UTC
Ah I see. Ok, thanks!
Comment 11 Petr Pisl 2013-09-16 15:14:07 UTC
Anyway, you can take dev build from http://bits.netbeans.org/download/trunk/nightly/latest/ in Wednesday and there should be the fix. So you can test it and use it.
Comment 12 dalelarsen 2013-09-16 15:17:16 UTC
Awesome, thanks!
Comment 13 Petr Jiricka 2013-09-16 16:14:37 UTC
> Personally I don't think it should go to 7.4

Agreed, though we may want to consider it for a patch - adding 74patch-candidate.
Comment 14 Petr Pisl 2013-09-16 18:25:28 UTC
I think that the solution to add it to the patch is the right way. Thanks.
Comment 15 Petr Pisl 2013-09-17 12:31:45 UTC
It appears that the fix has small side effect in the lexer. In the patch has to be also added this change: http://hg.netbeans.org/web-main/rev/675a3e145389
Comment 16 Vladimir Riha 2013-11-04 07:55:03 UTC
Verified, it is possible to change coloring of {}()[],.;: 


Product Version: NetBeans IDE Dev (Build 201311040001)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 18 Quality Engineering 2013-11-14 14:34:39 UTC
Integrated into 'releases/release74', will be available in build *201311141216* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/b1830029a09f
User: Petr Pisl <ppisl@netbeans.org>
Log: #226484 - JavaScript Syntax Highlighting missing separator
Comment 19 Vladimir Riha 2013-11-15 09:55:39 UTC
verified in patch

Product Version: NetBeans IDE 7.4 (Build 201311142201)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)