On Tue, Jul 8, 2008 at 8:14 PM, Ben Fritz <[EMAIL PROTECTED]> wrote: > > Consider the following: > > perl << EOF > some code that contains Vim keywords > EOF > > If has("perl") is true, no problem! A syntax region is defined that > does not include any Vim groups, and the perl syntax is included > within the region. > > If has("perl") is false, however, the code within perl << EOF to EOF > will be (incorrectly?) highlighted as if it were Vim code. > > If has("perl") is false, Vim still tries to run the code as Perl code, > but will raise an error. >
Therefore, I think that a containing region should be defined even if > has("perl") is false. However, if has("perl") is false, either the > entire region or at least the "perl << EOF" and the "EOF" should be > highlighted as errors. I agree Yakov --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---