Page 1 of 1

Match multiple lines with new parser

Posted: 01.05.2021 07:26
by Shovel
I need to colorize background of 2+ empty lines. On the older version I had this regex: ^\x20*$\n(\x20*$\n)+
Doesn't work anymore, any way to do this now?

Posted: 01.05.2021 12:42
by uvviewsoft
I try this in synwrite, I did uncheck '[ ] skip spaces', empty lines not colored. but why did it work before? IMO it must not work at all. can you avoid coloring empty lines?

Posted: 01.05.2021 14:45
by Shovel
uvviewsoft wrote:can you avoid coloring empty lines?
If it doesn't work anymore in lexers - I probably will :D ... It's important to me, so I will try to force 'cuda_colored_indent' to do this :)

Posted: 01.05.2021 17:20
by uvviewsoft
if it worked before, I must see this in synwrite,...but I do not see it. synwrite was updated but for the indent-based folding, not for empty lines.

Posted: 01.05.2021 17:38
by Shovel
Here is a screenshot of it working in CudaText 1.130.0.0
And the full lexer is this one

Posted: 02.05.2021 10:04
by uvviewsoft
too hard to figure out why it was working before (and not now). sorry

Posted: 02.05.2021 11:17
by Shovel
no problem, it was easy to add to the Color-Indent plugin and for now it works ok. I never seen this feature anywhere, so I assumed it's not needed in the official version.