Skip to content

feat(ft): add sshconfig support - #531

Open
KorigamiK wants to merge 1 commit into
numToStr:masterfrom
KorigamiK:feat/sshconfig-comments
Open

KorigamiK wants to merge 1 commit into
numToStr:masterfrom
KorigamiK:feat/sshconfig-comments

Conversation

@KorigamiK

Copy link
Copy Markdown

Add sshconfig = { M.hash } to the built-in commentstring table so SSH client configuration files can resolve their line comment syntax directly, including when the buffer's commentstring is empty.

OpenSSH's ssh_config(5) specifies # for comments. This uses the existing hash commentstring and leaves block comments unsupported.

Validation: headless Neovim 0.11.5 with no SSH Tree-sitter parser and an empty buffer commentstring; checked built-in syntax lookup, compound filetype fallback, gcc and 3gcc comment/uncomment round trips, and indentation preservation. git diff --check also passes.

Copilot AI balanced review requested due to automatic review settings October 16, 2026 08:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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