patch 9.2.0562: filetype: SGF files are not recognized

Commit: 
https://github.com/vim/vim/commit/dda45ba88fef901ac524c158eaeb1ce799dde273
Author: Borys Lykah <[email protected]>
Date:   Fri May 29 19:23:27 2026 +0000

    patch 9.2.0562: filetype: SGF files are not recognized
    
    Problem:  filetype: SGF files are not recognized
    Solution: Detect *.sgf as sgf filetype
              (Borys Lykah)
    
    Reference:
    https://www.red-bean.com/sgf/index.html
    
    closes: #20349
    
    Signed-off-by: Borys Lykah <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index c6fbd07d3..f59d95af4 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -2735,6 +2735,8 @@ const ft_from_ext = {
   "mill": "scala",
   # SBT - Scala Build Tool
   "sbt": "sbt",
+  # SGF, Smart Game Format
+  "sgf": "sgf",
   # Slang Shading Language
   "slang": "shaderslang",
   # Slint
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index f4fd2002a..8ba27d5e1 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -741,6 +741,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     services: ['/etc/services', 'any/etc/services'],
     setserial: ['/etc/serial.conf', 'any/etc/serial.conf'],
     sexplib: ['file.sexp'],
+    sgf: ['file.sgf'],
     sh: ['.bashrc', '.bash_profile', '.bash-profile', '.bash_logout', 
'.bash-logout', '.bash_aliases', '.bash-aliases', '.bash_history', 
'.bash-history',
          '/tmp/bash-fc-3Ozjlw', '/tmp/bash-fc.3Ozjlw', 'PKGBUILD', 
'file.bash', '/usr/share/doc/bash-completion/filter.sh',
          '/etc/udev/cdsymlinks.conf', 'any/etc/udev/cdsymlinks.conf', 
'file.bats', '.ash_history', 'any/etc/neofetch/config.conf', '.xprofile',
diff --git a/src/version.c b/src/version.c
index d7e0f590f..179b90e70 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    562,
 /**/
     561,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1wT2uC-00D8Yv-Rc%40256bit.org.

Raspunde prin e-mail lui