Skip to content

Commit

Permalink
Add comment textobjects
Browse files Browse the repository at this point in the history
  • Loading branch information
antoyo committed May 3, 2022
1 parent 53fe8a9 commit db82267
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions helix-core/src/comment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ pub fn toggle_line_comments(doc: &Rope, selection: &Selection, token: Option<&st
/// Return token if the current line is commented.
/// Otherwise, return None.
pub fn continue_comment<'a>(doc: &Rope, line: usize, tokens: &'a [String]) -> Option<&'a str> {
// TODO: don't continue shebangs.
if tokens.is_empty() {
return None;
}
Expand Down
1 change: 1 addition & 0 deletions runtime/queries/haskell/textobjects.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(comment)+ @comment.around

0 comments on commit db82267

Please sign in to comment.