Wednesday, August 19, 2009

Re: Syntax for C code embedded within another language

On Aug 19, 11:32 am, Charles Campbell <Charles.E.Campb...@nasa.gov>
wrote:

> * read   :help syntax-include
> *look over syntax/vim.vim and how it includes support for embedded perl  

Perfect. :)

This worked:

:syntax include @cBlock syntax/c.vim
:syntax region cRegion start="^__C__" end="^__END_C__"
contains=@cBlock

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

No comments:

Post a Comment