Skip to content

Conversation

@ManuelHentschel
Copy link
Member

@ManuelHentschel ManuelHentschel commented Oct 28, 2021

Fix #845

I am having an issue where #' is sometimes auto-closed as #'<CURSOR HERE>', but this seems to be caused by neovim or some other extension.

Edit: The roxygen-block is now automatically exited after two empty lines (after a single empty line would be too early, I think), just let me know if this feels more like a bug or a feature.

Copy link
Member

@renkun-ken renkun-ken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely.
LGTM

@renkun-ken
Copy link
Member

renkun-ken commented Oct 29, 2021

The roxygen-block is now automatically exited after two empty lines (after a single empty line would be too early, I think)

I think it makes good sense because it is quite regular to use an empty line to break roxygen2 comments.

@renkun-ken renkun-ken merged commit 903c300 into master Oct 29, 2021
@ManuelHentschel ManuelHentschel deleted the indentedRoxygen branch November 27, 2021 13:03
ElianHugh pushed a commit to ElianHugh/vscode-R that referenced this pull request May 12, 2022
* Add support for indented Roxygen

* Exit roxygen after 2 empty lines

* Fix regex
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.

"#' + Enter" only works when there is no space / tab before the #'

3 participants