diff options
author | 2010-04-09 18:48:30 -0400 | |
---|---|---|
committer | 2010-04-09 18:48:30 -0400 | |
commit | f5c492e1f1de148af95accb85e958c3ccdffca5c (patch) | |
tree | e9f89f61dca1a88d186e5c4cebc5abed8852ca42 /modules/lua/commands.lua | |
parent | d11a4020e4a197cff0da67cb0d2dd6bfb79ee11e (diff) | |
download | textadept-f5c492e1f1de148af95accb85e958c3ccdffca5c.tar.gz textadept-f5c492e1f1de148af95accb85e958c3ccdffca5c.zip |
Moved _m.textadept.run module commands to language-specific modules.
Diffstat (limited to 'modules/lua/commands.lua')
-rw-r--r-- | modules/lua/commands.lua | 9 |
1 files changed, 9 insertions, 0 deletions
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 |