Skip to content

Ticket #5112: highlight OpenSSH ssh_config / sshd_config files - #5150

Closed
valleyco wants to merge 2 commits into
MidnightCommander:masterfrom
valleyco:5112_ssh_config_syntax
Closed

Ticket #5112: highlight OpenSSH ssh_config / sshd_config files#5150
valleyco wants to merge 2 commits into
MidnightCommander:masterfrom
valleyco:5112_ssh_config_syntax

Conversation

@valleyco

@valleyco valleyco commented Sep 2, 2026

Copy link
Copy Markdown

Proposed changes

Add a dedicated sshd.syntax highlighter for OpenSSH client/server config files (ssh_config, sshd_config, and dotted backups such as sshd_config.bak), with keywords drawn from ssh_config(5) / sshd_config(5).

This follows the preferred approach discussed in #5112 (dedicated syntax file rather than only mapping to generic conf.syntax).

Checklist

  • I have referenced the issue(s) resolved by this PR (if any)
  • I have signed-off my contribution with git commit --amend -s
  • Lint and unit tests pass locally with my changes (make indent && make check)
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation (if appropriate)

…nfig files

Map extensionless OpenSSH client/server config filenames to the existing
conf.syntax highlighter.

Signed-off-by: David Levy <levydav@gmail.com>
@github-actions github-actions Bot added needs triage Needs triage by maintainers prio: medium Has the potential to affect progress labels Sep 2, 2026
@github-actions github-actions Bot added this to the Future Releases milestone Sep 2, 2026
…ghlighting

Replace the conf.syntax one-liner with sshd.syntax covering keywords from
ssh_config(5) and sshd_config(5), as preferred for the built-in highlighter.

Signed-off-by: David Levy <levydav@gmail.com>
@valleyco valleyco closed this Sep 7, 2026
@github-actions github-actions Bot removed this from the Future Releases milestone Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs triage Needs triage by maintainers prio: medium Has the potential to affect progress

Development

Successfully merging this pull request may close these issues.

syntax: default highlighting for OpenSSH client/server config (ssh_config, sshd_config)

2 participants