aboutsummaryrefslogtreecommitdiff
path: root/containers.lua
diff options
context:
space:
mode:
Diffstat (limited to 'containers.lua')
-rw-r--r--containers.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/containers.lua b/containers.lua
index 5b406de..85f201c 100644
--- a/containers.lua
+++ b/containers.lua
@@ -420,8 +420,12 @@ do
local text_methods = {
formatted_with = format,
byte = byte,
- position_of = find,
- position_of_1_after = find,
+ position_of = (function(...)
+ return (find(...))
+ end),
+ position_of_1_after = (function(...)
+ return (find(...))
+ end),
as_a_lua_identifier = as_lua_id,
is_a_lua_identifier = is_lua_id,
as_a_lua_id = as_lua_id,