changeset 31847:a89903efd329 v9.0.1256

patch 9.0.1256: NetworkManager connection files are not recognized Commit: https://github.com/vim/vim/commit/04e4f1d98556e67d7337224b67b71c828410ee0f Author: ObserverOfTime <chronobserver@disroot.org> Date: Sat Jan 28 18:05:40 2023 +0000 patch 9.0.1256: NetworkManager connection files are not recognized Problem: NetworkManager connection files are not recognized. Solution: Add a pattern for NetworkManager connection files. (closes https://github.com/vim/vim/issues/11893)
author Bram Moolenaar <Bram@vim.org>
date Sat, 28 Jan 2023 19:15:03 +0100
parents d16405cfcc8b
children b83cac410fcf
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1399,6 +1399,7 @@ au BufNewFile,BufRead pf.conf				setf pf
 " ini style config files, using # comments
 au BufNewFile,BufRead */etc/pacman.conf,mpv.conf	setf confini
 au BufNewFile,BufRead */.aws/config,*/.aws/credentials	setf confini
+au BufNewFile,BufRead *.nmconnection			setf confini
 
 " Pacman hooks
 au BufNewFile,BufRead *.hook
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -121,7 +121,7 @@ let s:filename_checks = {
     \ 'conaryrecipe': ['file.recipe'],
     \ 'conf': ['auto.master'],
     \ 'config': ['configure.in', 'configure.ac', '/etc/hostname.file', 'any/etc/hostname.file'],
-    \ 'confini': ['/etc/pacman.conf', 'any/etc/pacman.conf', 'mpv.conf', 'any/.aws/config', 'any/.aws/credentials'],
+    \ 'confini': ['/etc/pacman.conf', 'any/etc/pacman.conf', 'mpv.conf', 'any/.aws/config', 'any/.aws/credentials', 'file.nmconnection'],
     \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'],
     \ 'cook': ['file.cook'],
     \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh'],
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1256,
+/**/
     1255,
 /**/
     1254,