Different spans for beginning and end of paragraphs
diamondburned opened this issue · comments
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:
let g:limelight_bop = '\(\n\n^\/\/ .*\n\|^\w.*\(:\|{\|)\)\n\)'
let g:limelight_eop = '\(\n\n\/\/\|^\p\n\n\)'
The issue is the bop
regex has 2 results, which means to grab the comments as well, the span needs to be 1. However, if 1
is used for the span of eop
, the second code block will be included as well.