aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/file_io.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2012-10-08 11:40:17 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2012-10-08 11:40:17 -0400
commit91fcdb58bfe43b368f1bf32edc16ed7dba8c40cd (patch)
tree18c64ae98223dbbba9bd56c98906a254c9e20d5e /core/file_io.lua
parent7148f30241c81ce63fde27c230e1d9db02b19822 (diff)
Use '@field' LuaDoc for events defined in modules.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r--core/file_io.lua30
1 files changed, 18 insertions, 12 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index 0ea94bca..0cd9314a 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -13,6 +13,8 @@
-- them manually, use [`string.iconv()`][] along with [`_CHARSET`][], your
-- filesystem's detected encoding. An example is
--
+-- <div style="clear: right;"><!-- Clear Table of Contents --></div>
+--
-- events.connect(events.FILE_OPENED, function(utf8_filename)
-- local filename = utf8_filename:iconv(_CHARSET, 'UTF-8')
-- local f = io.open(filename, 'rb')
@@ -22,31 +24,35 @@
--
-- [`string.iconv()`]: string.html#iconv
-- [`_CHARSET`]: _G.html#_CHARSET
---
--- ## File Events
---
--- * `_G.events.FILE_OPENED`
+-- @field _G.events.FILE_OPENED (string)
-- Called when a file is opened in a new buffer.
-- This is emitted by [`open_file()`](#open_file)
-- Arguments:
--- * `filename`: The filename encoded in UTF-8.
--- * `_G.events.FILE_BEFORE_SAVE`
+--
+-- * `filename`: The filename encoded in UTF-8.
+-- @field _G.events.FILE_BEFORE_SAVE (string)
-- Called right before a file is saved to disk.
-- This is emitted by [`buffer:save()`][]
-- Arguments:
--- * `filename`: The filename encoded in UTF-8.
--- * `_G.events.FILE_AFTER_SAVE`
+--
+-- * `filename`: The filename encoded in UTF-8.
+--
+-- [`buffer:save()`]: buffer.html#save
+-- @field _G.events.FILE_AFTER_SAVE (string)
-- Called right after a file is saved to disk.
-- This is emitted by [`buffer:save()`][]
-- Arguments:
--- * `filename`: The filename encoded in UTF-8.
--- * `_G.events.FILE_SAVED_AS`
+--
+-- * `filename`: The filename encoded in UTF-8.
+--
+-- [`buffer:save()`]: buffer.html#save
+-- @field _G.events.FILE_SAVED_AS (string)
-- Called when a file is saved under a different filename.
-- This is emitted by [`buffer:save_as()`][]
-- Arguments:
--- * `filename`: The filename encoded in UTF-8.
--
--- [`buffer:save()`]: buffer.html#save
+-- * `filename`: The filename encoded in UTF-8.
+--
-- [`buffer:save_as()`]: buffer.html#save_as
module('io')]]