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. --- core/locale.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'core/locale.lua') diff --git a/core/locale.lua b/core/locale.lua index 4274a0e9..29885848 100644 --- a/core/locale.lua +++ b/core/locale.lua @@ -1,8 +1,11 @@ -- Copyright 2007-2011 Mitchell mitchellcaladbolg.net. See LICENSE. +local M = {} + +--[[ This comment is for LuaDoc. --- -- Contains all messages used by Textadept for localization. -module('locale', package.seeall) +module('locale', package.seeall)]] -- Markdown: -- ## Fields @@ -29,4 +32,7 @@ f:close() --- -- Localizes the given string. -- @param id String to localize. -function localize(id) return localizations[id] or 'No Localization' end +-- @name localize +function M.localize(id) return localizations[id] or 'No Localization' end + +return M -- cgit v1.2.3