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 <lykahb@fastmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Borys Lykah
2026-05-29 19:23:27 +00:00
committed by Christian Brabandt
parent 61ad44f4af
commit dda45ba88f
3 changed files with 5 additions and 0 deletions
+2
View 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
+1
View 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',
+2
View File
@@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
562,
/**/
561,
/**/