patch 9.1.1320: filetype: alsoft config files are not recognized Commit: https://github.com/vim/vim/commit/1d96caaa4b195043f84a0c83277b2038af4a7b50 Author: David Mandelberg <da...@mandelberg.org> Date: Fri Apr 18 11:41:44 2025 +0200
patch 9.1.1320: filetype: alsoft config files are not recognized Problem: filetype: alsoft config files are not recognized Solution: detect alsoft config files as dosini filetype (David Mandelberg) References: * code with paths to config: ReadALConfig() in https://github.com/kcat/openal-soft/blob/master/alc/alconfig.cpp * example config: https://github.com/kcat/openal-soft/blob/master/alsoftrc.sample closes: #17140 Signed-off-by: David Mandelberg <da...@mandelberg.org> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/filetype.vim b/runtime/filetype.vim index b976d46d7..c2c639c96 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1780,6 +1780,9 @@ au BufNewFile,BufRead .ondirrc setf ondir " OPAM au BufNewFile,BufRead opam,*.opam,*.opam.template,opam.locked,*.opam.locked setf opam +" OpenAL Soft config files +au BufNewFile,BufRead .alsoftrc,alsoft.conf,alsoft.ini,alsoftrc.sample setf dosini + " OpenFOAM au BufNewFile,BufRead [a-zA-Z0-9]*Dict\(.*\)\=,[a-zA-Z]*Properties\(.*\)\=,*Transport\(.*\),fvSchemes,fvSolution,fvConstrains,fvModels,*/constant/g,*/0\(\.orig\)\=/* call dist#ft#FTfoam() diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index d3342822c..91460cec6 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -239,7 +239,9 @@ def s:GetFilenameChecks(): dict<list<string>> '.coveragerc', '.pypirc', '.gitlint', '.oelint.cfg', 'pylintrc', '.pylintrc', '/home/user/.config/bpython/config', '/home/user/.config/mypy/config', '.wakatime.cfg', '.replyrc', 'psprint.conf', 'sofficerc', 'any/.config/lxqt/globalkeyshortcuts.conf', 'any/.config/screengrab/screengrab.conf', - 'any/.local/share/flatpak/repo/config', '.notmuch-config', '.notmuch-config.myprofile', + 'any/.local/share/flatpak/repo/config', + '.alsoftrc', 'alsoft.conf', 'alsoft.ini', 'alsoftrc.sample', + '.notmuch-config', '.notmuch-config.myprofile', '~/.config/notmuch/myprofile/config'] + WhenConfigHome('$XDG_CONFIG_HOME/notmuch/myprofile/config'), dot: ['file.dot', 'file.gv'], dracula: ['file.drac', 'file.drc', 'file.lvs', 'file.lpe', 'drac.file'], diff --git a/src/version.c b/src/version.c index 952c74201..c25536196 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1320, /**/ 1319, /**/ -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1u5iHO-00AFGw-Qp%40256bit.org.