Skip to content

Commit b084b8f

Browse files
folliehiyukichrisbra
authored andcommitted
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 <folliekazetani@protonmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 88f3ac3 commit b084b8f

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

runtime/autoload/dist/ft.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3011,6 +3011,7 @@ const ft_from_ext = {
30113011
"usd": "usd",
30123012
# Rofi stylesheet
30133013
"rasi": "rasi",
3014+
"rasinc": "rasi",
30143015
# Zsh module
30153016
# mdd: https://github.com/zsh-users/zsh/blob/57248b88830ce56adc243a40c7773fb3825cab34/Etc/zsh-development-guide#L285-L288
30163017
# mdh, pro: https://github.com/zsh-users/zsh/blob/57248b88830ce56adc243a40c7773fb3825cab34/Etc/zsh-development-guide#L268-L271

src/testdir/test_filetype.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ def s:GetFilenameChecks(): dict<list<string>>
674674
raku: ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'],
675675
raml: ['file.raml'],
676676
rapid: ['file.sysx', 'file.Sysx', 'file.SysX', 'file.SYSx', 'file.SYSX', 'file.modx', 'file.Modx', 'file.ModX', 'file.MODx', 'file.MODX'],
677-
rasi: ['file.rasi'],
677+
rasi: ['file.rasi', 'file.rasinc'],
678678
ratpoison: ['.ratpoisonrc', 'ratpoisonrc'],
679679
rbs: ['file.rbs'],
680680
rc: ['file.rc', 'file.rch'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
2060,
737739
/**/
738740
2059,
739741
/**/

0 commit comments

Comments
 (0)