summaryrefslogtreecommitdiff
path: root/tex/context/base/l-lpeg.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2014-01-17 23:20:25 +0200
committerMarius <mariausol@gmail.com>2014-01-17 23:20:25 +0200
commit33a2bd7467e39fc298dfc7ecfecdf1b013e0f15f (patch)
tree0d3f50d0e7db250baa2406b7e0446e2399ff433a /tex/context/base/l-lpeg.lua
parent5fa6d0b793f3d42ca2490a067395d1aa7e631161 (diff)
downloadcontext-33a2bd7467e39fc298dfc7ecfecdf1b013e0f15f.tar.gz
beta 2014.01.17 22:09
Diffstat (limited to 'tex/context/base/l-lpeg.lua')
-rw-r--r--tex/context/base/l-lpeg.lua4
1 files changed, 3 insertions, 1 deletions
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.