From: Matthijs Kooijman Date: Thu, 27 Aug 2009 11:44:23 +0000 (+0200) Subject: Let all lambda expressions in pret-trans share subscript detection. X-Git-Tag: final-thesis~279 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=6a085286454af0e0c45e5f959c49f2452f9893a4;p=matthijs%2Fmaster-project%2Freport.git Let all lambda expressions in pret-trans share subscript detection. --- diff --git a/pret-trans.lua b/pret-trans.lua index 6ad51b7..a96002f 100644 --- a/pret-trans.lua +++ b/pret-trans.lua @@ -63,6 +63,9 @@ end -- Capture all lines, without generating any output function vis.begin_of_display() lines = {} + -- Let all the lambda pretty printing in this buffer use shared subscript + -- detection + buffers.visualizers.handlers.lam.begin_of_block() end function vis.begin_of_line(n) -- Don't generate output here @@ -165,6 +168,7 @@ function vis.end_of_display() -- Clean up lines = {} + buffers.visualizers.handlers.lam.end_of_block() end -- vim: set sw=4 sts=4 expandtab ai: