aboutsummaryrefslogtreecommitdiff
path: root/modules/lua/commands.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-04-10 08:27:25 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-04-10 08:27:25 -0400
commit7f4f30035c8459288666deec9e74f1bc7c41c34f (patch)
tree18c8ad1f30dfe55015b3a824d91fff749b4a77f0 /modules/lua/commands.lua
parentf5c492e1f1de148af95accb85e958c3ccdffca5c (diff)
downloadtextadept-7f4f30035c8459288666deec9e74f1bc7c41c34f.tar.gz
textadept-7f4f30035c8459288666deec9e74f1bc7c41c34f.zip
Moved block comment strings to language-specific modules.
Diffstat (limited to 'modules/lua/commands.lua')
-rw-r--r--modules/lua/commands.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/lua/commands.lua b/modules/lua/commands.lua
index b55e2f76..ac68ab84 100644
--- a/modules/lua/commands.lua
+++ b/modules/lua/commands.lua
@@ -6,14 +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
+local m_editing, m_run = _m.textadept.editing, _m.textadept.run
+-- Comment string tables use lexer names.
+m_editing.comment_string.lua = '--'
+-- Compile and Run command tables use file extensions.
+m_run.run_command.lua = 'lua %(filename)'
+m_run.error_detail.lua = {
+ pattern = '^lua: (.-):(%d+): (.+)$',
+ filename = 1, line = 2, message = 3
+}
---
-- Patterns for auto 'end' completion for control structures.
@@ -77,7 +78,6 @@ end
-- Lua-specific key commands.
local keys = _G.keys
if type(keys) == 'table' then
- local m_editing = _m.textadept.editing
keys.lua = {
al = {
m = { textadept.io.open,