summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/syst-lua.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-08-11 16:54:53 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-08-11 16:54:53 +0200
commit4f97d7d7cd942dfe76cd4bb54fc3f5b890654235 (patch)
tree5fad3eb091bfa3b05b46f4975d2e5f6284e4ed97 /tex/context/base/mkiv/syst-lua.lmt
parenta8723a3d1ee935e8d403bd0f5d96a072c0974755 (diff)
downloadcontext-4f97d7d7cd942dfe76cd4bb54fc3f5b890654235.tar.gz
2020-08-11 15:59:00
Diffstat (limited to 'tex/context/base/mkiv/syst-lua.lmt')
-rw-r--r--tex/context/base/mkiv/syst-lua.lmt19
1 files changed, 5 insertions, 14 deletions
diff --git a/tex/context/base/mkiv/syst-lua.lmt b/tex/context/base/mkiv/syst-lua.lmt
index effba14d9..d74b27689 100644
--- a/tex/context/base/mkiv/syst-lua.lmt
+++ b/tex/context/base/mkiv/syst-lua.lmt
@@ -337,8 +337,7 @@ do
implement {
name = "openin",
public = true,
- -- protected = true,
- value = true,
+ usage = "value",
actions = function()
local n = scaninteger()
scankeyword("=")
@@ -359,8 +358,7 @@ do
implement {
name = "closein",
public = true,
- -- protected = true,
- value = true,
+ usage = "value",
actions = function()
local n = scaninteger()
local c = channels[n]
@@ -374,8 +372,7 @@ do
implement {
name = "read",
public = true,
- -- protected = true,
- value = true,
+ usage = "value",
actions = function(prefix)
local n = scaninteger()
scankeyword("to")
@@ -393,8 +390,7 @@ do
implement {
name = "readline",
public = true,
- -- protected = true,
- value = true,
+ usage = "value",
actions = function(prefix)
local n = scaninteger()
scankeyword("to")
@@ -409,15 +405,10 @@ do
end,
}
- -- callback.register("if_end_of_file", function(n)
- -- return not channels[n]
- -- end)
-
implement {
name = "ifeof",
public = true,
- -- protected = true,
- condition = true,
+ usage = "condition",
actions = function(prefix)
local n = scaninteger()
return tokens.values.boolean, not channels[n]