vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] vile, perl, TeX, bracket pairing


From: Fabien COUTANT
Subject: Re: [vile] vile, perl, TeX, bracket pairing
Date: Tue, 10 Feb 2015 21:17:06 +0100

Le Mon, 09 Feb 2015 19:03:24 -0500, address@hidden a écrit:
[...]
> if (something)
> {
>   print '{\tt This is typewriter font';
> }
> else
> {
>   print '{\bf This is boldface font';
> }
> print ' and this is more text in that font.}',"\n';
> 
> The two different uses for brackets will interfere with each other
> when I try to use the % command to match my brackets into pairs.
> 
> I don't suppose there's anything to be done, where vile might (for example)
> recognize the difference between a bracket inside a pair of quotation
> marks and a bracket that is not inside a pair of quotation marks.

Hello

I have had frequently the same problem with other languages (namely, C) in
the code generators domain (like yours).
The trick I found at the time was to add the pairing brace in (block)
comments.

Something like (I dunno Perl, so replace appropriate comment style):

   print '{\bf This is boldface font'; #...}

   print /*{...*/ ' and this is more text in that font.}',"\n';


-- 
Hope this helps,
Fabien.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]