diff options
author | 2011-12-12 19:15:53 -0500 | |
---|---|---|
committer | 2011-12-12 19:15:53 -0500 | |
commit | 9f804f70df793dd2d50c0b14000ab83a6bc02b83 (patch) | |
tree | 12b826dc06b800d868854231d4db56d489697832 /modules/textadept/filter_through.lua | |
parent | 51bfd53e48d5310eb786069b758e0430129daf54 (diff) | |
download | textadept-9f804f70df793dd2d50c0b14000ab83a6bc02b83.tar.gz textadept-9f804f70df793dd2d50c0b14000ab83a6bc02b83.zip |
Remove 'module' and update LuaDoc comments appropriately.
Diffstat (limited to 'modules/textadept/filter_through.lua')
-rw-r--r-- | modules/textadept/filter_through.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/textadept/filter_through.lua b/modules/textadept/filter_through.lua index bb55f444..98c21945 100644 --- a/modules/textadept/filter_through.lua +++ b/modules/textadept/filter_through.lua @@ -3,9 +3,12 @@ local L = locale.localize local events = events +local M = {} + +--[[ This comment is for LuaDoc. --- -- Filter-Through for the textadept module. -module('_m.textadept.filter_through', package.seeall) +module('_m.textadept.filter_through', package.seeall)]] local cat = not WIN32 and 'cat' or 'type' local tmpfile = _USERHOME..'/.ft' @@ -22,7 +25,8 @@ local filter_through_active = false -- text is selected and spans a single line, only the selected text is used. (3) -- If no text is selected, the entire buffer is used. -- The input text is replaced with the standard output (stdout) of the command. -function filter_through() +-- @name filter_through +function M.filter_through() filter_through_active = true gui.command_entry.focus() end @@ -69,3 +73,5 @@ events.connect(events.COMMAND_ENTRY_COMMAND, function(text) return true end end, 1) -- place before command_entry.lua's handler (if necessary) + +return M |