diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-23 17:15:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-23 17:15:38 -0400 |
commit | 0a653f7ab98dfc05bf0532b9f81bc19377031900 (patch) | |
tree | 0a47874ffe9e76e31b49908ad76df4ebf5f15ec6 | |
parent | 9d8a18aa563fd99cd53a40f28a43e4d913c8c4bc (diff) | |
download | rneovim-0a653f7ab98dfc05bf0532b9f81bc19377031900.tar.gz rneovim-0a653f7ab98dfc05bf0532b9f81bc19377031900.tar.bz2 rneovim-0a653f7ab98dfc05bf0532b9f81bc19377031900.zip |
vim-patch:8.2.2879: file extension .hsig not recognized (#14628)
Problem: File extension .hsig not recognized.
Solution: Use Haskell filetype for .hsig files. (Marcin Szamotulski,
closes vim/vim#8236)
https://github.com/vim/vim/commit/f5409dbf66f4e4a0461d3f2079c1bffacbf12392
-rw-r--r-- | runtime/filetype.vim | 2 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 474a447284..ed70ac5ce8 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -714,7 +714,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/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 056b953d0b..09fdbf4e20 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/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'], |