Lutz Eymers wrote:

> Bram informed me about the discussion, if the phtml.vim syntax file
> should/could be removed and ask me, being the maintainer, about my
> opinion.
> 
> Dave wrote:
> 
> > Vim presently has one syntax file for PHP 3 and up, and a separate one
> > for PHP 2.  This separation feels odd to me, the effect is that opening
> > a PHP 5 ".phtml" file gives you partial highlighting.  I would suggest a
> > filetype.vim change from:
> >
> >      " Php, php3, php4, etc.
> >      au BufNewFile,BufRead *.php,*.php\d            setf php
> >
> >      " Phtml
> >      au BufNewFile,BufRead *.phtml                  setf phtml
> >
> > ... to:
> >
> >
> >     " Php, php3, php4, etc.
> >     au BufNewFile,BufRead *.php,*.phtml,*.php\d             setf php
> 
> I think it's ok removing the phtml.vim syntax file. There shoud be no
> need
> for merging anything from the phtml to php sytax file.
> 
> The default extension (e.g. phtm, php or ..) should be a matter of
> taste, i would prefer keeping the file named php.vim

OK, then we would drop the phtml.vim syntax file.  But in case someone
has ":set ft=phtml" we should use php syntax used for phtml.  This
phtml.vim syntax file would do that:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

" Vim syntax file
" PHTML used to be the filetype for PHP 2.0.  Now everything is PHP.

if !exists("b:current_syntax")
  runtime! syntax/php.vim
endif

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

If someone really wants to do something else for phtml he can create a
phtml.vim syntax file in his own Vim startup directory.

-- 
>From "know your smileys":
 :-*    A big kiss!

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui