aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-03-30 20:34:32 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-03-30 20:34:32 -0400
commit42f0f1427871c3533a797296d36ba481ee98975b (patch)
tree7e2d0716112ede1e2044f8d25033c376067bd79e /core
parent07e233209961e5e557e50b379133161cde000c02 (diff)
downloadtextadept-42f0f1427871c3533a797296d36ba481ee98975b.tar.gz
textadept-42f0f1427871c3533a797296d36ba481ee98975b.zip
Removed support for api files.
Diffstat (limited to 'core')
-rw-r--r--core/file_io.lua29
1 files changed, 0 insertions, 29 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index ced71eb8..14db3a7f 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -353,35 +353,6 @@ function close_all()
return true
end
----
--- Reads an API file.
--- Each non-empty line in the API file is structured as follows:
--- identifier (parameters) description
--- Whitespace is optional, but can used for formatting. In description, '\\n'
--- will be interpreted as a newline (\n) character. 'Overloaded' identifiers
--- are handled appropriately.
--- @param filename The absolute path to the API file to read.
--- @param word_chars Characters considered to be word characters for
--- determining the identifier to lookup. Its contents should be in Lua
--- pattern format suitable for the character class construct.
--- @return API table.
--- @usage textadept.io.read_api_file(filename, '%w_')
-function read_api_file(filename, word_chars)
- local api = {}
- local f = io.open(filename, 'rb')
- if not f then return api end
- for line in f:lines() do
- local func, params, desc =
- line:match('(['..word_chars..']+)%s*(%b())(.*)$')
- if func and params and desc then
- if not api[func] then api[func] = {} end
- api[func][#api[func] + 1] = { params, desc }
- end
- end
- f:close()
- return api
-end
-
-- Prompts the user to reload the current file if it has been modified outside
-- of Textadept.
local function update_modified_file()