(gordon) Temporarily fix parsing
parent
9b1631d658
commit
b8175e7e45
|
@ -42,9 +42,9 @@ grammar = {
|
|||
origin = {
|
||||
"Here, have a #meat_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 #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 side of #meat_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 #meat_set# served with a #dessert# !",
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ function folia.output(key)
|
|||
end
|
||||
|
||||
local output_str = util.pick(foils[key]["origin"])[1]
|
||||
local pattern = "#(%w+)#"
|
||||
local pattern = "#(_%w+)#"
|
||||
util.debug("output", "level 1: " .. output_str, folia.debug)
|
||||
-- Check for expansion objects and replace them until none are found
|
||||
while string.find(output_str, pattern) ~= nil do
|
||||
|
|
|
@ -12,7 +12,7 @@ itte_config = {
|
|||
|
||||
itte_handlers = {}
|
||||
|
||||
folia.foils_dir = arg[0] .. "/commands"
|
||||
folia.foils_dir = "/home/mio/bin/itte/examples/gordon/commands"
|
||||
|
||||
|
||||
local gordon = {}
|
||||
|
|
Loading…
Reference in New Issue