diff options
author | 2013-08-26 22:36:10 -0400 | |
---|---|---|
committer | 2013-08-26 22:36:10 -0400 | |
commit | 92a1e1cae3029a3c4dde56c8dcc5d212fdc11e26 (patch) | |
tree | 53d4645ebc30698f4a782bc76232b0b54fe82507 /modules/lua/init.lua | |
parent | acda712a50dbebafa295ccd07ce8186d9b82aa10 (diff) | |
download | textadept-92a1e1cae3029a3c4dde56c8dcc5d212fdc11e26.tar.gz textadept-92a1e1cae3029a3c4dde56c8dcc5d212fdc11e26.zip |
Renamed `_M.textadept` to `textadept`; `_M` is for language modules only now.
Diffstat (limited to 'modules/lua/init.lua')
-rw-r--r-- | modules/lua/init.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/lua/init.lua b/modules/lua/init.lua index 90dbf0a6..d970e2c5 100644 --- a/modules/lua/init.lua +++ b/modules/lua/init.lua @@ -19,28 +19,28 @@ local M = {} -- Autocomplete an `if`, `while`, `for`, etc. control structure with the `end` -- keyword. -- @field sense --- The Lua [Adeptsense](_M.textadept.adeptsense.html). +-- The Lua [Adeptsense](textadept.adeptsense.html). -- It loads user tags from *`_USERHOME`/modules/lua/tags* and user apidocs -- from *`_USERHOME`/modules/lua/api*. module('_M.lua')]] -- Compile and Run command tables use file extensions. -_M.textadept.run.compile_command.lua = 'luac %(filename)' -_M.textadept.run.run_command.lua = 'lua %(filename)' -_M.textadept.run.error_detail.lua = { +textadept.run.compile_command.lua = 'luac %(filename)' +textadept.run.run_command.lua = 'lua %(filename)' +textadept.run.error_detail.lua = { pattern = '^lua: (.-):(%d+): (.+)$', filename = 1, line = 2, message = 3 } -- Adeptsense. -M.sense = _M.textadept.adeptsense.new('lua') +M.sense = textadept.adeptsense.new('lua') M.sense.syntax.class_definition = 'module%s*%(?%s*[\'"]([%w_%.]+)' M.sense.syntax.symbol_chars = '[%w_%.:]' M.sense.syntax.type_declarations = {} M.sense.syntax.type_assignments = { ['^[\'"]'] = 'string', -- foo = 'bar' or foo = "bar" - ['^([%w_%.]+)%s*$'] = '%1', -- foo = _M.textadept.adeptsense + ['^([%w_%.]+)%s*$'] = '%1', -- foo = textadept.adeptsense ['^(_M%.textadept%.adeptsense)%.new'] = '%1', ['require%s*%(?%s*(["\'])([%w_%.]+)%1%)?'] = '%2', ['^io%.p?open%s*%b()%s*$'] = 'file' @@ -50,7 +50,7 @@ M.sense:add_trigger('.') M.sense:add_trigger(':', false, true) -- script/update_doc generates a fake set of ctags used for autocompletion. -local as = _M.textadept.adeptsense +local as = textadept.adeptsense M.sense.ctags_kinds = { f = as.FUNCTION, F = as.FIELD, m = as.CLASS, t = as.FIELD } |