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

Tiny fix of regexp for completions' comments #136

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Tiny fix of regexp for completions' comments #136

wants to merge 4 commits into from

Conversation

krautcat
Copy link
Contributor

@krautcat krautcat commented Nov 5, 2017

This fix allows to have comments with provide plenv completions not
only as standalone strings but also for embedded inline comments. Also,
the commit fixes completions for plenv commands command and other
possibly broken before commands.

krautcat and others added 2 commits November 5, 2017 21:58
This fix allows to have comments with `provide plenv completions` not
only as standalone strings but also for embedded inline comments. Also,
the commit fixes completions for `plenv commands` command and other
possibly broken before commands.

Signed-off-by: Georgiy Odisharia <[email protected]>
@krautcat
Copy link
Contributor Author

@tokuhirom, any updates here?

This fix allows to have comments with `provide plenv completions` not
only as standalone strings but also for embedded inline comments. Also,
the commit fixes completions for `plenv commands` command and other
possibly broken before commands.

Signed-off-by: Georgiy Odisharia <[email protected]>
@syohex
Copy link
Collaborator

syohex commented Mar 19, 2020

I don't understand why this change is necessary ? (Note: rbenv does not accept this syntax). Could you show us any use-case ?

I suppose it is enough to add standalone comment like #provide plenv completions

@krautcat
Copy link
Contributor Author

krautcat commented Mar 21, 2020

Basically it's just comment and it could be anywhere in the string.

For example, libexec/plenv-commands has following strings:

case "$1" in
--complete ) # Provide plenv completions
  echo --sh

@syohex
Copy link
Collaborator

syohex commented Mar 21, 2020

I suppose we should fix that file and should not fix magic comment rule regexp

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

Successfully merging this pull request may close these issues.

3 participants