summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-24 20:13:26 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-24 20:13:26 +0100
commita09bee322e605c8a076fa23c3d3259495a1129d2 (patch)
treec4a6eaf3c56e212b50268170ec710e40dcb07b2b /runtime
parentc9f8b849b6de9661e543d0d1431e233725dd956f (diff)
patch 8.2.2041: haskell filetype not optimally recognizedv8.2.2041
Problem: Haskell filetype not optimally recognized. Solution: Recognize all *.hsc files as Haskell. (Marcin Szamotulski, closes #7354)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/filetype.vim8
1 files changed, 1 insertions, 7 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 35b73f9292..3073c9a6b2 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -697,15 +697,9 @@ au BufNewFile,BufRead *.haml setf haml
" Hamster Classic | Playground files
au BufNewFile,BufRead *.hsm setf hamster
-au BufNewFile,BufRead *.hsc
- \ if match(join(getline(1,10), "\n"), '\%(^\|\n\)\s*\%({-#\_s*LANGUAGE\>\|\<module\>\)') != -1 |
- \ setf haskell |
- \ else |
- \ setf hamster |
- \ endif
" Haskell
-au BufNewFile,BufRead *.hs,*.hs-boot setf haskell
+au BufNewFile,BufRead *.hs,*.hsc,*.hs-boot setf haskell
au BufNewFile,BufRead *.lhs setf lhaskell
au BufNewFile,BufRead *.chs setf chaskell
au BufNewFile,BufRead cabal.project setf cabalproject