forked from aniani/vim
patch 8.2.2041: haskell filetype not optimally recognized
Problem: Haskell filetype not optimally recognized. Solution: Recognize all *.hsc files as Haskell. (Marcin Szamotulski, closes #7354)
This commit is contained in:
@@ -697,15 +697,9 @@ au BufNewFile,BufRead *.haml setf haml
|
|||||||
|
|
||||||
" Hamster Classic | Playground files
|
" Hamster Classic | Playground files
|
||||||
au BufNewFile,BufRead *.hsm setf hamster
|
au BufNewFile,BufRead *.hsm setf hamster
|
||||||
au BufNewFile,BufRead *.hsc
|
|
||||||
\ if match(join(getline(1,10), "\n"), '\%(^\|\n\)\s*\%({-#\_s*LANGUAGE\>\|\<module\>\)') != -1 |
|
|
||||||
\ setf haskell |
|
|
||||||
\ else |
|
|
||||||
\ setf hamster |
|
|
||||||
\ endif
|
|
||||||
|
|
||||||
" Haskell
|
" Haskell
|
||||||
au BufNewFile,BufRead *.hs,*.hs-boot setf haskell
|
au BufNewFile,BufRead *.hs,*.hsc,*.hs-boot setf haskell
|
||||||
au BufNewFile,BufRead *.lhs setf lhaskell
|
au BufNewFile,BufRead *.lhs setf lhaskell
|
||||||
au BufNewFile,BufRead *.chs setf chaskell
|
au BufNewFile,BufRead *.chs setf chaskell
|
||||||
au BufNewFile,BufRead cabal.project setf cabalproject
|
au BufNewFile,BufRead cabal.project setf cabalproject
|
||||||
|
@@ -204,8 +204,8 @@ let s:filename_checks = {
|
|||||||
\ 'gsp': ['file.gsp'],
|
\ 'gsp': ['file.gsp'],
|
||||||
\ 'gtkrc': ['.gtkrc', 'gtkrc', '.gtkrc-file', 'gtkrc-file'],
|
\ 'gtkrc': ['.gtkrc', 'gtkrc', '.gtkrc-file', 'gtkrc-file'],
|
||||||
\ 'haml': ['file.haml'],
|
\ 'haml': ['file.haml'],
|
||||||
\ 'hamster': ['file.hsc', 'file.hsm'],
|
\ 'hamster': ['file.hsm'],
|
||||||
\ 'haskell': ['file.hs', 'file.hs-boot'],
|
\ 'haskell': ['file.hs', 'file.hsc', 'file.hs-boot'],
|
||||||
\ 'haste': ['file.ht'],
|
\ 'haste': ['file.ht'],
|
||||||
\ 'hastepreproc': ['file.htpp'],
|
\ 'hastepreproc': ['file.htpp'],
|
||||||
\ 'hb': ['file.hb'],
|
\ 'hb': ['file.hb'],
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2041,
|
||||||
/**/
|
/**/
|
||||||
2040,
|
2040,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user