]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0562: filetype: SGF files are not recognized v9.2.0562
authorBorys Lykah <lykahb@fastmail.com>
Fri, 29 May 2026 19:23:27 +0000 (19:23 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 29 May 2026 19:23:27 +0000 (19:23 +0000)
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 <lykahb@fastmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/ft.vim
src/testdir/test_filetype.vim
src/version.c

index c6fbd07d35ce2f42edba453624e4b720864693b0..f59d95af49593ae19f8892a71024ea4070a9e345 100644 (file)
@@ -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
index f4fd2002a1e45be4646eac2a9d87bfd71e2aa42e..8ba27d5e1c6f9cf683cbefe2c90ba3aefe7b3f55 100644 (file)
@@ -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',
index d7e0f590fca7f7ee155ff468c2b6602ad5c13d9c..179b90e7007a67d8bdf5925d93371374f32b70eb 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    562,
 /**/
     561,
 /**/