]> granicus.if.org Git - vim/commitdiff
patch 8.2.2879: file extension .hsig not recognized v8.2.2879
authorMarcin Szamotulski <profunctor@pm.me>
Sun, 23 May 2021 09:18:50 +0000 (11:18 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 23 May 2021 09:18:50 +0000 (11:18 +0200)
Problem:    File extension .hsig not recognized.
Solution:   Use Haskell filetype for .hsig files. (Marcin Szamotulski,
            closes #8236)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 3b7d60412d7c6c15e79fe088a3b081b8b93df9cd..b1eb2ecbea9f5220d673f14710c20be443fea664 100644 (file)
@@ -718,7 +718,7 @@ au BufNewFile,BufRead *.haml                        setf haml
 au BufNewFile,BufRead *.hsm                    setf hamster
 
 " Haskell
-au BufNewFile,BufRead *.hs,*.hsc,*.hs-boot     setf haskell
+au BufNewFile,BufRead *.hs,*.hsc,*.hs-boot,*.hsig setf haskell
 au BufNewFile,BufRead *.lhs                    setf lhaskell
 au BufNewFile,BufRead *.chs                    setf chaskell
 au BufNewFile,BufRead cabal.project            setf cabalproject
index 2a1ce222fa2ed48cd752902f60221743f4c44bc6..1b07b0e616cdcd05bceb9c43ac16f52c66a59c84 100644 (file)
@@ -211,7 +211,7 @@ let s:filename_checks = {
     \ 'gtkrc': ['.gtkrc', 'gtkrc', '.gtkrc-file', 'gtkrc-file'],
     \ 'haml': ['file.haml'],
     \ 'hamster': ['file.hsm'],
-    \ 'haskell': ['file.hs', 'file.hsc', 'file.hs-boot'],
+    \ 'haskell': ['file.hs', 'file.hsc', 'file.hs-boot', 'file.hsig'],
     \ 'haste': ['file.ht'],
     \ 'hastepreproc': ['file.htpp'],
     \ 'hb': ['file.hb'],
index 0223ae2a4d26ca8abc7c3d2196f438b6924842ab..796899be3515adf5997389d7fcea6dcaad8a2fb2 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2879,
 /**/
     2878,
 /**/