Different spans for beginning and end of paragraphs
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- vim
- Domain
- tooling
Research direction
Start with the issue's g:limelight_bop and g:limelight_eop regular expressions and the span handling they exercise. Reproduce the example with comments and a function block, then determine how separate beginning and ending spans should behave; done means the comments and function block are highlighted without including the second code block.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Vim Script
- Stars
- 2.5k
- Forks
- 58
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from junegunn/limelight.vim
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
junegunn/limelight.vim#74 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
junegunn/limelight.vim#73 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
junegunn/limelight.vim#72 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 48/100
junegunn/limelight.vim#69 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
junegunn/limelight.vim#68 · 3 comments ·
All issues in junegunn/limelight.vim
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
drevendev/Devostasis#158 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
vetro-protocol/vetro-monorepo#1277 ·
Maintainers usually reply within 1 day
-
Upgrade psalmOpendependencies
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
bug for-agent ready
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
WenyuChiou/agent-board#1812 · 2 comments ·
Maintainers usually reply within 1 day