mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.1.0840: filetype: idris2 files are not recognized
Problem: filetype: idris2 files are not recognized
Solution: detect '*.idr' files as idris2, '*.lidr' files as lidris2
and '*.ipkg' files as ipkg filetype (Serhii Khoma)
closes: vim/vim#15987
c04bc64ba6
Co-authored-by: Serhii Khoma <srghma@gmail.com>
This commit is contained in:
parent
baf74ef975
commit
65b9499e4a
@ -588,6 +588,7 @@ local extension = {
|
||||
ibi = 'ibasic',
|
||||
icn = 'icon',
|
||||
idl = detect.idl,
|
||||
idr = 'idris2',
|
||||
inc = detect.inc,
|
||||
inf = 'inform',
|
||||
INF = 'inform',
|
||||
@ -595,6 +596,7 @@ local extension = {
|
||||
inko = 'inko',
|
||||
inp = detect.inp,
|
||||
ms = detect_seq(detect.nroff, 'xmath'),
|
||||
ipkg = 'ipkg',
|
||||
iss = 'iss',
|
||||
mst = 'ist',
|
||||
ist = 'ist',
|
||||
@ -674,6 +676,7 @@ local extension = {
|
||||
['l++'] = 'lex',
|
||||
l = 'lex',
|
||||
lhs = 'lhaskell',
|
||||
lidr = 'lidris2',
|
||||
ll = 'lifelines',
|
||||
ly = 'lilypond',
|
||||
ily = 'lilypond',
|
||||
|
@ -358,12 +358,14 @@ func s:GetFilenameChecks() abort
|
||||
\ 'ibasic': ['file.iba', 'file.ibi'],
|
||||
\ 'icemenu': ['/.icewm/menu', 'any/.icewm/menu'],
|
||||
\ 'icon': ['file.icn'],
|
||||
\ 'idris2': ['file.idr'],
|
||||
\ 'indent': ['.indent.pro', 'indentrc'],
|
||||
\ 'inform': ['file.inf', 'file.INF'],
|
||||
\ 'initng': ['/etc/initng/any/file.i', 'file.ii', 'any/etc/initng/any/file.i'],
|
||||
\ 'inittab': ['inittab'],
|
||||
\ 'inko': ['file.inko'],
|
||||
\ 'ipfilter': ['ipf.conf', 'ipf6.conf', 'ipf.rules'],
|
||||
\ 'ipkg': ['file.ipkg'],
|
||||
\ 'iss': ['file.iss'],
|
||||
\ 'ist': ['file.ist', 'file.mst'],
|
||||
\ 'j': ['file.ijs'],
|
||||
@ -411,6 +413,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'lftp': ['lftp.conf', '.lftprc', 'anylftp/rc', 'lftp/rc', 'some-lftp/rc'],
|
||||
\ 'lhaskell': ['file.lhs'],
|
||||
\ 'libao': ['/etc/libao.conf', '/.libao', 'any/.libao', 'any/etc/libao.conf'],
|
||||
\ 'lidris2': ['file.lidr'],
|
||||
\ 'lifelines': ['file.ll'],
|
||||
\ 'lilo': ['lilo.conf', 'lilo.conf-file'],
|
||||
\ 'lilypond': ['file.ly', 'file.ily'],
|
||||
|
Loading…
Reference in New Issue
Block a user