Open diamondburned opened 5 years ago
I have the same problem trying to isolate one line using the answer of https://github.com/junegunn/limelight.vim/issues/40
It's the right answer, as I couldn't really improve to fix this bug
There seems to be some special function here that could help https://github.com/junegunn/limelight.vim/pull/59 but I'm not sure how to implement it properly
Title has it, but just to elaborate, I was trying to make Limelight highlight the comments and the function block. I have this following snippet:
The issue is the
bop
regex has 2 results, which means to grab the comments as well, the span needs to be 1. However, if1
is used for the span ofeop
, the second code block will be included as well.