Skip to content

Use line comment for 'commentstring'#522

Open
frangio wants to merge 1 commit into
Julian:mainfrom
frangio:commentstring
Open

Use line comment for 'commentstring'#522
frangio wants to merge 1 commit into
Julian:mainfrom
frangio:commentstring

Conversation

@frangio
Copy link
Copy Markdown

@frangio frangio commented Jun 2, 2026

'commentstring' is used by Neovim in a way that line comments seem more fitting.

Additionally, there is a quirk/bug of Neovim that interacts badly with Lean's comment syntax and can cause unterminated comments to show up.

To reproduce, perform a visual selection accross paragraphs, including an empty line. Then comment it out using gcc. The empty line will be left with /--/, which in Lean is the start of a doc comment, without a corresponding end of the comment, so the remainder of the file gets read as a comment. The quirk is that the spaces around %s seem to be ignored for empty lines.

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.

1 participant