]> granicus.if.org Git - vim/commitdiff
patch 9.0.0005: hare files are not recognized v9.0.0005
authorHugo Osvaldo Barrera <hugo@barrera.io>
Wed, 29 Jun 2022 12:48:49 +0000 (13:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 29 Jun 2022 12:48:49 +0000 (13:48 +0100)
Problem:    Hare files are not recognized.
Solution:   Add a filetype pattern. (Hugo Osvaldo Barrera, closes #10630)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index c9ee28bfbae10d8ef9354927efd541d70d0b7763..6280d32e53d9a0d454c44251715994bd5e448c12 100644 (file)
@@ -789,6 +789,9 @@ au BufNewFile,BufRead *.hsm                 setf hamster
 " 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
index 6c2343b1e22c99ac87f6e253f6917b69a584b21a..545e33f7befbd6e045c15ee39b0595e57e641dc4 100644 (file)
@@ -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'],
index dd99f8575a53eade9835a77c3c5d69d7e24ada30..0e6758f7428c8c012ced9d66b3e2b450bc74cbc4 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5,
 /**/
     4,
 /**/