aboutsummaryrefslogtreecommitdiff
path: root/modules/lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-07-10 15:27:16 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-07-10 15:27:16 -0400
commit954a26b638ab3d31b395af4c0b3e788ead7a9d60 (patch)
tree9632f9e83d437933924cad1a137d93f8cad0878e /modules/lua
parent2b4d555ce78829d3e33be281179fd4746bb94d79 (diff)
downloadtextadept-954a26b638ab3d31b395af4c0b3e788ead7a9d60.tar.gz
textadept-954a26b638ab3d31b395af4c0b3e788ead7a9d60.zip
Updated Lua Adeptsense.
Diffstat (limited to 'modules/lua')
-rw-r--r--modules/lua/api30
-rw-r--r--modules/lua/tags14
2 files changed, 22 insertions, 22 deletions
diff --git a/modules/lua/api b/modules/lua/api
index 99f36a01..00d1b02f 100644
--- a/modules/lua/api
+++ b/modules/lua/api
@@ -102,8 +102,8 @@ KEYSYMS keys.KEYSYMS (table)\nLookup table for string representations of key cod
KEYWORD lexer.KEYWORD (string)\nThe token name for keyword tokens.
KEYWORDSET_MAX _SCINTILLA.constants.KEYWORDSET_MAX\n8
LABEL lexer.LABEL (string)\nThe token name for label tokens.
-LANGUAGE_MODULE_LOADED events.LANGUAGE_MODULE_LOADED (string)\nEmitted after loading a language-specific module.\nThis is useful for overriding a language-specific module's key bindings\nor other properties since the module is not loaded when Textadept starts.\nArguments:\n\n* *`lang`*: The language lexer name.
-LANGUAGE_MODULE_PREFIX keys.LANGUAGE_MODULE_PREFIX (string)\nThe starting key of the key chain reserved for language-specific modules.\nThe default value is `'cl'` on platforms other than Mac OSX, `'ml'`\notherwise. Equivalent to `Ctrl+L` (`⌘L` on Mac OSX | `M-L` in curses).
+LANGUAGE_MODULE_LOADED events.LANGUAGE_MODULE_LOADED (string)\nEmitted after loading a language module.\nThis is useful for overriding a language module's key bindings or other\nproperties since the module is not loaded when Textadept starts.\nArguments:\n\n* *`lang`*: The language lexer name.
+LANGUAGE_MODULE_PREFIX keys.LANGUAGE_MODULE_PREFIX (string)\nThe starting key of the key chain reserved for language modules.\nThe default value is `'cl'` on platforms other than Mac OSX, `'ml'`\notherwise. Equivalent to `Ctrl+L` (`⌘L` on Mac OSX | `M-L` in curses).
MARGIN_CLICK events.MARGIN_CLICK (string)\nEmitted when clicking the mouse inside a margin.\nArguments:\n\n* _`margin`_: The margin number clicked.\n* _`position`_: The position of the start of the line in the buffer whose\n margin line was clicked.\n* _`modifiers`_: A bit-mask of modifier keys held down. Modifiers are\n `_SCINTILLA.constants.SCMOD_ALT`, `_SCINTILLA.constants.SCMOD_CTRL`,\n `_SCINTILLA.constants.SCMOD_SHIFT`, and\n `_SCINTILLA.constants.SCMOD_META`.\n Note: If you set `buffer.rectangular_selection_modifier` to\n `_SCINTILLA.constants.SCMOD_CTRL`, the "Control" modifier is reported as\n *both* "Control" and "Alt" due to a Scintilla limitation with GTK+.
MARKER_MAX _SCINTILLA.constants.MARKER_MAX\n31
MAX_RECENT_FILES _M.textadept.session.MAX_RECENT_FILES (number)\nThe maximum number of recent files to save to the session.\nRecent files are stored in `io.recent_files`.\nThe default value is `10`.
@@ -973,7 +973,7 @@ column buffer.column (table, Read-only)\nTable of column numbers, taking tab wid
command_entry gui.command_entry (module)\nTextadept's Command Entry.
comment_string _M.textadept.editing.comment_string (table)\nMap of lexer names to line comment strings for programming languages, used by\nthe `block_comment()` function.\nKeys are lexer names and values are either the language's line comment\nprefixes or block comment delimiters separated by a '|'.\n@see block_comment
compile _M.textadept.run.compile()\nCompiles the file based on its extension using the command from the\n`compile_command` table.\nEmits a `COMPILE_OUTPUT` event.\n@see compile_command\n@see _G.events
-compile_command _M.textadept.run.compile_command (table)\nMap of file extensions (excluding the leading '.') to their associated\n"compile" shell command line strings or functions returning such strings.\nCommand line strings may have the following macros:\n\n + `%(filepath)`: The full path of the current file.\n + `%(filedir)`: The current file's directory path.\n + `%(filename)`: The name of the file, including its extension.\n + `%(filename_noext)`: The name of the file, excluding its extension.\n\nThis table is typically populated by language-specific modules.
+compile_command _M.textadept.run.compile_command (table)\nMap of file extensions (excluding the leading '.') to their associated\n"compile" shell command line strings or functions returning such strings.\nCommand line strings may have the following macros:\n\n + `%(filepath)`: The full path of the current file.\n + `%(filedir)`: The current file's directory path.\n + `%(filename)`: The name of the file, including its extension.\n + `%(filename_noext)`: The name of the file, excluding its extension.\n\nThis table is typically populated by language modules.
complete _M.textadept.adeptsense.complete(sense, only_fields, only_functions)\nShows an autocompletion list of functions (unless *only_fields* is `true`)\nand fields (unless *only_funcs* is `true`) for the symbol behind the caret,\nreturning `true` on success.\n@param sense The Adeptsense returned by `adeptsense.new()`. If `nil`, uses\n the current language's Adeptsense (if it exists).\n@param only_fields Optional flag indicating whether or not to return a list\n of only fields. The default value is `false`.\n@param only_functions Optional flag indicating whether or not to return a\n list of only functions. The default value is `false`.\n@return `true` on success or `false`.\n@see get_symbol\n@see get_completions
complete_lua gui.command_entry.complete_lua(code)\nShows a set of Lua code completions for string *code* or `entry_text`.\nCompletions are subject to an "abbreviated" environment where the `buffer`,\n`view`, and `gui` tables are also considered as globals.\n@param code The Lua code to complete. The default value is the value of\n `entry_text`.
completions _M.textadept.adeptsense.completions (table)\nA list containing lists of possible completions for known symbols.\nEach symbol key has a table value that contains a list of field completions\nwith a `fields` key and a list of functions completions with a `functions`\nkey. This table is normally populated by `load_ctags()`, but can also be set\nby the user.
@@ -1062,7 +1062,7 @@ enter_mode gui.command_entry.enter_mode(mode)\nOpens the command entry in key mo
entry_text gui.command_entry.entry_text (string)\nThe text in the entry.
eol_mode buffer.eol_mode (number)\nThe current end of line mode.\n\n* `_SCINTILLA.constants.SC_EOL_CRLF` (0)\n "CR+LF" ("\r\n").\n* `_SCINTILLA.constants.SC_EOL_CR` (1)\n "CR" ("\r").\n* `_SCINTILLA.constants.SC_EOL_LF` (2)\n "LF" ("\n").\n\nThe default value is `0` on Windows platforms, `2` otherwise.
error _G.error(message [, level])\nTerminates the last protected function called and returns `message`\nas the error message. Function `error` never returns.\n\nUsually, `error` adds some information about the error position at the\nbeginning of the message, if the message is a string. The `level` argument\nspecifies how to get the error position. With level 1 (the default), the\nerror position is where the `error` function was called. Level 2 points the\nerror to where the function that called `error` was called; and so on.\nPassing a level 0 avoids the addition of error position information to the\nmessage.
-error_detail _M.textadept.run.error_detail (table)\nMap of lexer names to their error string details, tables containing the\nfollowing fields:\n\n + `pattern`: A Lua pattern that matches the language's error string,\n capturing the filename the error occurs in, the line number the error\n occurred on, and optionally the error message.\n + `filename`: The numeric index of the Lua capture containing the filename\n the error occurred in.\n + `line`: The numeric index of the Lua capture containing the line number\n the error occurred on.\n + `message`: (Optional) The numeric index of the Lua capture containing the\n error's message. An annotation will be displayed if a message was\n captured.\n\nWhen an error message is double-clicked, the user is taken to the point of\nerror.\nThis table is usually populated by language-specific modules.
+error_detail _M.textadept.run.error_detail (table)\nMap of lexer names to their error string details, tables containing the\nfollowing fields:\n\n + `pattern`: A Lua pattern that matches the language's error string,\n capturing the filename the error occurs in, the line number the error\n occurred on, and optionally the error message.\n + `filename`: The numeric index of the Lua capture containing the filename\n the error occurred in.\n + `line`: The numeric index of the Lua capture containing the line number\n the error occurred on.\n + `message`: (Optional) The numeric index of the Lua capture containing the\n error's message. An annotation will be displayed if a message was\n captured.\n\nWhen an error message is double-clicked, the user is taken to the point of\nerror.\nThis table is usually populated by language modules.
events _G.events (module)\nTextadept's core event structure and handlers.
execute os.execute([command])\nThis function is equivalent to the ANSI C function `system`. It passes\n`command` to be executed by an operating system shell. Its first result is\n`true` if the command terminated successfully, or `nil` otherwise. After this\nfirst result the function returns a string and a number, as follows:\n "exit": the command terminated normally; the following number is the exit\n status of the command.\n "signal": the command was terminated by a signal; the following number is\n the signal that terminated the command.\n\nWhen called without a `command`, `os.execute` returns a boolean that is true\nif a shell is available.
execute_lua gui.command_entry.execute_lua(code)\nExecutes string *code* as Lua code.\nCode is subject to an "abbreviated" environment where the `buffer`, `view`,\nand `gui` tables are also considered as globals.\nPrints the results of '=' expressions like in the Lua prompt.\n@param code The Lua code to execute.
@@ -1070,10 +1070,11 @@ exit os.exit([code [, close]])\nCalls the ANSI C function `exit` to terminate th
exp math.exp(x)\nReturns the value *e^x*.
expand_children buffer.expand_children(buffer, line, level)\nExpands the fold states of the fold header on line number *line* and its\nchildren with fold level *level*.\n@param buffer The global buffer.\n@param line The line number in *buffer* to expand the folds for.\n@param level The previous fold level of *line*, not the current one. This is\n because this function is used to respond to changes in a line's fold level\n or fold header status, so a new fold level has already been set.
extend lexer.extend (pattern)\nA pattern matching any ASCII extended character (`0`..`255`).
-extensions _M.textadept.mime_types.extensions (table)\nMap of file extensions (excluding the leading '.') to their associated\nlexers.\nIf the file type is not recognized by shebang words or first-line patterns,\neach file extension is matched against the file's extension.
+extensions _M.textadept.file_types.extensions (table)\nMap of file extensions (excluding the leading '.') to their associated\nlexers.\nIf the file type is not recognized by shebang words or first-line patterns,\neach file extension is matched against the file's extension.
extra_ascent buffer.extra_ascent (number)\nThe amount of pixel padding above line text.\nThe default value is `0`.
extra_descent buffer.extra_descent (number)\nThe amount of pixel padding below line text.\nThe default is `0`.
extract bit32.extract(n, field [, width])\nReturns the unsigned number formed by the bits `field` to `field + width - 1`\nfrom `n`. Bits are numbered from 0 (least significant) to 31 (most\nsignificant). All accessed bits must be in the range [0, 31].\n\nThe default for `width` is 1.
+file_types _M.textadept.file_types (module)\nHandles file type detection for Textadept.
filename buffer.filename (string)\nThe UTF-8-encoded absolute path to the file associated with the buffer.\nUse `string.iconv()` and `_G._CHARSET` for charset conversions.
filter_through _M.textadept.editing.filter_through(cmd)\nPasses selected or all buffer text to string shell command *cmd* as standard\ninput (stdin) and replaces the input text with the command's standard output\n(stdout).\nStandard input is as follows:\n\n1. If text is selected and spans multiple lines, all text on the lines\ncontaining the selection is used. However, if the end of the selection is at\nthe beginning of a line, only the EOL (end of line) characters from the\nprevious line are included as input. The rest of the line is excluded.\n2. If text is selected and spans a single line, only the selected text is\nused.\n3. If no text is selected, the entire buffer is used.\n@param cmd The Linux, BSD, Mac OSX, or Windows shell command to filter text\n through.
filteredlist gui.filteredlist(title, columns, items, int_return, ...)\nConvenience function for `gui.dialog('filteredlist', ...)` with "Ok" and\n"Cancel" buttons that returns the text or index of the selection depending on\nthe boolean value of *int_return*.\n*title* is the title of the dialog, *columns* is a list of column names, and\n*items* is a list of items to show.\n@param title The title for the filtered list dialog.\n@param columns A column name or list of column names.\n@param items An item or list of items.\n@param int_return Optional flag indicating whether to return the integer\n index of the selected item in the filtered list or the string selected\n item. A `true` value is not compatible with the `'--select-multiple'`\n option. The default value is `false`.\n@param ... Optional additional parameters to pass to `gui.dialog()`.\n@usage gui.filteredlist('Title', 'Foo', {'Bar', 'Baz'})\n@usage gui.filteredlist('Title', {'Foo', 'Bar'}, {'a', 'b', 'c', 'd'}, false,\n '--output-column', '2')\n@return Either a string or integer on success; `nil` otherwise. In strings,\n multiple items are separated by newlines.\n@see dialog
@@ -1124,7 +1125,7 @@ get_line buffer.get_line(buffer, line)\nReturns the text on line number *line*,
get_line_sel_end_position buffer.get_line_sel_end_position(buffer, line)\nReturns the position of the end of the selected text on line number *line*,\nor `-1`.\n@param buffer The global buffer.\n@param line The line number in *buffer* to use.
get_line_sel_start_position buffer.get_line_sel_start_position(buffer, line)\nReturns the position of the beginning of the selected text on line number\n*line*, or `-1`.\n@param buffer The global buffer.\n@param line The line number in *buffer* to use.
get_property lexer.get_property(key, default)\nReturns the string property value associated with string property *key*, or\n*default*.\n@param key The string property key.\n@param default Optional value to return if *key* is not set.\n@return property value
-get_property_expanded M.get_property_expanded(key)\nReturns the string property value associated with string property *key*,\nreplacing any "$()" and "%()" expressions with the values of their keys.\n@param key The string property key.\n@return property value
+get_property_expanded lexer.get_property_expanded(key)\nReturns the string property value associated with string property *key*,\nreplacing any "$()" and "%()" expressions with the values of their keys.\n@param key The string property key.\n@return property value
get_sel_text buffer.get_sel_text(buffer)\nReturns the selected text and its length.\nMultiple selections are included in order with no delimiters. Rectangular\nselections are included from top to bottom with line ending delimiters.\nVirtual space is not included.\n@param buffer The global buffer.\n@return string, number
get_split_table gui.get_split_table()\nReturns the current split view structure.\nThis is primarily used in session saving.\n@return table of split views. Each split view entry is a table with 4\n fields: `1`, `2`, `vertical`, and `size`. `1` and `2` have values of either\n nested split view entries or the views themselves; `vertical` is a flag\n indicating if the split is vertical or not; and `size` is the integer\n position of the split resizer.
get_style_at lexer.get_style_at(pos)\nReturns the string style name and style number at position *pos* in the\nbuffer.\n@param pos The position in the buffer to get the style for.\n@return style name\n@return style number
@@ -1218,7 +1219,7 @@ lexer _G.lexer (module)\nLexes Scintilla documents with Lua and LPeg.
lexer buffer.lexer (number)\nThe numeric ID of the Scintilla lexer used by the buffer.
lexer lexer.lexer (table)\nIndividual lexer fields.
lexer_language buffer.lexer_language (string)\nThe name of the Scintilla lexer used by the buffer.\nYou probably want to use `buffer:get_lexer()` instead.
-lexers _M.textadept.mime_types.lexers (table)\nList of available lexers.
+lexers _M.textadept.file_types.lexers (table)\nList of available lexers.
lfs _G.lfs (module)\nLua lfs module.
line_copy buffer.line_copy(buffer)\nCopies the current line to the clipboard.\n@param buffer The global buffer.
line_count buffer.line_count (number, Read-only)\nThe number of lines in the buffer.\nThere is always at least one.
@@ -1320,7 +1321,6 @@ max_line_state buffer.max_line_state (number, Read-only)\nThe last line number w
menu _M.textadept.menu (module)\nDefines the menus used by Textadept.\nIf applicable, load this module last in your *~/.textadept/init.lua*, after\n`_M.textadept.keys` since it looks up defined key commands to show them in\nmenus.
menu gui.menu(menu_table)\nLow-level function for creating a menu from table *menu_table* and returning\nthe userdata.\nYou probably want to use the higher-level `_M.textadept.menu.set_menubar()`\nor `_M.textadept.menu.set_contextmenu()` functions. Emits a `MENU_CLICKED`\nevent when a menu item is selected.\n@param menu_table A table defining the menu. It is an ordered list of tables\n with a string menu item, integer menu ID, and optional GDK keycode and\n modifier mask. The latter two are used to display key shortcuts in the\n menu. '_' characters are treated as a menu mnemonics. If the menu item is\n empty, a menu separator item is created. Submenus are just nested\n menu-structure tables. Their title text is defined with a `title` key.\n@usage gui.menu{{'_New', 1}, {'_Open', 2}, {''}, {'_Quit', 4}}\n@usage gui.menu{{'_New', 1, string.byte('n'), 4}} -- 'Ctrl+N'\n@see events.MENU_CLICKED\n@see _M.textadept.menu.set_menubar\n@see _M.textadept.menu.set_contextmenu
menubar gui.menubar (table)\nA table of menus defining a menubar. (Write-only)\n@see _M.textadept.menu.set_menubar
-mime_types _M.textadept.mime_types (module)\nHandles file type detection for Textadept.
min math.min(x, ···)\nReturns the minimum value among its arguments.
mkdir lfs.mkdir(dirname)\nCreates a new directory. The argument is the name of the new directory.\n\nReturns true if the operation was successful; in case of error, it returns\nnil plus an error string.
modf math.modf(x)\nReturns two numbers, the integral part of `x` and the fractional part of\n`x`.
@@ -1364,7 +1364,7 @@ para_up buffer.para_up(buffer)\nMoves the caret one paragraph up.\nParagraphs ar
para_up_extend buffer.para_up_extend(buffer)\nMoves the caret one paragraph up, extending the selected text to the new\nposition.\nParagraphs are surrounded by one or more blank lines.\n@param buffer The global buffer.
paste buffer.paste(buffer)\nPastes the contents of the clipboard into the buffer, replacing the selected\ntext depending on `buffer.multi_paste`.\n@param buffer The global buffer.
path package.path (string)\nThe path used by `require` to search for a Lua loader.\nAt start-up, Lua initializes this variable with the value of the\nenvironment variable `LUA_PATH_5_2` or the environment variable `LUA_PATH`\nor with a default path defined in `luaconf.h`, if those environment\nvariables are not defined. Any "`;;`" in the value of the environment\nvariable is replaced by the default path.
-patterns _M.textadept.mime_types.patterns (table)\nMap of first-line patterns to their associated lexers.\nIf a file type is not recognized by shebang words, each pattern is matched\nagainst the first line in the file.
+patterns _M.textadept.file_types.patterns (table)\nMap of first-line patterns to their associated lexers.\nIf a file type is not recognized by shebang words, each pattern is matched\nagainst the first line in the file.
pcall _G.pcall(f [, arg1, ···])\nCalls function `f` with the given arguments in *protected mode*. This\nmeans that any error inside `f` is not propagated; instead, `pcall` catches\nthe error and returns a status code. Its first result is the status code (a\nboolean), which is true if the call succeeds without errors. In such case,\n`pcall` also returns all results from the call, after this first result. In\ncase of any error, `pcall` returns false plus the error message.
php _G.keys.php (table)\nContainer for PHP-specific key bindings.
php _G.snippets.php (table)\nContainer for PHP-specific snippets.
@@ -1438,7 +1438,7 @@ replace_sel buffer.replace_sel(buffer, text)\nReplaces the selected text with st
replace_target buffer.replace_target(buffer, text)\nReplaces the text in the target range with string *text*, returning the\nlength of *text*.\nThe recommended way to delete text in the buffer is to set the target to the\ntext to be removed, and to call this function with an empty string.\n@param buffer The global buffer.\n@param text The text to replace the target range with.\n@return number
replace_target_re buffer.replace_target_re(buffer, text)\nReplaces the text in the target range with string *text* after replacing any\n"\d" sequences, where `d` is a number in the range of `1` to `9`, with the\ntag match values from the regular expression or the entire match for "\0",\nreturning the length of the replacement text.\n@param buffer The global buffer.\n@param text The text to replace the target range with.\n@return number
require _G.require(modname)\nLoads the given module. The function starts by looking into the\n`package.loaded` table to determine whether `modname` is already\nloaded. If it is, then `require` returns the value stored at\n`package.loaded[modname]`. Otherwise, it tries to find a *loader* for\nthe module.\n\nTo find a loader, `require` is guided by the `package.searchers` sequence. By\nchanging this sequence, we can change how `require` looks for a module. The\nfollowing explanation is based on the default configuration for\n`package.searchers`.\n\nFirst `require` queries `package.preload[modname]`. If it has a value,\nthis value (which should be a function) is the loader. Otherwise `require`\nsearches for a Lua loader using the path stored in `package.path`. If\nthat also fails, it searches for a C loader using the path stored in\n`package.cpath`. If that also fails, it tries an *all-in-one* loader (see\n`package.searchers`).\n\nOnce a loader is found, `require` calls the loader with two arguments:\n`modname` and an extra value dependent on how it got the loader. (If the\nloader came from a file, this extra value is the file name.) If the loader\nreturns any non-nil value, `require` assigns the returned value to\n`package.loaded[modname]`. If the loader does not return a non-nil value and\nhas not assigned any value to `package.loaded[modname]`, then `require`\nassigns <b>true</b> to this entry. In any case, `require` returns the final\nvalue of `package.loaded[modname]`.\n\nIf there is any error loading or running the module, or if it cannot find\nany loader for the module, then `require` raises an error.
-reset _G.reset()\nResets the Lua state by reloading all initialization scripts.\nLanguage-specific modules for opened files are NOT reloaded. Re-opening the\nfiles that use them will reload those modules instead.\nThis function is useful for modifying user scripts (such as\n*~/.textadept/init.lua* and *~/.textadept/modules/textadept/keys.lua*) on\nthe fly without having to restart Textadept. `arg` is set to `nil` when\nreinitializing the Lua State. Any scripts that need to differentiate between\nstartup and reset can test `arg`.
+reset _G.reset()\nResets the Lua state by reloading all initialization scripts.\nLanguage modules for opened files are NOT reloaded. Re-opening the files that\nuse them will reload those modules instead.\nThis function is useful for modifying user scripts (such as\n*~/.textadept/init.lua* and *~/.textadept/modules/textadept/keys.lua*) on\nthe fly without having to restart Textadept. `arg` is set to `nil` when\nreinitializing the Lua State. Any scripts that need to differentiate between\nstartup and reset can test `arg`.
resume coroutine.resume(co [, val1, ···])\nStarts or continues the execution of coroutine `co`. The first time\nyou resume a coroutine, it starts running its body. The values `val1`,\n... are passed as the arguments to the body function. If the coroutine\nhas yielded, `resume` restarts it; the values `val1`, ... are passed\nas the results from the yield.\n\nIf the coroutine runs without any errors, `resume` returns true plus any\nvalues passed to `yield` (if the coroutine yields) or any values returned\nby the body function (if the coroutine terminates). If there is any error,\n`resume` returns false plus the error message.
reverse string.reverse(s)\nReturns a string that is the string `s` reversed.
rgba_image_height buffer.rgba_image_height (number)\nThe height for an RGBA image to be defined using\n`buffer:marker_define_rgba_image()`.
@@ -1454,9 +1454,9 @@ rshift bit32.rshift(x, disp)\nReturns the number `x` shifted `disp` bits to the
ruby _G.keys.ruby (table)\nContainer for Ruby-specific key bindings.
ruby _G.snippets.ruby (table)\nContainer for Ruby-specific snippets.
ruby _M.ruby (module)\nThe ruby module.\nIt provides utilities for editing Ruby code.
-run _M.textadept.run (module)\nCompile and run/execute source files with Textadept.\nTypically, language-specific modules populate the `compile_command`,\n`run_command`, and `error_detail` tables for a particular language's file\nextension.
+run _M.textadept.run (module)\nCompile and run/execute source files with Textadept.\nTypically, language modules populate the `compile_command`,\n`run_command`, and `error_detail` tables for a particular language's file\nextension.
run _M.textadept.run.run()\nRuns/executes the file based on its extension using the command from the\n`run_command` table.\nEmits a `RUN_OUTPUT` event.\n@see run_command\n@see _G.events
-run_command _M.textadept.run.run_command (table)\nMap of file extensions (excluding the leading '.') to their associated\n"run" shell command line strings or functions returning such strings.\nCommand line strings may have the following macros:\n\n + `%(filepath)`: The full path of the current file.\n + `%(filedir)`: The current file's directory path.\n + `%(filename)`: The name of the file, including its extension.\n + `%(filename_noext)`: The name of the file, excluding its extension.\n\nThis table is typically populated by language-specific modules.
+run_command _M.textadept.run.run_command (table)\nMap of file extensions (excluding the leading '.') to their associated\n"run" shell command line strings or functions returning such strings.\nCommand line strings may have the following macros:\n\n + `%(filepath)`: The full path of the current file.\n + `%(filedir)`: The current file's directory path.\n + `%(filename)`: The name of the file, including its extension.\n + `%(filename_noext)`: The name of the file, excluding its extension.\n\nThis table is typically populated by language modules.
running coroutine.running()\nReturns the running coroutine plus a boolean, true when the running coroutine\nis the main one.
save _M.textadept.session.save(filename)\nSaves a Textadept session to file *filename* or a user-selected file.\nSaves split views, opened buffers, cursor information, and recent files.\n@param filename Optional absolute path to the session file to save. If `nil`,\n the user is prompted for one.\n@usage _M.textadept.session.save(filename)\n@see DEFAULT_SESSION
save buffer.save(buffer)\nSaves the buffer to the file.\nEmits `FILE_BEFORE_SAVE` and `FILE_AFTER_SAVE` events.\n@param buffer The global buffer.\n@see _G.events
@@ -1483,7 +1483,7 @@ select_all buffer.select_all(buffer)\nSelects all of the text in the buffer with
select_command _M.textadept.menu.select_command()\nPrompts the user to select a menu command to run.
select_enclosed _M.textadept.editing.select_enclosed(left, right)\nSelects the text in-between strings *left* and *right* containing the caret.\nIf already selected, toggles between selecting the *left* and *right*\nenclosures too.\n@param left The left part of the enclosure.\n@param right The right part of the enclosure.
select_indented_block _M.textadept.editing.select_indented_block()\nSelects indented text blocks intelligently.\nIf no block of text is selected, all text with the current level of\nindentation is selected. If a block of text is selected and the lines\nimmediately above and below it are one indentation level lower, they are\nadded to the selection. In all other cases, the behavior is the same as if no\ntext is selected.
-select_lexer _M.textadept.mime_types.select_lexer()\nPrompts the user to select a lexer for the current buffer.\n@see buffer.set_lexer
+select_lexer _M.textadept.file_types.select_lexer()\nPrompts the user to select a lexer for the current buffer.\n@see buffer.set_lexer
select_line _M.textadept.editing.select_line()\nSelects the current line.
select_paragraph _M.textadept.editing.select_paragraph()\nSelects the current paragraph.\nParagraphs are surrounded by one or more blank lines.
select_word _M.textadept.editing.select_word()\nSelects the current word.\n@see buffer.word_chars
@@ -1521,7 +1521,7 @@ set_fold_margin_hi_colour buffer.set_fold_margin_hi_colour(buffer, use_setting,
set_hotspot_active_back buffer.set_hotspot_active_back(buffer, use_setting, color)\nOverrides the default background color of active hotspots with *color*, in\n"0xBBGGRR" format, if *use_setting* is `true`.\n@param buffer The global buffer.\n@param use_setting Whether or not to use *color*.\n@param color The color in "0xBBGGRR" format.
set_hotspot_active_fore buffer.set_hotspot_active_fore(buffer, use_setting, color)\nOverrides the default foreground color of active hotspots with *color*, in\n"0xBBGGRR" format, if *use_setting* is `true`.\n@param buffer The global buffer.\n@param use_setting Whether or not to use *color*.\n@param color The color in "0xBBGGRR" format.
set_length_for_encode buffer.set_length_for_encode(buffer, bytes)\nSets the length of *string* in `buffer:encoded_from_utf8()` to *bytes*.\n@param buffer The global buffer.\n@param bytes The number of bytes to encode, or `-1` for measuring to first\n null byte.
-set_lexer buffer.set_lexer(buffer, lang)\nSets the name of the lexer used by the buffer to *lang* or the auto-detected\nlanguage and then loads the appropriate language-specific module if the\nmodule exists.\n@param buffer The global buffer.\n@param lang Optional string language name to set. If `nil`, attempts to\n auto-detect the buffer's language.\n@usage buffer.set_lexer(buffer, 'language_name')
+set_lexer buffer.set_lexer(buffer, lang)\nSets the name of the lexer used by the buffer to *lang* or the auto-detected\nlanguage and then loads the appropriate language module if the module exists.\n@param buffer The global buffer.\n@param lang Optional string language name to set. If `nil`, attempts to\n auto-detect the buffer's language.\n@usage buffer.set_lexer(buffer, 'language_name')
set_menubar _M.textadept.menu.set_menubar(menubar)\nSets `gui.menubar` from *menubar*, a table of menus.\nEach menu is an ordered list of menu items and has a `title` key for the\ntitle text. Menu items are tables containing menu text and either a function\nto call or a table containing a function with its parameters to call when an\nitem is clicked. Menu items may also be sub-menus, ordered lists of menu\nitems with an additional `title` key for the sub-menu's title text.\n@param menubar The table of menu tables to create the menubar from.\n@see gui.menubar\n@see gui.menu
set_property lexer.set_property(key, value)\nAssociates string property *key* with string *value*.\n@param key The string property key.\n@param value The string value.
set_save_point buffer.set_save_point(buffer)\nTells Scintilla the buffer has no unsaved changes.\n@param buffer The global buffer.
@@ -1547,7 +1547,7 @@ setmode lfs.setmode(file, mode)\nSets the writing mode for a file. The mode stri
setupvalue debug.setupvalue(f, up, value)\nThis function assigns the value `value` to the upvalue with index `up`\nof the function `f`. The function returns nil if there is no upvalue with the\ngiven index. Otherwise, it returns the name of the upvalue.
setuservalue debug.setuservalue(udata, value)\nSets the given `value` as the Lua value associated to the given `udata`.\n`value` must be a table or nil; `udata` must be a full userdata.\n\nReturns `udata`.
setvbuf file:setvbuf(mode [, size])\nSets the buffering mode for an output file. There are three available\nmodes:\n "no": no buffering; the result of any output operation appears immediately.\n "full": full buffering; output operation is performed only when the\n buffer is full or when you explicitly `flush` the file (see\n `io.flush`).\n "line": line buffering; output is buffered until a newline is output or\n there is any input from some special files (such as a terminal\n device).\n\nFor the last two cases, `size` specifies the size of the buffer, in\nbytes. The default is an appropriate size.
-shebangs _M.textadept.mime_types.shebangs (table)\nMap of shebang words to their associated lexers.\nIf the file has a shebang line, a line that starts with "#!" and is the first\nline in the file, each shebang word is matched against that line.
+shebangs _M.textadept.file_types.shebangs (table)\nMap of shebang words to their associated lexers.\nIf the file has a shebang line, a line that starts with "#!" and is the first\nline in the file, each shebang word is matched against that line.
show_apidoc _M.textadept.adeptsense.show_apidoc(sense)\nShows a call tip with API documentation for the symbol behind the caret.\nIf documentation is already being shown, cycles through multiple definitions.\n@param sense The Adeptsense returned by `adeptsense.new()`. If `nil`, uses\n the current language's Adeptsense (if it exists).\n@return list of apidocs on success or `nil`.\n@see get_symbol\n@see get_apidoc
show_completions gui.command_entry.show_completions(completions)\nShows the completion list *completions* for the current word prefix.\nWord prefix characters are alphanumerics and underscores. On selection, the\nword prefix is replaced with the completion.\n@param completions The table of completions to show. Non-string values are\n ignored.
show_lines buffer.show_lines(buffer, start_line, end_line)\nShows the range of lines from line number *start_line* to *end_line*.\nThis has no effect on fold levels or fold flags and the first line cannot be\nhidden.\n@param buffer The global buffer.\n@param start_line The start line of the range of lines in *buffer* to show.\n@param end_line The end line of the range of lines in *buffer* to show.
diff --git a/modules/lua/tags b/modules/lua/tags
index f74c08ab..69961f5c 100644
--- a/modules/lua/tags
+++ b/modules/lua/tags
@@ -826,9 +826,9 @@ _M.textadept _ 0;" m
_M.textadept.adeptsense _ 0;" m
_M.textadept.bookmarks _ 0;" m
_M.textadept.editing _ 0;" m
+_M.textadept.file_types _ 0;" m
_M.textadept.keys _ 0;" m
_M.textadept.menu _ 0;" m
-_M.textadept.mime_types _ 0;" m
_M.textadept.run _ 0;" m
_M.textadept.session _ 0;" m
_M.textadept.snippets _ 0;" m
@@ -1099,10 +1099,11 @@ exit _ 0;" f class:os
exp _ 0;" f class:math
expand_children _ 0;" f class:buffer
extend _ 0;" F class:lexer
-extensions _ 0;" t class:_M.textadept.mime_types
+extensions _ 0;" t class:_M.textadept.file_types
extra_ascent _ 0;" F class:buffer
extra_descent _ 0;" F class:buffer
extract _ 0;" f class:bit32
+file_types _ 0;" t class:_M.textadept
filename _ 0;" F class:buffer
filter_through _ 0;" f class:_M.textadept.editing
filteredlist _ 0;" f class:gui
@@ -1253,7 +1254,7 @@ lexer _ 0;" m
lexer _ 0;" t
lexer _ 0;" t class:lexer
lexer_language _ 0;" F class:buffer
-lexers _ 0;" t class:_M.textadept.mime_types
+lexers _ 0;" t class:_M.textadept.file_types
lfs _ 0;" m
lfs _ 0;" t
line_copy _ 0;" f class:buffer
@@ -1358,7 +1359,6 @@ max_line_state _ 0;" F class:buffer
menu _ 0;" f class:gui
menu _ 0;" t class:_M.textadept
menubar _ 0;" t class:gui
-mime_types _ 0;" t class:_M.textadept
min _ 0;" f class:math
mkdir _ 0;" f class:lfs
modf _ 0;" f class:math
@@ -1404,7 +1404,7 @@ para_up _ 0;" f class:buffer
para_up_extend _ 0;" f class:buffer
paste _ 0;" f class:buffer
path _ 0;" F class:package
-patterns _ 0;" t class:_M.textadept.mime_types
+patterns _ 0;" t class:_M.textadept.file_types
pcall _ 0;" f
php _ 0;" t class:_M
php _ 0;" t class:keys
@@ -1523,7 +1523,7 @@ select_all _ 0;" f class:buffer
select_command _ 0;" f class:_M.textadept.menu
select_enclosed _ 0;" f class:_M.textadept.editing
select_indented_block _ 0;" f class:_M.textadept.editing
-select_lexer _ 0;" f class:_M.textadept.mime_types
+select_lexer _ 0;" f class:_M.textadept.file_types
select_line _ 0;" f class:_M.textadept.editing
select_paragraph _ 0;" f class:_M.textadept.editing
select_word _ 0;" f class:_M.textadept.editing
@@ -1587,7 +1587,7 @@ setmode _ 0;" f class:lfs
setupvalue _ 0;" f class:debug
setuservalue _ 0;" f class:debug
setvbuf _ 0;" f class:file
-shebangs _ 0;" t class:_M.textadept.mime_types
+shebangs _ 0;" t class:_M.textadept.file_types
show_apidoc _ 0;" f class:_M.textadept.adeptsense
show_completions _ 0;" f class:gui.command_entry
show_lines _ 0;" f class:buffer