summaryrefslogtreecommitdiff
path: root/examples/basic_mode.lua
blob: 04c16dff0e240836006fbeec23f8e7b9a9d31683 (plain) (blame)
1
2
3
4
5
6
return {
   ["%w+%s*\n"] = function(match)
                     command_queue:enqueue(string.match(match , "(%w+)%s*"))
                  end,
   [".*\n"] = function(match) end
}