vim-patch:9.0.0005: hare files are not recognized (#19151)

Problem:    Hare files are not recognized.
Solution:   Add a filetype pattern. (Hugo Osvaldo Barrera, closes vim/vim#10630)
040674129f
This commit is contained in:
Christian Clason 2022-06-29 16:21:04 +02:00 committed by GitHub
parent 8ea09fc908
commit ba583f8206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -785,6 +785,9 @@ au BufNewFile,BufRead *.hsm setf hamster
" Handlebars " Handlebars
au BufNewFile,BufRead *.hbs setf handlebars au BufNewFile,BufRead *.hbs setf handlebars
" Hare
au BufNewFile,BufRead *.ha setf hare
" Haskell " Haskell
au BufNewFile,BufRead *.hs,*.hsc,*.hs-boot,*.hsig setf haskell au BufNewFile,BufRead *.hs,*.hsc,*.hs-boot,*.hsig setf haskell
au BufNewFile,BufRead *.lhs setf lhaskell au BufNewFile,BufRead *.lhs setf lhaskell

View File

@ -435,6 +435,7 @@ local extension = {
haml = 'haml', haml = 'haml',
hsm = 'hamster', hsm = 'hamster',
hbs = 'handlebars', hbs = 'handlebars',
ha = 'hare',
['hs-boot'] = 'haskell', ['hs-boot'] = 'haskell',
hsig = 'haskell', hsig = 'haskell',
hsc = 'haskell', hsc = 'haskell',

View File

@ -234,6 +234,7 @@ let s:filename_checks = {
\ 'haml': ['file.haml'], \ 'haml': ['file.haml'],
\ 'hamster': ['file.hsm'], \ 'hamster': ['file.hsm'],
\ 'handlebars': ['file.hbs'], \ 'handlebars': ['file.hbs'],
\ 'hare': ['file.ha'],
\ 'haskell': ['file.hs', 'file.hsc', 'file.hs-boot', 'file.hsig'], \ 'haskell': ['file.hs', 'file.hsc', 'file.hs-boot', 'file.hsig'],
\ 'haste': ['file.ht'], \ 'haste': ['file.ht'],
\ 'hastepreproc': ['file.htpp'], \ 'hastepreproc': ['file.htpp'],