changeset 29324:71f2af5d8447 v9.0.0005

patch 9.0.0005: hare files are not recognized Commit: https://github.com/vim/vim/commit/040674129f3382822eeb7b590380efa5228124a8 Author: Hugo Osvaldo Barrera <hugo@barrera.io> Date: Wed Jun 29 13:48:49 2022 +0100 patch 9.0.0005: hare files are not recognized Problem: Hare files are not recognized. Solution: Add a filetype pattern. (Hugo Osvaldo Barrera, closes https://github.com/vim/vim/issues/10630)
author Bram Moolenaar <Bram@vim.org>
date Wed, 29 Jun 2022 15:00:04 +0200
parents e6d579d0eb09
children ef612068880a
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -789,6 +789,9 @@ au BufNewFile,BufRead *.hsm			setf hamst
 " Handlebars
 au BufNewFile,BufRead *.hbs			setf handlebars
 
+" Hare
+au BufNewFile,BufRead *.ha			setf hare
+
 " Haskell
 au BufNewFile,BufRead *.hs,*.hsc,*.hs-boot,*.hsig setf haskell
 au BufNewFile,BufRead *.lhs			setf lhaskell
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -234,6 +234,7 @@ let s:filename_checks = {
     \ 'haml': ['file.haml'],
     \ 'hamster': ['file.hsm'],
     \ 'handlebars': ['file.hbs'],
+    \ 'hare': ['file.ha'],
     \ 'haskell': ['file.hs', 'file.hsc', 'file.hs-boot', 'file.hsig'],
     \ 'haste': ['file.ht'],
     \ 'hastepreproc': ['file.htpp'],
--- a/src/version.c
+++ b/src/version.c
@@ -736,6 +736,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    5,
+/**/
     4,
 /**/
     3,