tree-sitter / tree-sitter-rust

Rust grammar for tree-sitter
MIT License
340 stars 97 forks source link

Folding on multi-line doc comments #174

Closed nickeb96 closed 1 year ago

nickeb96 commented 1 year ago

I would like to be able to write a query that marks a list of (comment)s with @fold.

It doesn't look like this is currently possible. I've tried ((comment)+) @fold, but that appears to mark each comment individually as a @fold, instead of the entire thing.

amaanq commented 1 year ago

wrong repo