Mercurial > vim
changeset 24681:1077a2762d06 v8.2.2879
patch 8.2.2879: file extension .hsig not recognized
Commit: https://github.com/vim/vim/commit/f5409dbf66f4e4a0461d3f2079c1bffacbf12392
Author: Marcin Szamotulski <profunctor@pm.me>
Date: Sun May 23 11:18:50 2021 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 23 May 2021 11:30:03 +0200 |
parents | 0072259ad95a |
children | e303bc0bda84 |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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'],