[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vile] Minor adjustments to scheme filtering
From: |
Thomas Dickey |
Subject: |
Re: [vile] Minor adjustments to scheme filtering |
Date: |
Wed, 29 Apr 2009 19:27:17 -0400 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Wed, Apr 29, 2009 at 01:55:55PM -0300, Brendan MacDonell wrote:
> Well, as it stands now, I've been sitting on a patch to fix some small
> corner cases for the quote highlighting for just over two months. It's
> unfortunately a bit of an ugly hack, but it does manage to correctly
> handle the odder combinations of literal-/macro-based quotes and
> chained literals at the price of a global variable to track the quoted
> state of the next token. Any suggestions for how to go about fixing
> this without quadratically bloating the number of pattern permutations
> are of course appreciated, but I have my doubts as to whether an
> elegant solution to this problem exists.
Perhaps not (I've had mixed success in using auxiliary state variables -
the problem is missing exit conditions, or having intervening conditions
where the state variable becomes obsolete).
...at least the code didn't grow quadratically (only 2kb).
> In any case, the attached short patch against vile-9.7o provides the
> following:
> * A fix/hack to properly handle combinations of quotation literals.
> * Highlighting of the unquote/unquote-splicing keywords.
> * Proper handling of the optional scheme parentheses extension ('[' and ']').
thanks
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature