Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different spans for beginning and end of paragraphs #58

Open
diamondburned opened this issue Jun 22, 2019 · 1 comment
Open

Different spans for beginning and end of paragraphs #58

diamondburned opened this issue Jun 22, 2019 · 1 comment

Comments

@diamondburned
Copy link

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.

@aviloff
Copy link

aviloff commented May 31, 2022

I have the same problem trying to isolate one line using the answer of
#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
#59
but I'm not sure how to implement it properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants