summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2016-07-30 15:23:17 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2016-07-30 15:23:17 +0100
commitbc16ec6bfbe14700c5f109ca33a744183a567e80 (patch)
treeabd271e7ebccc4d2ee4fd783072f7b0cb8f59590
parente1b5ff2a403e83a52926af9cebce30d4013944d7 (diff)
downloadtongue-bc16ec6bfbe14700c5f109ca33a744183a567e80.tar.bz2
use gmatch not the deprecated gfind
-rw-r--r--lib/tongue/langpack.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tongue/langpack.lua b/lib/tongue/langpack.lua
index b001cc6..cba88f9 100644
--- a/lib/tongue/langpack.lua
+++ b/lib/tongue/langpack.lua
@@ -113,7 +113,7 @@ local function try_convert(expn)
end
end,
}
- for ch in expn:gfind("(.)") do
+ for ch in expn:gmatch("(.)") do
local fn = parser[pstate]
if fn == nil then
return nil, "Unexpected parse state: " .. tostring(pstate)