patch 9.1.0421: filetype: hyprlang files are not recognized

Commit: 
https://github.com/vim/vim/commit/5f1b115afd92544ce64d563da0d8ee9844abb10a
Author: Riley Bruins <ribr...@hotmail.com>
Date:   Sun May 19 11:26:44 2024 +0200

    patch 9.1.0421: filetype: hyprlang files are not recognized
    
    Problem:  filetype: hyprlang files are not recognized
    Solution: recognize 'hypr{land,paper,idle,lock}.conf' files
              as 'hyprlang' filetype, add hyprlang ftplugin
              (Riley Bruins)
    
    closes: #14803
    
    Signed-off-by: Riley Bruins <ribr...@hotmail.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS
index 1fcebe69a..d905618f7 100644
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -155,6 +155,7 @@ runtime/ftplugin/heex.vim           @cvincent
 runtime/ftplugin/hgcommit.vim          @k-takata
 runtime/ftplugin/hog.vim               @wtfbbqhax
 runtime/ftplugin/html.vim              @dkearns
+runtime/ftplugin/hyprlang.vim          @ribru17
 runtime/ftplugin/i3config.vim          @hiqua
 runtime/ftplugin/icon.vim              @dkearns
 runtime/ftplugin/indent.vim            @dkearns
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 3fc2e159d..35c9e2031 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1044,6 +1044,9 @@ au BufRead,BufNewFile *.hurl                      setf 
hurl
 " Hyper Builder
 au BufNewFile,BufRead *.hb                     setf hb
 
+" Hyprlang
+au BufNewFile,BufRead hypr\(land\|paper\|idle\|lock\).conf     setf hyprlang
+
 " Httest
 au BufNewFile,BufRead *.htt,*.htb              setf httest
 
diff --git a/runtime/ftplugin/hyprlang.vim b/runtime/ftplugin/hyprlang.vim
new file mode 100644
index 000000000..5c186c3c5
--- /dev/null
+++ b/runtime/ftplugin/hyprlang.vim
@@ -0,0 +1,13 @@
+" Vim filetype plugin
+" Language:    hyprlang
+" Maintainer:  ribru17 <ribr...@gmail.com>
+" Last Change: 2024 May 18
+
+if exists('b:did_ftplugin')
+  finish
+endif
+let b:did_ftplugin = 1
+
+setl comments=:# commentstring=#\ %s
+
+let b:undo_ftplugin = 'setl com< cms<'
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 9e2253b24..eeca7a106 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -336,6 +336,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     htmlm4: ['file.html.m4'],
     httest: ['file.htt', 'file.htb'],
     hurl: ['file.hurl'],
+    hyprlang: ['hyprlock.conf', 'hyprland.conf', 'hypridle.conf', 
'hyprpaper.conf'],
     i3config: ['/home/user/.i3/config', '/home/user/.config/i3/config', 
'/etc/i3/config', '/etc/xdg/i3/config'],
     ibasic: ['file.iba', 'file.ibi'],
     icemenu: ['/.icewm/menu', 'any/.icewm/menu'],
diff --git a/src/version.c b/src/version.c
index aafbddcd8..df50a4303 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 */
+/**/
+    421,
 /**/
     420,
 /**/

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1s8d6F-00BAlN-Cy%40256bit.org.

Raspunde prin e-mail lui