Bug 373002 - Single line comment in Less begins a new region
Summary: Single line comment in Less begins a new region
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-27 20:01 UTC by Grzegorz Szymaszek
Modified: 2017-07-23 14:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz Szymaszek 2016-11-27 20:01:42 UTC
If you type // in a Less (LESSCSS) file, Kate incorrectly opens a new region (it should do it in case of multiline comment, /*…*/). If you try to hide that region (using the arrow that's next to line number) it actually hides everything in the file starting from the comment.

Fixing this bug requires removing ' beginRegion="lessComment" ' from line 924 (of less.xml) and incrementing file version number on line 3.

Single line comments are part of Less, as stated here:
http://lesscss.org/features/#features-overview-feature-comments
Comment 1 Dominik Haumann 2017-07-23 14:03:35 UTC
Already fixed, see https://phabricator.kde.org/D4296 since KDE Frameworks 5.32.