runtime(sshconfig): update syntax script and add syntax test
Commit:
https://github.com/vim/vim/commit/607da3321233e46269e98f0d9d1a766056054e54
Author: Eisuke Kawashima <
e-k...@users.noreply.github.com>
Date: Mon Sep 28 18:21:14 2026 +0000
runtime(sshconfig): update syntax script and add syntax test
related:
https://github.com/vim/vim/issues/21387
Signed-off-by: Eisuke Kawashima <
e-k...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/syntax/sshconfig.vim b/runtime/syntax/sshconfig.vim
index 423930493..27633714a 100644
--- a/runtime/syntax/sshconfig.vim
+++ b/runtime/syntax/sshconfig.vim
@@ -11,6 +11,7 @@
" 2026 Sep 19 by Vim project: Add UseKeychain keyword #21339
" 2026 Sep 27 by Vim project: update secure keywords #21376
" 2026 Sep 28 by Vim project: fix typo #21390
+" 2026 Sep 28 by Vim project: update syntax file #21387
"
" Setup
@@ -19,7 +20,7 @@ if exists("b:current_syntax")
finish
endif
-setlocal iskeyword=_,-,a-z,A-Z,48-57
+syn iskeyword _,-,a-z,A-Z,48-57
" case on
diff --git a/runtime/syntax/testdir/dumps/sshconfig_00.dump b/runtime/syntax/testdir/dumps/sshconfig_00.dump
new file mode 100644
index 000000000..0c8c216d8
--- /dev/null
+++ b/runtime/syntax/testdir/dumps/sshconfig_00.dump
@@ -0,0 +1,20 @@
+>#+0#0000e05#ffffff0| |v|i|:|f|t|=|s@1|h|c|o|n|f|i|g| +0#0000000&@57
+|I+0#af5f00255&|n|c|l|u|d|e| +0#0000000&|~|/|.|s@1|h|/|*+0#e000e06&|.+0#0000000&|c|o|n|f| @53
+@75
+|H+0#00e0003&|o|s|t| +0#0000000&|g+0#e000002&|i|t|h|u|b|.|c|o|m| |g|i|s|t|.|g|i|t|h|u|b|.|c|o|m| +0#0000000&@43
+@8|U+0#af5f00255&|s|e|r| +0#0000000&|g|i|t| @58
+@8|I+0#af5f00255&|d|e|n|t|i|t|i|e|s|O|n|l|y| +0#0000000&|y+0#e000002&|e|s| +0#0000000&@48
+@75
+|H+0#00e0003&|o|s|t| +0#0000000&|s+0#e000002&|e|r|v|e|r| +0#0000000&@63
+@8|H+0#af5f00255&|o|s|t|n|a|m|e| +0#0000000&|1+0#e000002&|9|2|.|1|6|8|.|1|0|.|1| +0#0000000&@45
+@8|U+0#af5f00255&|s|e|r| +0#0000000&|a|l|i|c|e| @56
+@8|P+0#af5f00255&|o|r|t| +0#0000000&|2+0#e000002&@4| +0#0000000&@56
+@8|P+0#af5f00255&|r|o|x|y|C|o|m@1|a|n|d| +0#0000000&|s@1|h| |-|W| |%+0#00e0e07&|h|:+0#0000000&|%+0#00e0e07&|p| +0#0000000&|1+0#e000002&|7|2|.|2|4|.+0#0000000&|0+0#e000002&|.+0#0000000&|1+0#e000002&| +0#0000000&@30
+@75
+|H+0#00e0003&|o|s|t| +0#0000000&|*+0#e000e06&| +0#0000000&@68
+@8|C+0#af5f00255&|o|n@1|e|c|t|T|i|m|e|o|u|t| +0#0000000&|0+0#e000002&| +0#0000000&@50
+|~+0#4040ff13&| @73
+|~| @73
+|~| @73
+|~| @73
+| +0#0000000&@56|1|,|1| @10|A|l@1|
diff --git a/runtime/syntax/testdir/input/sshconfig.conf b/runtime/syntax/testdir/input/sshconfig.conf
new file mode 100644
index 000000000..2f547ddb3
--- /dev/null
+++ b/runtime/syntax/testdir/input/sshconfig.conf
@@ -0,0 +1,15 @@
+# vi:ft=sshconfig
+Include ~/.ssh/*.conf
+
+Host
github.com gist.github.com
+ User git
+ IdentitiesOnly yes
+
+Host server
+ Hostname 192.168.10.1
+ User alice
+ Port 22222
+ ProxyCommand ssh -W %h:%p 172.24.0.1
+
+Host *
+ ConnectTimeout 0