comparison runtime/filetype.vim @ 22971:f39f960f3ea0 v8.2.2032

patch 8.2.2032: cabalconfig and cabalproject filetypes not recognized Commit: https://github.com/vim/vim/commit/dcbab75db3ba5e812f119e08cda6a02c6b028a14 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 22 15:51:24 2020 +0100 patch 8.2.2032: cabalconfig and cabalproject filetypes not recognized Problem: Cabalconfig and cabalproject filetypes not recognized. Solution: Detect more cabal files. (Marcin Szamotulski, closes https://github.com/vim/vim/issues/7339)
author Bram Moolenaar <Bram@vim.org>
date Sun, 22 Nov 2020 16:00:04 +0100
parents f83e31419f6e
children 7160e85d62ff
comparison
equal deleted inserted replaced
22970:adb0bfdf4be3 22971:f39f960f3ea0
694 694
695 " Haml 695 " Haml
696 au BufNewFile,BufRead *.haml setf haml 696 au BufNewFile,BufRead *.haml setf haml
697 697
698 " Hamster Classic | Playground files 698 " Hamster Classic | Playground files
699 au BufNewFile,BufRead *.hsc,*.hsm setf hamster 699 au BufNewFile,BufRead *.hsm setf hamster
700 au BufNewFile,BufRead *.hsc
701 \ if match(join(getline(1,10), "\n"), '\%(^\|\n\)\s*\%({-#\_s*LANGUAGE\>\|\<module\>\)') != -1 |
702 \ setf haskell |
703 \ else |
704 \ setf hamster |
705 \ endif
700 706
701 " Haskell 707 " Haskell
702 au BufNewFile,BufRead *.hs,*.hs-boot setf haskell 708 au BufNewFile,BufRead *.hs,*.hs-boot setf haskell
703 au BufNewFile,BufRead *.lhs setf lhaskell 709 au BufNewFile,BufRead *.lhs setf lhaskell
704 au BufNewFile,BufRead *.chs setf chaskell 710 au BufNewFile,BufRead *.chs setf chaskell
711 au BufNewFile,BufRead cabal.project setf cabalproject
712 au BufNewFile,BufRead $HOME/.cabal/config setf cabalconfig
713 au BufNewFile,BufRead cabal.config setf cabalconfig
705 714
706 " Haste 715 " Haste
707 au BufNewFile,BufRead *.ht setf haste 716 au BufNewFile,BufRead *.ht setf haste
708 au BufNewFile,BufRead *.htpp setf hastepreproc 717 au BufNewFile,BufRead *.htpp setf hastepreproc
709 718
2035 " Bazaar version control 2044 " Bazaar version control
2036 au BufNewFile,BufRead bzr_log.* setf bzr 2045 au BufNewFile,BufRead bzr_log.* setf bzr
2037 2046
2038 " Bazel build file 2047 " Bazel build file
2039 if !has("fname_case") 2048 if !has("fname_case")
2040 au BufNewFile,BufRead *.BUILD,BUILD setf bzl 2049 au BufNewFile,BufRead *.BUILD,BUILD setf bzl
2041 endif 2050 endif
2042 2051
2043 " BIND zone 2052 " BIND zone
2044 au BufNewFile,BufRead */named/db.*,*/bind/db.* call s:StarSetf('bindzone') 2053 au BufNewFile,BufRead */named/db.*,*/bind/db.* call s:StarSetf('bindzone')
2054
2055 au BufNewFile,BufRead cabal.project.* call s:StarSetf('cabalproject')
2045 2056
2046 " Calendar 2057 " Calendar
2047 au BufNewFile,BufRead */.calendar/*, 2058 au BufNewFile,BufRead */.calendar/*,
2048 \*/share/calendar/*/calendar.*,*/share/calendar/calendar.* 2059 \*/share/calendar/*/calendar.*,*/share/calendar/calendar.*
2049 \ call s:StarSetf('calendar') 2060 \ call s:StarSetf('calendar')