Skip to content

Tiny fix of regexp for completions' comments#136

Open
krautcat wants to merge 4 commits intotokuhirom:masterfrom
krautcat:fix-regexp-in-plenv-completions
Open

Tiny fix of regexp for completions' comments#136
krautcat wants to merge 4 commits intotokuhirom:masterfrom
krautcat:fix-regexp-in-plenv-completions

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 <math.kraut.cat@gmail.com>
@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 <math.kraut.cat@gmail.com>
@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