Bug 226272 - Action items customizer should support multiple different block comments
Action items customizer should support multiple different block comments
Status: NEW
Product: platform
Classification: Unclassified
Component: Action Items
7.4
PC Linux
: P3 (vote)
: TBD
Assigned To: Jan Peska
issues@platform
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-18 13:00 UTC by Martin Janicek
Modified: 2013-03-18 09:28 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo