aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2007-09-17 10:52:00 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2007-09-17 10:52:00 -0400
commitfba769ffa66c493cdf0d9ad96ed55cb60a22dab8 (patch)
tree679926fc76bda5ce3db04485f501aa56a2f0431f
parentcaa1dbf0bdf4125e72132fca30eb827dc8c40bdf (diff)
downloadtextadept-fba769ffa66c493cdf0d9ad96ed55cb60a22dab8.tar.gz
textadept-fba769ffa66c493cdf0d9ad96ed55cb60a22dab8.zip
Added core/._m.lua dummy file.
-rw-r--r--core/._m.lua39
1 files changed, 39 insertions, 0 deletions
diff --git a/core/._m.lua b/core/._m.lua
new file mode 100644
index 00000000..2ba1077a
--- /dev/null
+++ b/core/._m.lua
@@ -0,0 +1,39 @@
+-- Copyright 2007 Mitchell mitchell<att>caladbolg.net. See LICENSE.
+-- This is a DUMMY FILE used for making LuaDoc for built-in functions in the
+-- global _m table.
+
+---
+-- A table of loaded modules.
+-- [Dummy file]
+module('_m')
+
+-- Usage:
+-- Modules utilize the Lua 5.1 package model.
+--
+-- There are two kinds of modules: generic and language-specific. Both are just
+-- single directories full of Lua scripts and maybe additional files. Each
+-- module has an init.lua script that loads all of the functionality provided by
+-- the module.
+--
+-- Generic modules are loaded on startup (/init.lua) and available all the time.
+--
+-- Language-specific modules are loaded when a file with a specific extension is
+-- opened or saved and available to that kind of file only. Adding or modifying
+-- a language is done in /core/ext/mime_types.lua. Add your language and its
+-- associated lexer to the languages table, the language's file extension and
+-- associated language to the extensions table, and optionally shebang words
+-- with their associated language to the shebangs table.
+-- Each module contains the init.lua script, and typically a commands.lua and
+-- snippets.lua script. Sometimes .api files can be used by a module. To do so,
+-- set an 'api' variable to textadept.io.read_api_file(path, word_chars)'s
+-- return value. It will be used for displaying calltips and autocomplete lists
+-- by default.
+-- To create a new module template, run the /modules/new script with the first
+-- argument being the module's name, and the second being the language's name
+-- (escaped characters must be used appropriately). The commands.lua script
+-- provides useful functions and key-commands for the module; the snippets.lua
+-- script provides snippets.
+--
+-- When assigning key commands to module functions, do not forget to do so AFTER
+-- the function has been defined. Typically key commands are placed at the end
+-- of files, like commands.lua in language-specific modules.