projects
/
matthijs
/
master-project
/
report.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use old style numbers when available.
[matthijs/master-project/report.git]
/
pret-trans.lua
diff --git
a/pret-trans.lua
b/pret-trans.lua
index 238a4e5c1d9e798dd9dddbfa3d6dea552b9aa361..a96002f1cb894ca9db119d60a0e9dc98464511c4 100644
(file)
--- a/
pret-trans.lua
+++ b/
pret-trans.lua
@@
-9,7
+9,7
@@
local utf = unicode.utf8
local utf = unicode.utf8
-vis = buffers.newvisualizer("trans")
+
local
vis = buffers.newvisualizer("trans")
local commands = {}
-- A command to create a horizontal rule.
local commands = {}
-- A command to create a horizontal rule.
@@
-63,6
+63,9
@@
end
-- Capture all lines, without generating any output
function vis.begin_of_display()
lines = {}
-- 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
end
function vis.begin_of_line(n)
-- Don't generate output here
@@
-165,6
+168,7
@@
function vis.end_of_display()
-- Clean up
lines = {}
-- Clean up
lines = {}
+ buffers.visualizers.handlers.lam.end_of_block()
end
-- vim: set sw=4 sts=4 expandtab ai:
end
-- vim: set sw=4 sts=4 expandtab ai: