close
Skip to content

Add newline extension for rust header doc comments - #17

Merged
maxgrafik merged 1 commit into
maxgrafik:mainfrom
nlydv:rust-inner-doc
Nov 3, 2023
Merged

Add newline extension for rust header doc comments#17
maxgrafik merged 1 commit into
maxgrafik:mainfrom
nlydv:rust-inner-doc

Conversation

@nlydv

@nlydv nlydv commented Nov 3, 2023

Copy link
Copy Markdown
Contributor

Hey, this is a pretty simple fix.

I noticed that for Rust inner doc comments (//!), as inserted by the "Header" completion, it won't automatically extend the comment to a new line on hitting enter like regular /// doc comments do.

Tweaking a couple regexes seemed to do the trick though.

@maxgrafik

Copy link
Copy Markdown
Owner

Hey, thanks. Looks good.

@maxgrafik
maxgrafik merged commit f1c71c3 into maxgrafik:main Nov 3, 2023
@nlydv
nlydv deleted the rust-inner-doc branch December 8, 2023 05:39
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