-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat: continue single-line comments #8664
Closed
seanchen1991
wants to merge
23
commits into
helix-editor:master
from
seanchen1991:feature/continue-comment
Closed
Changes from 21 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
3844eb7
Add `continue_comment` function
seanchen1991 3d31e66
Add test for `get_comment_token` fn
seanchen1991 129ecae
Fix incorrect assertion
seanchen1991 2449622
Wire up continue comment functionality
seanchen1991 036e2bf
Add `comment-tokens` field to languages.toml
seanchen1991 adda266
Add additional comment tokens for Rust
seanchen1991 be9224e
Match all comment-tokens fields with comment-token fields
seanchen1991 e77d15d
Refactor continue comment function to also return position of comment…
seanchen1991 751d15d
Update calls to find_first_non_whitespace_char
seanchen1991 4315906
Continue single comments with indentation
seanchen1991 0d224e5
Implement `count_whitespace_after` fn
seanchen1991 ee9c015
Get tests for continue comment logic passing
seanchen1991 e44d55a
Don't count newlines when counting whitespace
seanchen1991 d816982
Rename a variable
seanchen1991 e6a492b
Add `continue-comment` config parameter
seanchen1991 c3a6190
Contiue comments in insert mode based on config
seanchen1991 d25c959
Merge branch 'helix-editor:master' into feature/continue-comment
seanchen1991 cbd05dc
Use pre-existing indentation functions to indent comment lines
seanchen1991 d73cd87
Merge branch 'feature/continue-comment' of https://github.com/seanche…
seanchen1991 e170d40
Clean up for PR submission
seanchen1991 d52dae9
Fix merge conflict in languages.toml
seanchen1991 b03f870
Remove changes in indent.rs
seanchen1991 57261e5
Remove incorrect unit test
seanchen1991 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This TODO was carried over from #1937, but I'm not sure what it means.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About shebangs in general: https://en.wikipedia.org/wiki/Shebang_(Unix)
We shouldn't continue shebangs as if they were regular comments since they only take up one line