Skip to content

Commit 0406741

Browse files
Hugo Osvaldo Barrerabrammool
authored andcommitted
patch 9.0.0005: hare files are not recognized
Problem: Hare files are not recognized. Solution: Add a filetype pattern. (Hugo Osvaldo Barrera, closes #10630)
1 parent d14bb1a commit 0406741

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

runtime/filetype.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,9 @@ au BufNewFile,BufRead *.hsm setf hamster
789789
" Handlebars
790790
au BufNewFile,BufRead *.hbs setf handlebars
791791

792+
" Hare
793+
au BufNewFile,BufRead *.ha setf hare
794+
792795
" Haskell
793796
au BufNewFile,BufRead *.hs,*.hsc,*.hs-boot,*.hsig setf haskell
794797
au BufNewFile,BufRead *.lhs setf lhaskell

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ let s:filename_checks = {
234234
\ 'haml': ['file.haml'],
235235
\ 'hamster': ['file.hsm'],
236236
\ 'handlebars': ['file.hbs'],
237+
\ 'hare': ['file.ha'],
237238
\ 'haskell': ['file.hs', 'file.hsc', 'file.hs-boot', 'file.hsig'],
238239
\ 'haste': ['file.ht'],
239240
\ 'hastepreproc': ['file.htpp'],

src/version.c

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

736736
static int included_patches[] =
737737
{ /* Add new patch number below this line */
738+
/**/
739+
5,
738740
/**/
739741
4,
740742
/**/

0 commit comments

Comments
 (0)