]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2060: filetype: Rasi include files are not recognized v9.1.2060
authorHoang Nguyen <folliekazetani@protonmail.com>
Tue, 6 Jan 2026 14:52:13 +0000 (14:52 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 6 Jan 2026 14:52:13 +0000 (14:52 +0000)
Problem:  filetype: Rasi include files are not recognized
Solution: Detect *.rasinc as rasi filetype (Hoang Nguyen)

Reference:
- https://github.com/davatorium/rofi/blob/next/doc/rofi-theme.5.markdown#file-extension

closes: #19103

Signed-off-by: Hoang Nguyen <folliekazetani@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/ft.vim
src/testdir/test_filetype.vim
src/version.c

index d67f07ad0c1febcb7ab9ac534a03643a326ba59a..7d30e86e55b0288a3f37fc47a39730aeafbc447b 100644 (file)
@@ -3011,6 +3011,7 @@ const ft_from_ext = {
   "usd": "usd",
   # Rofi stylesheet
   "rasi": "rasi",
+  "rasinc": "rasi",
   # Zsh module
   # mdd: https://github.com/zsh-users/zsh/blob/57248b88830ce56adc243a40c7773fb3825cab34/Etc/zsh-development-guide#L285-L288
   # mdh, pro: https://github.com/zsh-users/zsh/blob/57248b88830ce56adc243a40c7773fb3825cab34/Etc/zsh-development-guide#L268-L271
index 23df47680ab201c4da34dd8bc1ecb5340ba280cc..5d94769d841022f79001f4d70956d77772bb6e8b 100644 (file)
@@ -674,7 +674,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     raku: ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'],
     raml: ['file.raml'],
     rapid: ['file.sysx', 'file.Sysx', 'file.SysX', 'file.SYSx', 'file.SYSX', 'file.modx', 'file.Modx', 'file.ModX', 'file.MODx', 'file.MODX'],
-    rasi: ['file.rasi'],
+    rasi: ['file.rasi', 'file.rasinc'],
     ratpoison: ['.ratpoisonrc', 'ratpoisonrc'],
     rbs: ['file.rbs'],
     rc: ['file.rc', 'file.rch'],
index 82784754700672460cac9d3023c070e8d36e4afa..dd2b100a5897fb9fcab649840eaea9e2aa273e52 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2060,
 /**/
     2059,
 /**/