patch 9.1.2060: filetype: Rasi include files are not recognized
Commit:
https://github.com/vim/vim/commit/b084b8f1db40cba2971db3bdb4528770556e7ddc
Author: Hoang Nguyen <[email protected]>
Date: Tue Jan 6 14:52:13 2026 +0000
patch 9.1.2060: filetype: Rasi include files are not recognized
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index d67f07ad0..7d30e86e5 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -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
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 23df47680..5d94769d8 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
diff --git a/src/version.c b/src/version.c
index 827847547..dd2b100a5 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2060,
/**/
2059,
/**/
--
--
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 visit
https://groups.google.com/d/msgid/vim_dev/E1vd8XV-00H4ky-90%40256bit.org.