Skip to content

Commit f5409db

Browse files
cootbrammool
authored andcommitted
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)
1 parent b777da9 commit f5409db

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

runtime/filetype.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ au BufNewFile,BufRead *.haml setf haml
718718
au BufNewFile,BufRead *.hsm setf hamster
719719

720720
" Haskell
721-
au BufNewFile,BufRead *.hs,*.hsc,*.hs-boot setf haskell
721+
au BufNewFile,BufRead *.hs,*.hsc,*.hs-boot,*.hsig setf haskell
722722
au BufNewFile,BufRead *.lhs setf lhaskell
723723
au BufNewFile,BufRead *.chs setf chaskell
724724
au BufNewFile,BufRead cabal.project setf cabalproject

src/testdir/test_filetype.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ let s:filename_checks = {
211211
\ 'gtkrc': ['.gtkrc', 'gtkrc', '.gtkrc-file', 'gtkrc-file'],
212212
\ 'haml': ['file.haml'],
213213
\ 'hamster': ['file.hsm'],
214-
\ 'haskell': ['file.hs', 'file.hsc', 'file.hs-boot'],
214+
\ 'haskell': ['file.hs', 'file.hsc', 'file.hs-boot', 'file.hsig'],
215215
\ 'haste': ['file.ht'],
216216
\ 'hastepreproc': ['file.htpp'],
217217
\ 'hb': ['file.hb'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2879,
753755
/**/
754756
2878,
755757
/**/

0 commit comments

Comments
 (0)