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 226272

Summary: Action items customizer should support multiple different block comments
Product: platform Reporter: Martin Janicek <mjanicek>
Component: Action ItemsAssignee: Jan Peska <JPESKA>
Status: NEW ---    
Severity: normal CC: pjiricka
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Martin Janicek 2013-02-18 13:00:56 UTC
A lot of languages supports multiple different block comments. For example in GSP (Groovy server pages - something similar to JSP only using groovy as the main language) one can use three block comment types:

The one from HTML: <!-- -->
The one from JSP:  <%-- --%>
And GSP specific:  %{-- --}%

Action items should support such use case.
Comment 1 Petr Jiricka 2013-02-18 13:12:06 UTC
Isn't this already possible? When I select HTML in the Action Items settings, the dialog will correctly recognize that block comment markers are <!-- -->. When I select JSP, it will correctly recognize that block comment markers are <%-- --%>. So just GSP is missing, and this may need to be addressed on the GSP side.
Comment 2 Martin Janicek 2013-02-18 13:19:46 UTC
Well I just pick one of the cases (simply GSP have support for three different block comments - each of them can be in GSP and they are all valid comments). Doesn't actually matters they are equals to HTML/JSP comment symbols.

What I'm saying is that some languages can have action items in multiple different block comments (beside GSP, there is also a PHP use case) and current action items UI/Infrastructure does not support this (at least as I understand it --> of course I can be wrong :)).
Comment 3 Jan Peska 2013-02-19 07:57:20 UTC
(In reply to comment #2)

> What I'm saying is that some languages can have action items in multiple
> different block comments (beside GSP, there is also a PHP use case) and current
> action items UI/Infrastructure does not support this (at least as I understand
> it --> of course I can be wrong :)).

You are right Martin, right now you can specify just one line comment pattern and one block comment pattern. I'll take a look on that.
Comment 4 Martin Janicek 2013-03-18 09:28:42 UTC
One more thing that comes to my mind. Groovy also supports two different line comments (either classic '//' or groovy specific '#!').
Comment 5 flangefrog 2014-09-05 19:31:03 UTC
I think allowing comma or vertical bar separated lists would do.