[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vile] vile, perl, TeX, bracket pairing
From: |
hymie |
Subject: |
[vile] vile, perl, TeX, bracket pairing |
Date: |
Mon, 09 Feb 2015 19:03:24 -0500 |
So I've found an issue, and I'm sure the answer is "Too bad" but I
figured I'd ask anyway.
I have a Perl script whose purpose is to generate a TeX file.
Both Perl and TeX use curly-brackets { } for grouping things.
So I might have a construct like this:
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.
Like I said, I think I'm out of luck, but I thought I'd ask.
--hymie! http://lactose.homelinux.net/~hymie address@hidden
- [vile] vile, perl, TeX, bracket pairing,
hymie <=
- Re: [vile] vile, perl, TeX, bracket pairing, Thomas Dickey, 2015/02/09
- Re: [vile] vile, perl, TeX, bracket pairing, J. Chris Coppick, 2015/02/09
- Re: [vile] vile, perl, TeX, bracket pairing, Fabien COUTANT, 2015/02/10