Hi Bram,

I opened a PR 

https://github.com/vim/vim/pull/7339
which updates `filetype.vim` and adds `syntax/cabalconfig.vim` and 
`syntax/cabalproject.vim` files.

The updated `syntax/cabal.vim` file is not included in that PR.

Best regards,
Marcin


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Saturday, November 21st, 2020 at 15:57, Bram Moolenaar <[email protected]> 
wrote:

> Marcin Szamotulski wrote:
> 

> > Hi Bram,
> > 

> > I attach updated cabal syntax file.
> 

> Thanks.
> 

> The header of cabalconfig.vim says "Cabal Project".
> 

> > I would also include support for two additional filetypes:
> > 

> > -   cabal config files, recognized by:
> > 

> >     au BufRead,BufNewFile $HOME/.cabal/config setf cabalconfig
> >     au BufRead,BufNewFile cabal.config setf cabalconfig
> >     

> > 

> > -   cabal project files, recognized by:
> > 

> >     au BufRead,BufNewFile cabal.project setf cabalproject
> >     au BufRead,BufNewFile cabal.project.* setf cabalproject
> >     

> 

> Please suggest a patch for filetype.vim, and also add a test line in
> 

> src/testdir/test_filetype.vim
> 

> > Haskell is also using `.hsc` extension, which is already assigned to
> > 

> > `hamster` file type. Is there a mechanism which allows to resolve
> > 

> > such conflicts. If not we could add a passage to the haskell
> > 

> > documentation in `syntax.txt` file.
> 

> You can inspect the first few lines of the file, if that helps to
> 

> recognize the filetype. If not, then the user has to specify it. You
> 

> can check filetype.vim for examples.
> 

> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 

> FIRST HEAD: All right! All right! We'll kill him first and then have tea and
> 

> biscuits.
> 

> "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
> 

> /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
> 

> /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> 

> \\\ an exciting new programming language -- http://www.Zimbu.org ///
> 

> \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/PyPNcs1RdAWvcGbb5dUximz9erv-3xSC9mh4mqTsFH6fQ6XH_pYDKmwVqqlef4aBv66ozaKd43EL9eWs5vrWjbU58SBNQyZlyJodQ-c8xmU%3D%40coot.me.

Attachment: signature.asc
Description: OpenPGP digital signature

Raspunde prin e-mail lui