(gordon) Temporarily fix parsing

mio 2022-08-30 01:09:50 +00:00
parent 9b1631d658
commit b8175e7e45
3 changed files with 8 additions and 8 deletions

View File

@ -42,9 +42,9 @@ grammar = {
origin = { origin = {
"Here, have a #meat_set# !", "Here, have a #meat_set# !",
"Here, have a #veggie_set# !", "Here, have a #veggie_set# !",
"Here, have a #meat_set#, served with a side of #meat_side#!", "Here, have a #meat_set# served with a side of #meat_side# !",
"Here, have a #meat_set#, served with a side of #veggie_side#!", "Here, have a #meat_set# served with a side of #veggie_side# !",
"Here, have a #veggie_set#, served with a side of #veggie_side#!", "Here, have a #veggie_set# served with a side of #veggie_side# !",
"Here, have a #meat_set#, served with a #dessert#!", "Here, have a #meat_set# served with a #dessert# !",
} }
} }

View File

@ -54,7 +54,7 @@ function folia.output(key)
end end
local output_str = util.pick(foils[key]["origin"])[1] local output_str = util.pick(foils[key]["origin"])[1]
local pattern = "#(%w+)#" local pattern = "#(_%w+)#"
util.debug("output", "level 1: " .. output_str, folia.debug) util.debug("output", "level 1: " .. output_str, folia.debug)
-- Check for expansion objects and replace them until none are found -- Check for expansion objects and replace them until none are found
while string.find(output_str, pattern) ~= nil do while string.find(output_str, pattern) ~= nil do

View File

@ -12,7 +12,7 @@ itte_config = {
itte_handlers = {} itte_handlers = {}
folia.foils_dir = arg[0] .. "/commands" folia.foils_dir = "/home/mio/bin/itte/examples/gordon/commands"
local gordon = {} local gordon = {}