From: Marcin Szamotulski Date: Sun, 23 May 2021 09:18:50 +0000 (+0200) Subject: patch 8.2.2879: file extension .hsig not recognized X-Git-Tag: v8.2.2879 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5409dbf66f4e4a0461d3f2079c1bffacbf12392;p=vim patch 8.2.2879: file extension .hsig not recognized Problem: File extension .hsig not recognized. Solution: Use Haskell filetype for .hsig files. (Marcin Szamotulski, closes #8236) --- diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 3b7d60412..b1eb2ecbe 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 2a1ce222f..1b07b0e61 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -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'], diff --git a/src/version.c b/src/version.c index 0223ae2a4..796899be3 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2879, /**/ 2878, /**/