diff options
author | PowerUser64 <blake@blakenorth.net> | 2024-06-19 20:32:11 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-06-19 20:32:11 +0200 |
commit | aa61b8a9087e9cd999ef07e0d87b60f43d68f2c6 (patch) | |
tree | 9e6fb3b44b2490c788526680c9fed19fe3df6ce3 /runtime/filetype.vim | |
parent | ca7f93e6f351b310c17cfc8f88acf21c839d6116 (diff) |
patch 9.1.0505: filetype: Faust files are not recognizedv9.1.0505
Problem: filetype: Faust files are not recognized
Solution: Detect '*.lib' files as Faust filetype, add detection for
'*.dsp' files (Faust or Make), remove '*.lib' from Cobol
filetype (PowerUser64)
closes: #14894
Signed-off-by: PowerUser64 <blake@blakenorth.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r-- | runtime/filetype.vim | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index a2daf144c7..54bce30e20 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -457,7 +457,7 @@ au BufNewFile,BufRead */.cmus/{autosave,rc,command-history,*.theme} setf cmusrc au BufNewFile,BufRead */cmus/{rc,*.theme} setf cmusrc " Cobol -au BufNewFile,BufRead *.cbl,*.cob,*.lib setf cobol +au BufNewFile,BufRead *.cbl,*.cob setf cobol " cobol or zope form controller python script? (heuristic) au BufNewFile,BufRead *.cpy \ if getline(1) =~ '^##' | @@ -532,6 +532,10 @@ au BufNewFile,BufRead s6-* setf execline " Fontconfig config files au BufNewFile,BufRead fonts.conf setf xml +" Faust +au BufNewFile,BufRead *.lib setf faust +au BufNewFile,BufRead *.dsp call dist#ft#FTdsp() + " Libreoffice config files au BufNewFile,BufRead *.xcu,*.xlb,*.xlc,*.xba setf xml au BufNewFile,BufRead psprint.conf,sofficerc setf dosini @@ -1365,8 +1369,8 @@ au BufNewFile,BufRead */etc/mail/aliases,*/etc/aliases setf mailaliases au BufNewFile,BufRead .mailcap,mailcap setf mailcap " Makefile -au BufNewFile,BufRead *[mM]akefile,*.mk,*.mak,*.dsp setf make -au BufNewFile,BufRead Kbuild setf make +au BufNewFile,BufRead *[mM]akefile,*.mk,*.mak setf make +au BufNewFile,BufRead Kbuild setf make " MakeIndex au BufNewFile,BufRead *.ist,*.mst setf ist |