patch 9.0.2063: pacman hooks are detected as conf filetype

Commit: 
https://github.com/vim/vim/commit/7d254dbc2db35badc65668db85f826f605486986
Author: Guido Cella <[email protected]>
Date:   Mon Oct 23 19:27:06 2023 +0200

    patch 9.0.2063: pacman hooks are detected as conf filetype
    
    Problem:  pacman hooks are detected as conf filetype
    Solution: make it consistent to pacman.conf and detect those
              hooks as confini
    
    Because confini has much better syntax highlighting than conf.
    
    For reference, I identified pacman.conf and pacman hooks as dosini in
    https://github.com/vim/vim/pull/6335, then
    https://github.com/vim/vim/pull/10213 changed them to conf, then
    https://github.com/vim/vim/pull/10518 changed pacman.conf to confini but
    forgot to change hooks.
    
    closes: #13399
    
    Signed-off-by: Christian Brabandt <[email protected]>
    Co-authored-by: Guido Cella <[email protected]>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index aa66bead3..567c0a3e9 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1509,7 +1509,7 @@ au BufNewFile,BufRead *.nmconnection                      
setf confini
 " Pacman hooks
 au BufNewFile,BufRead *.hook
        \ if getline(1) == '[Trigger]' |
-       \   setf conf |
+       \   setf confini |
        \ endif
 
 " Pam conf
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 6b049afa9..1df823718 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -1480,12 +1480,12 @@ func Test_hook_file()
 
   call writefile(['[Trigger]', 'this is pacman config'], 'Xfile.hook', 'D')
   split Xfile.hook
-  call assert_equal('conf', &filetype)
+  call assert_equal('confini', &filetype)
   bwipe!
 
   call writefile(['not pacman'], 'Xfile.hook')
   split Xfile.hook
-  call assert_notequal('conf', &filetype)
+  call assert_notequal('confini', &filetype)
   bwipe!
 
   filetype off
diff --git a/src/version.c b/src/version.c
index 67f39f28f..3389927fa 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 */
+/**/
+    2063,
 /**/
     2062,
 /**/

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1quykj-00204T-AT%40256bit.org.

Raspunde prin e-mail lui