summaryrefslogtreecommitdiff
path: root/tex/context/base/core-env.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-10-19 01:20:13 +0300
committerMarius <mariausol@gmail.com>2012-10-19 01:20:13 +0300
commit69d2352af4b60929b37fc49f3bdb263977016244 (patch)
treedb5eb11398e345dfa23b4c4500fb93575d2afb7c /tex/context/base/core-env.lua
parentc18f7cbe51449a611ea1819fedd9a4ff18529b7d (diff)
downloadcontext-69d2352af4b60929b37fc49f3bdb263977016244.tar.gz
stable 2012.05.30 11:26
Diffstat (limited to 'tex/context/base/core-env.lua')
-rw-r--r--tex/context/base/core-env.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/tex/context/base/core-env.lua b/tex/context/base/core-env.lua
index 8b9ae172b..c31df929e 100644
--- a/tex/context/base/core-env.lua
+++ b/tex/context/base/core-env.lua
@@ -37,7 +37,7 @@ setmetatableindex(tex.modes, function(t,k)
if m then
return m()
else
- local n = "mode>" .. k
+ local n = "mode" .. k
if csname_id(n) == undefined then
return false
else
@@ -52,7 +52,7 @@ setmetatableindex(tex.systemmodes, function(t,k)
if m then
return m()
else
- local n = "mode>*" .. k
+ local n = "mode*" .. k
if csname_id(n) == undefined then
return false
else
@@ -122,15 +122,12 @@ local types = {
function tex.isdimen(name)
return lookuptoken(name)[1] == dimencode
end
-
function tex.iscount(name)
return lookuptoken(name)[1] == countcode
end
-
function tex.istoken(name)
return lookuptoken(name)[1] == tokencode
end
-
function tex.isskip(name)
return lookuptoken(name)[1] == skipcode
end