kkruecke wrote:
> In gvim 7.2 (on Windows Vista, using the default colorscheme), I found
> a syntax highlighting bug.  I commented out a block of PHP using the
> HTML comment tags of "<!--" and "-->". But the PHP code was not grayed
> out as it is in other editors (like Topstyle).
> 
> <table width="100%" cellpadding="2"> <tr><td>
> <!--
>  <?php echo "This should be grayed out, but retains syntax
> highlighting"; ?>
> -->
>    <?php    echo "This has proper syntax highlighting";      ?>
>    </td></tr></table>
> 
> regards,
> Kurt

The PHP parser doesn't know or care about HTML or XML comments, i.e. the 
'<!--' and '-->' strings are output to PHP, nothing more. So the syntax 
highlighting shown by Vim is correct and apparently the Topstyle editor 
does the wrong thing here.


  - Peter Odding

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

Raspunde prin e-mail lui