From f5c492e1f1de148af95accb85e958c3ccdffca5c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 9 Apr 2010 18:48:30 -0400 Subject: Moved _m.textadept.run module commands to language-specific modules. --- modules/lua/commands.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/lua') diff --git a/modules/lua/commands.lua b/modules/lua/commands.lua index 53d7f0dd..b55e2f76 100644 --- a/modules/lua/commands.lua +++ b/modules/lua/commands.lua @@ -6,6 +6,15 @@ local textadept = _G.textadept -- Commands for the lua module. module('_m.lua.commands', package.seeall) +local run = _m.textadept.run +if run then + run.run_command.lua = 'lua %(filename)' + run.error_detail.lua = { + pattern = '^lua: (.-):(%d+): (.+)$', + filename = 1, line = 2, message = 3 + } +end + --- -- Patterns for auto 'end' completion for control structures. -- @class table -- cgit v1.2.3