[Feature request] endRegion position before match
Often we have two types of comments: One-line and multiline. For multiline we have beginRegion-endRegion Sometime programic editors enable comment code by add for example // to many following lines. It will be well to make region starting with first line with // at start line, and ending to last line which has // at start line. Here is sample file sample.multiline
// line 1 of comment
// line 2 of comment
// line 3 of comment
first not commented, must be visible when folding region
second not commented, - is visible
My minimal highlighter multilinesample.xml
<language name="multiline sample" section="Sources" version="1" kateversion="5.0" extensions="*.multiline" priority="1"
``` This sample highligter uses endRegion which hide first uncommented line.
Need : endRegionBefore="true", default "false" means - end region is counting BEFORE match string
or
explicite endRegionDelta = -1 but this is worse, endRegionBefore is special for this multi one-line comments