diff options
author | 2011-02-28 16:59:56 -0500 | |
---|---|---|
committer | 2011-02-28 16:59:56 -0500 | |
commit | 146faf6242a5dff7f9a7c4f295a1ce32aedbc5b8 (patch) | |
tree | 1ee109dfa5ba053abfaf1d51b273f268adc5e9cd /modules/textadept | |
parent | ade0a0f1ff13bdccb6f0cad13449b2b13eaff70f (diff) | |
download | textadept-146faf6242a5dff7f9a7c4f295a1ce32aedbc5b8.tar.gz textadept-146faf6242a5dff7f9a7c4f295a1ce32aedbc5b8.zip |
Condense language modules into single init.lua file.
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/adeptsense.lua | 19 | ||||
-rw-r--r-- | modules/textadept/bookmarks.lua | 2 |
2 files changed, 5 insertions, 16 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua index 560b20cb..01fb1ced 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -40,28 +40,17 @@ module('_m.textadept.adeptsense', package.seeall) -- -- #### Introduction -- --- In the language-specific module, create an Adeptsense module. +-- Open the language-specific module for editing and create a new instance of an +-- Adeptsense. -- -- $> # from either _HOME or _USERHOME: -- $> cd modules/lua/ --- $> textadept adeptsense.lua --- --- The Adeptsense should look like the following: +-- $> textadept init.lua -- --- --- Adeptsense for the lua module. --- module('_m.lua.adeptsense', package.seeall) -- sense = _m.textadept.adeptsense.new('lua') -- -- Where 'lua' is replaced by your language's name. -- --- Then edit the module's `init.lua` to include the Adeptsense. --- --- $> textadept init.lua --- --- require 'lua.adeptsense' -- add this line --- require 'lua.commands' --- require 'lua.snippets' --- -- #### Syntax Options -- -- The syntax of different languages varies so the Adeptsense must be configured @@ -261,7 +250,7 @@ module('_m.textadept.adeptsense', package.seeall) -- Since Adeptsense ignores any tags not mapped to `classes`, `functions`, or -- `fields` in [`ctags_kinds`](#ctags_kinds), it passes an unknown tag to the -- [`handle_ctag()`](#handle_ctag) function. In this case, package (`p`) tags --- are need to be handled. +-- need to be handled. -- -- function sense:handle_ctag(tag_name, file_name, ex_cmd, ext_fields) -- if ext_fields:sub(1, 1) ~= 'p' then return end -- not a package diff --git a/modules/textadept/bookmarks.lua b/modules/textadept/bookmarks.lua index 072cca67..97121547 100644 --- a/modules/textadept/bookmarks.lua +++ b/modules/textadept/bookmarks.lua @@ -85,7 +85,7 @@ function goto() line = buffer:marker_next(line + 1, 2^MARK_BOOKMARK) until line < 0 local line = gui.filteredlist(L('Select Bookmark'), 'Bookmark', markers) - if line then _m.textadept.editing.goto_line(tonumber(line:match('^%d+'))) end + if line then _m.textadept.editing.goto_line(line:match('^%d+')) end end if buffer then buffer:marker_set_back(MARK_BOOKMARK, MARK_BOOKMARK_COLOR) end |