vim-patch:9.1.2021: filetype: fluent files are not recognized (#37117)

Problem:  filetype: fluent files are not recognized
Solution: Detect *.ftl files as fluent filetype (ners)

References:
- https://projectfluent.org/

closes: vim/vim#19011

b91b30643a

Co-authored-by: ners <ners@gmx.ch>
This commit is contained in:
zeertzjq
2025-12-27 09:35:19 +08:00
committed by GitHub
parent 7b5276b382
commit c11153b320
2 changed files with 2 additions and 0 deletions

View File

@@ -479,6 +479,7 @@ local extension = {
fir = 'firrtl',
fish = 'fish',
flix = 'flix',
ftl = 'fluent',
focexec = 'focexec',
fex = 'focexec',
ft = 'forth',

View File

@@ -298,6 +298,7 @@ func s:GetFilenameChecks() abort
\ 'firrtl': ['file.fir'],
\ 'fish': ['file.fish'],
\ 'flix': ['file.flix'],
\ 'fluent': ['file.ftl'],
\ 'focexec': ['file.fex', 'file.focexec'],
\ 'form': ['file.frm'],
\ 'forth': ['file.ft', 'file.fth', 'file.4th'],