aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2007-08-21 23:32:26 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2007-08-21 23:32:26 -0400
commitb14e7d17b2e57507cb1f0f69e332a733be9fadb2 (patch)
tree07c95cd3f2dc0b8229117addd608f71bcfff81b4 /modules/textadept
parent1ec412529982f5860445023495e6c3d915e14c84 (diff)
downloadtextadept-b14e7d17b2e57507cb1f0f69e332a733be9fadb2.tar.gz
textadept-b14e7d17b2e57507cb1f0f69e332a733be9fadb2.zip
Moved @usage LuaDocs to comment blocks inside the modules.
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/keys.lua5
-rw-r--r--modules/textadept/lsnippets.lua5
2 files changed, 6 insertions, 4 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua
index 996cdabf..89fd4b36 100644
--- a/modules/textadept/keys.lua
+++ b/modules/textadept/keys.lua
@@ -13,7 +13,9 @@
-- ADD: The string representing used to join together a sequence of Control,
-- Shift, or Alt modifier keys.
--
--- @usage
+module('_m.textadept.keys', package.seeall)
+
+-- Usage:
-- Keys are defined in the global table 'keys'. Keys in that table are key
-- sequences, and values are tables of Lua functions and arguments to execute.
-- The exceptions are language names, style names, and keychains (discussed
@@ -64,7 +66,6 @@
-- Keep in mind that all Lua functions used in key commands must be defined
-- BEFORE the key command references it. Therefore the module containing key
-- commands should be loaded LAST, after all other modules have been loaded.
-module('_m.textadept.keys', package.seeall)
-- options
local SCOPES_ENABLED = true
diff --git a/modules/textadept/lsnippets.lua b/modules/textadept/lsnippets.lua
index f7773639..0e1ad0a7 100644
--- a/modules/textadept/lsnippets.lua
+++ b/modules/textadept/lsnippets.lua
@@ -12,7 +12,9 @@
-- MARK_SNIPPET_COLOR: The Scintilla color used for the line
-- that marks the end of the snippet.
--
--- @usage
+module('_m.textadept.lsnippets', package.seeall)
+
+-- Usage:
-- Snippets are defined in the global table 'snippets'. Keys in that table are
-- snippet trigger words, and values are the snippet's text to insert. The
-- exceptions are language names and style names. Language names have table
@@ -66,7 +68,6 @@
-- * Only '`' needs to be escaped in shell code.
-- * '|'s after the first in transformations do not need to be escaped.
-- * Only unmatched ')'s need to be escaped. Nested ()s are ignored.
-module('_m.textadept.lsnippets', package.seeall)
local MARK_SNIPPET = 4
local MARK_SNIPPET_COLOR = 0x4D9999