Bug 376979 - angle brackets in doxygen comments break syntax highlighting
Summary: angle brackets in doxygen comments break syntax highlighting
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-27 14:34 UTC by OlafLostViking
Modified: 2017-07-23 09:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description OlafLostViking 2017-02-27 14:34:39 UTC
Using angle brackets inside of doxygen comments breaks the syntax highlighting. After the opening <, the highlighting changes and only gets back to "comment mode" after the closing > of _another_ tag.

Example:

/**
 * Lorem <ipsum> dolor <sit> amet.
 */

It's probably related to the old bug #155100 .
Comment 1 Kevin Funk 2017-02-27 15:39:05 UTC
This is a problem in KF5::SyntaxHighlighting. Moving.
Comment 2 Jonathan Poelen 2017-06-01 00:30:54 UTC
I suggest to replace

String="&lt;\/?[\w0-9._:-@]+"

with

String="&lt;\/?[-\w0-9._:@]+"


Implemented here:

https://github.com/jonathanpoelen/syntax-highlighting/commit/ba0034b78d929eddf4ffe044b597ffd558dd22cf