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 215318 - Comments aren't closed automatically
Summary: Comments aren't closed automatically
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: arusinha
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-09 21:34 UTC by Felicitus
Modified: 2017-05-11 01:44 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
IDE log (35.04 KB, text/plain)
2012-07-09 21:34 UTC, Felicitus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felicitus 2012-07-09 21:34:45 UTC
When I attempt to create a multi-line comment like this:

/**
 *

The additional *'s per line are created, but the closing comment */ isn't added. I haven't found anything in the configuration which could affect this behaviour.

In contrast, the PHP editor does it correctly by default.


Product Version = NetBeans IDE 7.2 RC1 (Build 201206272359)
Operating System = Linux version 3.2.0-2-rt-amd64 running on amd64
Java; VM; Vendor = 1.6.0_24
Runtime = OpenJDK 64-Bit Server VM 20.0-b12
Comment 1 Felicitus 2012-07-09 21:34:51 UTC
Created attachment 121863 [details]
IDE log
Comment 2 Petr Pisl 2012-07-11 08:47:59 UTC
This issue is also in NB 7.3. The unfinished comment is marked as error and coloring doesn't color the rest of code as comment. The right behavior should be

/**
 *|<- after pressing enter here

the result should be:

/**
 *
 * | <-caret position
 */
Comment 3 arusinha 2017-05-10 04:33:54 UTC
Please find below relevant commits related to the bug #215318

https://hg.netbeans.org/jet-main/rev/350094d9a7a5
Comment 4 Quality Engineering 2017-05-11 01:44:06 UTC
Integrated into 'main-silver', will be available in build *201705110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/183ef041790c
User: Arusinha <arusinha@netbeans.org>
Log: #215318: Fixing the auto comment population