From 9f804f70df793dd2d50c0b14000ab83a6bc02b83 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 12 Dec 2011 19:15:53 -0500 Subject: Remove 'module' and update LuaDoc comments appropriately. --- modules/textadept/filter_through.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'modules/textadept/filter_through.lua') 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 -- cgit v1.2.3