Bug 226797

Summary: c-style comments should escape interior comments
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: tim blechmann <tim>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tim blechmann 2010-02-14 12:55:02 UTC
Version:           3.9.97 (using KDevPlatform 0.9.97) (using 4.4.00 (KDE 4.4.0), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.33-rc8

when commenting c/c++ code with c-style comments, the inner comment is not escaped.

int fn(void)
{
    /* comment */
}

would become

int /*fn(void)
{
    /* comment */
}*/

resulting in invalid code.

doing the same in emacs would escape the interior comment, so that the code still compiles

int /*fn(void)
{
    /\* comment *\/
}*/

would be great if kdevelop could do this as well
Comment 1 Andreas Pakulat 2010-02-14 14:56:09 UTC
The comment action is done in kate, so this would need to be done there too.
Comment 2 Christoph Cullmann 2019-05-19 14:58:02 UTC
Dear user, this wish list item is now closed, as it wasn't touched in the last year and no contributor stepped up to implement it.

The Kate/KTextEditor team is small and we can just try to keep up with fixing bugs.

Therefore wishes that show no activity for a years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.
If you want your feature to be implemented, please step up to provide some patch for it.

If you think it is really needed, you can reopen your request, but keep in mind,
if no new good arguments are made and no people get attracted to help out to implement it,
it will expire in a year again.

We have a nice website https://kate-editor.org that provides all the information needed to contribute, please make use of it.

Patches can be handed in via https://phabricator.kde.org/differential/

Greetings
Christoph Cullmann