I have spent the last month overhauling ledger fontification.  I gave
up on using the standard REGEX based methods that most font lockers
use. Instead I wrote a few functions that actually understand the
semantics of a ledger xact then had jit-lock and font-lock call those.
  Overall there is much more flexibility and it seems to be plenty
fast.  The regexes I do use are much simpler.   I tested with a file
that had 2,613,072 postings and it was lighting fast.  Comments after
amounts are now properly recognized and you can fontify an entire xact
based on its overall status (my favorite part, that font-lock just
really couldn't do).

For those of you who use lots of different directives there are now
separate faces possible for all valid directives (or just use one face
for all directives)

Please check it out and report any bugs you find.  I have banged on it
for a while and it has been stable and well behaved.  Of course you
will find problems.

-- 
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to