From 33a2bd7467e39fc298dfc7ecfecdf1b013e0f15f Mon Sep 17 00:00:00 2001 From: Marius Date: Fri, 17 Jan 2014 23:20:25 +0200 Subject: beta 2014.01.17 22:09 --- tex/context/base/l-lpeg.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tex/context/base/l-lpeg.lua') diff --git a/tex/context/base/l-lpeg.lua b/tex/context/base/l-lpeg.lua index bad90efa8..982d8f98d 100644 --- a/tex/context/base/l-lpeg.lua +++ b/tex/context/base/l-lpeg.lua @@ -74,7 +74,9 @@ local lpegtype, lpegmatch, lpegprint = lpeg.type, lpeg.match, lpeg.print -- let's start with an inspector: -setinspector(function(v) if lpegtype(v) then lpegprint(v) return true end end) +if setinspector then + setinspector(function(v) if lpegtype(v) then lpegprint(v) return true end end) +end -- Beware, we predefine a bunch of patterns here and one reason for doing so -- is that we get consistent behaviour in some of the visualizers. -- cgit v1.2.3