From f275858894529b2794969f2fe0d8b5c4a1a9c5e3 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 12 Apr 2012 13:10:14 -0400 Subject: Added note about documenting module fields; modules/textadept/adeptsense.lua --- modules/textadept/adeptsense.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua index 7e3d7449..93498c24 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -341,6 +341,30 @@ local M = {} -- [`load_ctags()`](#load_ctags) and [`api_files`](#api_files) respectively. -- -- [LuaDoc]: http://keplerproject.github.com/luadoc/ +-- +-- #### Module Fields +-- +-- Not only does the Lua Adeptsense generator recognize functions and tables +-- within modules, but it also recognizes module fields and their types with a +-- certain syntax: +-- +--
---
+-- -- Module documentation.
+-- -- @field field_name (type)
+-- -- Field documentation.
+--
+--
+-- or
+--
+-- ---
+-- -- Module documentation
+-- -- * `field_name` (type)
+-- -- Field documentation.
+-- -- Multiple documentation lines must be indented.
+--
+--
+-- Please note the latter ``-- * `field_name` `` syntax can appear anywhere
+-- inside a module, not just the module LuaDoc.
-- @field always_show_globals (bool)
-- Include globals in the list of completions offered.
-- Globals are classes, functions, and fields that do not belong to another
--
cgit v1.2.3