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

Support folding ranges for comments #309

Merged
merged 5 commits into from
Jul 13, 2020

Conversation

renkun-ken
Copy link
Member

@renkun-ken renkun-ken commented Jul 10, 2020

This PR adds support of folding ranges for comments so that consecutive lines of comments that start with the same column can be folded.

# comment range 1
# comment range 1
a <- 1

# comment range 2
# comment range 2
b <- 2

# not comment range
c <- 3

f <- function(x, y) {
  # comment range 3
  # comment range 3
  x + y
}

The comments in the same folding ranges could be folded.

Kapture 2020-07-10 at 21 54 39

@renkun-ken renkun-ken requested a review from randy3k July 10, 2020 11:11
@randy3k
Copy link
Member

randy3k commented Jul 13, 2020

LGTM

@renkun-ken renkun-ken merged commit fe3136d into REditorSupport:master Jul 13, 2020
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.

2 participants