Match multiple lines with new parser

All questions regarding lexer highlighting schemes are discussed here...
Post Reply
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Match multiple lines with new parser

Post 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?
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post 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?
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post 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 :)
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post 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.
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post by Shovel »

Here is a screenshot of it working in CudaText 1.130.0.0
And the full lexer is this one
Attachments
empty_lines.png
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

too hard to figure out why it was working before (and not now). sorry
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post 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.
Post Reply