diff options
author | 2012-01-05 05:20:39 -0500 | |
---|---|---|
committer | 2012-01-05 05:20:39 -0500 | |
commit | 2ab6deaecb4576c932dd63186927e9481bf5dedc (patch) | |
tree | 2574adf1f9c7a789456c1e467c0d98a17a4609b6 /modules/lua | |
parent | 6143b96a6d71a0d8d04ed7d4ddc3696a141112c7 (diff) | |
download | textadept-2ab6deaecb4576c932dd63186927e9481bf5dedc.tar.gz textadept-2ab6deaecb4576c932dd63186927e9481bf5dedc.zip |
Rename '_m' to '_M'.
Diffstat (limited to 'modules/lua')
-rw-r--r-- | modules/lua/api | 300 | ||||
-rw-r--r-- | modules/lua/init.lua | 18 | ||||
-rw-r--r-- | modules/lua/tags | 344 |
3 files changed, 329 insertions, 333 deletions
diff --git a/modules/lua/api b/modules/lua/api index 50128891..3b71a85d 100644 --- a/modules/lua/api +++ b/modules/lua/api @@ -1,10 +1,9 @@ -= nil _G.= nil [module]\n\n ANNOTATION_BOXED _SCINTILLA.constants.ANNOTATION_BOXED\n2\n ANNOTATION_HIDDEN _SCINTILLA.constants.ANNOTATION_HIDDEN\n0\n ANNOTATION_STANDARD _SCINTILLA.constants.ANNOTATION_STANDARD\n1\n APPLEEVENT_ODOC events.APPLEEVENT_ODOC\nCalled when Mac OSX tells Textadept to open a document.\n * `uri`: The URI to open.\n\n -AUTOINDENT _m.textadept.editing.AUTOINDENT [bool]\nMatch the indentation level of the previous line when pressing the Enter\nkey. The default value is `true`.\n -AUTOPAIR _m.textadept.editing.AUTOPAIR [bool]\nOpening `(`, `[`, `[`, `"`, or `'` characters are automatically closed. The\ndefault value is `true`.\n +AUTOINDENT _M.textadept.editing.AUTOINDENT [bool]\nMatch the indentation level of the previous line when pressing the Enter\nkey. The default value is `true`.\n +AUTOPAIR _M.textadept.editing.AUTOPAIR [bool]\nOpening `(`, `[`, `[`, `"`, or `'` characters are automatically closed. The\ndefault value is `true`.\n AUTO_C_CHAR_DELETED events.AUTO_C_CHAR_DELETED\nCalled when the user deleted a character while the autocompletion list\nwas active.\n AUTO_C_RELEASE events.AUTO_C_RELEASE\nCalled when the user has cancelled the autocompletion list.\n AUTO_C_SELECTION events.AUTO_C_SELECTION\nCalled when the user has selected an item in an autocompletion list and before\nthe selection is inserted. Automatic insertion can be cancelled by calling\n`buffer:auto_c_cancel()` before returning from the event handler.\n * `text`: The text of the selection.\n * `position`: The start position of the word being completed.\n\n @@ -39,8 +38,8 @@ Cp lpeg.Cp()\nCreates a position capture. It matches the empty string and captur Cs lpeg.Cs(patt)\nCreates a substitution capture, which captures the substring of the subject\nthat matches patt, with substitutions. For any capture inside patt with\na value, the substring that matched the capture is replaced by the capture\nvalue (which should be a string). The final captured value is the string\nresulting from all replacements.\n Ct lpeg.Ct(patt)\nCreates a table capture. This capture creates a table and puts all values\nfrom all anonymous captures made by patt inside this table in successive\ninteger keys, starting at 1. Moreover, for each named capture group created\nby patt, the first value of the group is put into the table with the group\nname as its key. The captured value is only the table.\n DEFAULT lexer.DEFAULT\n\n -DEFAULT_DEPTH _m.textadept.snapopen.DEFAULT_DEPTH [number]\nMaximum directory depth to search. The default value is `4`.\n -DEFAULT_SESSION _m.textadept.session.DEFAULT_SESSION [string]\nThe path to the default session file.\n +DEFAULT_DEPTH _M.textadept.snapopen.DEFAULT_DEPTH [number]\nMaximum directory depth to search. The default value is `4`.\n +DEFAULT_SESSION _M.textadept.session.DEFAULT_SESSION [string]\nThe path to the default session file.\n DOUBLE_CLICK events.DOUBLE_CLICK\nCalled when the mouse button is double-clicked.\n * `position`: The text position of the double click.\n * `line`: The line of the double click.\n * `modifiers`: The key modifiers held down. It is a combination of zero\n or more of `_SCINTILLA.constants.SCMOD_ALT`,\n `_SCINTILLA.constants.SCMOD_CTRL`,\n `_SCINTILLA.constants.SCMOD_SHIFT`, and\n `_SCINTILLA.constants.SCMOD_META`.\n\n DWELL_END events.DWELL_END\nCalled after a `DWELL_START` and the mouse is moved or other activity such\nas key press indicates the dwell is over.\n * `position`: The nearest position in the document to the position\n where the mouse pointer was lingering.\n * `x`: Where the pointer lingered.\n * `y`: Where the pointer lingered.\n\n DWELL_START events.DWELL_START\nCalled when the user keeps the mouse in one position for the dwell period\n(see `_SCINTILLA.constants.SCI_SETMOUSEDWELLTIME`).\n * `position`: The nearest position in the document to the position\n where the mouse pointer was lingering.\n * `x`: Where the pointer lingered.\n * `y`: Where the pointer lingered.\n\n @@ -49,15 +48,15 @@ EDGE_LINE _SCINTILLA.constants.EDGE_LINE\n1\n EDGE_NONE _SCINTILLA.constants.EDGE_NONE\n0\n ERROR events.ERROR\nCalled when an error occurs.\n * `text`: The error text.\n\n ERROR lexer.ERROR\n\n -FIELDS _m.textadept.adeptsense.FIELDS [string]\nXPM image for Adeptsense fields.\n +FIELDS _M.textadept.adeptsense.FIELDS [string]\nXPM image for Adeptsense fields.\n FILE_AFTER_SAVE events.FILE_AFTER_SAVE\nCalled right after a file is saved to disk. Arguments:\n * `filename`: The filename encoded in UTF-8.\n\n FILE_BEFORE_SAVE events.FILE_BEFORE_SAVE\nCalled right before a file is saved to disk. Arguments:\n * `filename`: The filename encoded in UTF-8.\n\n FILE_OPENED events.FILE_OPENED\nCalled when a file is opened in a new buffer. Arguments:\n * `filename`: The filename encoded in UTF-8.\n\n FILE_SAVED_AS events.FILE_SAVED_AS\nCalled when a file is saved under a different filename. Arguments:\n * `filename`: The filename encoded in UTF-8.\n\n FIND events.FIND\nCalled when finding text via the Find dialog box.\n * `text`: The text to search for.\n * `next`: Search forward.\n\n FUNCTION lexer.FUNCTION\n\n -FUNCTIONS _m.textadept.adeptsense.FUNCTIONS [string]\nXPM image for Adeptsense functions.\n -HIGHLIGHT_BRACES _m.textadept.editing.HIGHLIGHT_BRACES [bool]\nHighlight matching `()[]{}<>` characters. The default value is `true`.\n +FUNCTIONS _M.textadept.adeptsense.FUNCTIONS [string]\nXPM image for Adeptsense functions.\n +HIGHLIGHT_BRACES _M.textadept.editing.HIGHLIGHT_BRACES [bool]\nHighlight matching `()[]{}<>` characters. The default value is `true`.\n HOTSPOT_CLICK events.HOTSPOT_CLICK\nCalled when the user clicks on text that is in a style with the hotspot\nattribute set.\n * `position`: The text position of the click.\n * `modifiers`: The key modifiers held down. It is a combination of zero\n or more of `_SCINTILLA.constants.SCMOD_ALT`,\n `_SCINTILLA.constants.SCMOD_CTRL`,\n `_SCINTILLA.constants.SCMOD_SHIFT`, and\n `_SCINTILLA.constants.SCMOD_META`.\n\n HOTSPOT_DOUBLE_CLICK events.HOTSPOT_DOUBLE_CLICK\nCalled when the user double clicks on text that is in a style with the\nhotspot attribute set.\n * `position`: The text position of the double click.\n * `modifiers`: The key modifiers held down. It is a combination of zero\n or more of `_SCINTILLA.constants.SCMOD_ALT`,\n `_SCINTILLA.constants.SCMOD_CTRL`,\n `_SCINTILLA.constants.SCMOD_SHIFT`, and\n `_SCINTILLA.constants.SCMOD_META`.\n\n HOTSPOT_RELEASE_CLICK events.HOTSPOT_RELEASE_CLICK\nCalled when the user releases the mouse on text that is in a style with the\nhotspot attribute set.\n * `position`: The text position of the release.\n\n @@ -75,8 +74,8 @@ INDIC_DIAGONAL _SCINTILLA.constants.INDIC_DIAGONAL\n3\n INDIC_DOTBOX _SCINTILLA.constants.INDIC_DOTBOX\n12\n INDIC_DOTS _SCINTILLA.constants.INDIC_DOTS\n10\n INDIC_HIDDEN _SCINTILLA.constants.INDIC_HIDDEN\n5\n -INDIC_HIGHLIGHT_ALPHA _m.textadept.editing.INDIC_HIGHLIGHT_ALPHA [number]\nThe alpha transparency value between `0` (transparent) and `255` (opaque)\nused for an indicator for a highlighted word. The default value is `100`.\n -INDIC_HIGHLIGHT_BACK _m.textadept.editing.INDIC_HIGHLIGHT_BACK [number]\nThe color used for an indicator for a highlighted word in `0xBBGGRR` format.\n +INDIC_HIGHLIGHT_ALPHA _M.textadept.editing.INDIC_HIGHLIGHT_ALPHA [number]\nThe alpha transparency value between `0` (transparent) and `255` (opaque)\nused for an indicator for a highlighted word. The default value is `100`.\n +INDIC_HIGHLIGHT_BACK _M.textadept.editing.INDIC_HIGHLIGHT_BACK [number]\nThe color used for an indicator for a highlighted word in `0xBBGGRR` format.\n INDIC_MAX _SCINTILLA.constants.INDIC_MAX\n31\n INDIC_PLAIN _SCINTILLA.constants.INDIC_PLAIN\n0\n INDIC_ROUNDBOX _SCINTILLA.constants.INDIC_ROUNDBOX\n7\n @@ -95,16 +94,16 @@ LANGUAGE_MODULE_LOADED events.LANGUAGE_MODULE_LOADED\nCalled when loading a lang LANGUAGE_MODULE_PREFIX keys.LANGUAGE_MODULE_PREFIX [string]\nThe starting key command of the keychain reserved for language-specific\nmodules. Defaults to Ctrl/Cmd+L.\n MARGIN_CLICK events.MARGIN_CLICK\nCalled when the mouse is clicked inside a margin.\n * `margin`: The margin number that was clicked.\n * `position`: The position of the start of the line in the buffer that\n corresponds to the margin click.\n * `modifiers`: The appropriate combination of\n `_SCINTILLA.constants.SCI_SHIFT`, `_SCINTILLA.constants.SCI_CTRL`,\n and `_SCINTILLA.constants.SCI_ALT` to indicate the keys that were\n held down at the time of the margin click.\n\n MARKER_MAX _SCINTILLA.constants.MARKER_MAX\n31\n -MARK_BOOKMARK_COLOR _m.textadept.bookmarks.MARK_BOOKMARK_COLOR [number]\nThe color used for a bookmarked line in `0xBBGGRR` format.\n -MARK_HIGHLIGHT_BACK _m.textadept.editing.MARK_HIGHLIGHT_BACK [number]\nThe background color used for a line containing a highlighted word in\n`0xBBGGRR` format.\n -MAX _m.textadept.snapopen.MAX [number]\nMaximum number of files to list. The default value is `1000`.\n -MAX_RECENT_FILES _m.textadept.session.MAX_RECENT_FILES [number]\nThe maximum number of files from the recent files list to save to the\nsession. The default is `10`.\n +MARK_BOOKMARK_COLOR _M.textadept.bookmarks.MARK_BOOKMARK_COLOR [number]\nThe color used for a bookmarked line in `0xBBGGRR` format.\n +MARK_HIGHLIGHT_BACK _M.textadept.editing.MARK_HIGHLIGHT_BACK [number]\nThe background color used for a line containing a highlighted word in\n`0xBBGGRR` format.\n +MAX _M.textadept.snapopen.MAX [number]\nMaximum number of files to list. The default value is `1000`.\n +MAX_RECENT_FILES _M.textadept.session.MAX_RECENT_FILES [number]\nThe maximum number of files from the recent files list to save to the\nsession. The default is `10`.\n MENU_CLICKED events.MENU_CLICKED\nCalled when a menu item is selected.\n * `menu_id`: The numeric ID of the menu item set in `gui.gtkmenu()`.\n\n NUMBER lexer.NUMBER\n\n OPERATOR lexer.OPERATOR\n\n OSX _G.OSX [bool]\nIf Textadept is running on Mac OSX, this flag is `true`.\n P lpeg.P(value)\nConverts the given value into a proper pattern, according to the following\nrules: * If the argument is a pattern, it is returned unmodified. * If the\nargument is a string, it is translated to a pattern that matches literally\nthe string. * If the argument is a non-negative number n, the result is a\npattern that matches exactly n characters. * If the argument is a negative\nnumber -n, the result is a pattern that succeeds only if the input string\ndoes not have n characters: lpeg.P(-n) is equivalent to -lpeg.P(n) (see\nthe unary minus operation). * If the argument is a boolean, the result is\na pattern that always succeeds or always fails (according to the boolean\nvalue), without consuming any input. * If the argument is a table, it is\ninterpreted as a grammar (see Grammars). * If the argument is a function,\nreturns a pattern equivalent to a match-time capture over the empty string.\n -PATHS _m.textadept.snapopen.PATHS [table]\nTable of default UTF-8 paths to search.\n +PATHS _M.textadept.snapopen.PATHS [table]\nTable of default UTF-8 paths to search.\n PREPROCESSOR lexer.PREPROCESSOR\n\n QUIT events.QUIT\nCalled when quitting Textadept. When connecting to this event, connect with\nan index of 1 or the handler will be ignored.\n R lpeg.R({range})\nReturns a pattern that matches any single character belonging to one of\nthe given ranges. Each range is a string xy of length 2, representing all\ncharacters with code between the codes of x and y (both inclusive). As an\nexample, the pattern lpeg.R("09") matches any digit, and lpeg.R("az", "AZ")\nmatches any ASCII letter.\n @@ -116,7 +115,7 @@ RESET_AFTER events.RESET_AFTER\nCalled after resetting the Lua state. This is tr RESET_BEFORE events.RESET_BEFORE\nCalled before resetting the Lua state. This is triggered by `reset()`.\n RUN_OUTPUT events.RUN_OUTPUT\nCalled after a run command is executed. When connecting to this event\n(typically from a language-specific module), connect with an index of `1`\nand return `true` if the event was handled and you want to override the\ndefault handler that prints the output to a new view.\n * `lexer`: The lexer language.\n * `output`: The output from the command.\n\n S lpeg.S(string)\nReturns a pattern that matches any single character that appears in the given\nstring. (The S stands for Set.) As an example, the pattern lpeg.S("+-*/")\nmatches any arithmetic operator. Note that, if s is a character (that is,\na string of length 1), then lpeg.P(s) is equivalent to lpeg.S(s) which is\nequivalent to lpeg.R(s..s). Note also that both lpeg.S("") and lpeg.R()\nare patterns that always fail.\n -SAVE_ON_QUIT _m.textadept.session.SAVE_ON_QUIT [bool]\nSave the session when quitting. The default value is `true` and can be\ndisabled by passing the command line switch `-n` or `--nosession` to Textadept.\n +SAVE_ON_QUIT _M.textadept.session.SAVE_ON_QUIT [bool]\nSave the session when quitting. The default value is `true` and can be\ndisabled by passing the command line switch `-n` or `--nosession` to Textadept.\n SAVE_POINT_LEFT events.SAVE_POINT_LEFT\nCalled when a save point is left.\n SAVE_POINT_REACHED events.SAVE_POINT_REACHED\nCalled when a save point is entered.\n SCEN_CHANGE _SCINTILLA.constants.SCEN_CHANGE\n768\n @@ -688,7 +687,7 @@ SC_WRAP_CHAR _SCINTILLA.constants.SC_WRAP_CHAR\n2\n SC_WRAP_NONE _SCINTILLA.constants.SC_WRAP_NONE\n0\n SC_WRAP_WORD _SCINTILLA.constants.SC_WRAP_WORD\n1\n STRING lexer.STRING\n\n -STRIP_WHITESPACE_ON_SAVE _m.textadept.editing.STRIP_WHITESPACE_ON_SAVE [bool]\nStrip trailing whitespace on file save. The default value is `true`.\n +STRIP_WHITESPACE_ON_SAVE _M.textadept.editing.STRIP_WHITESPACE_ON_SAVE [bool]\nStrip trailing whitespace on file save. The default value is `true`.\n STYLE_BRACEBAD _SCINTILLA.constants.STYLE_BRACEBAD\n35\n STYLE_BRACELIGHT _SCINTILLA.constants.STYLE_BRACELIGHT\n34\n STYLE_CALLTIP _SCINTILLA.constants.STYLE_CALLTIP\n38\n @@ -718,25 +717,26 @@ _EMBEDDEDRULES lexer._EMBEDDEDRULES [table]\nSet of rules for an embedded lexer. _G _G._G [module]\nLua _G module.\n _G _G._G\nA global variable (not a function) that holds the global environment (see\n§2.2). Lua itself does not use this variable; changing its value does not\naffect any environment, nor vice-versa.\n _HOME _G._HOME [string]\nPath to the directory containing Textadept.\n +_L _G._L [table]\nContains all messages used by Textadept for localization.\n _LEXERPATH _G._LEXERPATH [string]\nPaths to lexers, formatted like `package.path`.\n +_M _G._M [module]\nA table of loaded modules.\n _RELEASE _G._RELEASE [string]\nThe Textadept release version.\n _RULES lexer._RULES [table]\nList of rule names with associated LPeg patterns for a specific lexer. It\nis accessible to other lexers for embedded lexer applications.\n _SCINTILLA _G._SCINTILLA [module]\nScintilla constants, functions, and properties. Do not modify anything in\nthis module. Doing so will result in instability.\n _USERHOME _G._USERHOME [string]\nPath to the user's `~/.textadept/`.\n _VERSION _G._VERSION [string]\nA global variable (not a function) that holds a string containing the current\ninterpreter version. The current contents of this variable is "`Lua 5.2`".\n _VIEWS _G._VIEWS [table]\nTable of all views in Textadept. Numeric keys have view values and view keys\nhave their associated numeric keys.\n -_cancel_current _m.textadept.snippets._cancel_current()\nCancels the active snippet, reverting to the state before its activation,\nand restores the previously running snippet (if any).\n -_insert _m.textadept.snippets._insert(text)\nInserts a snippet.\n@param text Optional snippet text. If none is specified, the snippet text\nis determined from the trigger and lexer.\n@return `false` if no snippet was expanded; `true` otherwise.\n -_m _G._m [module]\nA table of loaded modules.\n -_previous _m.textadept.snippets._previous()\nGoes back to the previous placeholder, reverting any changes from the\ncurrent one.\n@return `false` if no snippet is active; `nil` otherwise.\n -_print gui._print(buffer_type, ...)\nHelper function for printing messages to buffers. Splits the view and opens a\nnew buffer for printing messages. If the message buffer is already open and a\nview is currently showing it, the message is printed to that view. Otherwise\nthe view is split, goes to the open message buffer, and prints to it.\n@param buffer_type String type of message buffer.\n@param ... Message strings.\n@usage gui._print(L('[Error Buffer]'), error_message)\n@usage gui._print(L('[Message Buffer]'), message)\n -_select _m.textadept.snippets._select()\nPrompts the user to select a snippet to insert from a filtered list\ndialog. Global snippets and snippets in the current lexer are shown.\n +_cancel_current _M.textadept.snippets._cancel_current()\nCancels the active snippet, reverting to the state before its activation,\nand restores the previously running snippet (if any).\n +_insert _M.textadept.snippets._insert(text)\nInserts a snippet.\n@param text Optional snippet text. If none is specified, the snippet text\nis determined from the trigger and lexer.\n@return `false` if no snippet was expanded; `true` otherwise.\n +_previous _M.textadept.snippets._previous()\nGoes back to the previous placeholder, reverting any changes from the\ncurrent one.\n@return `false` if no snippet is active; `nil` otherwise.\n +_print gui._print(buffer_type, ...)\nHelper function for printing messages to buffers. Splits the view and opens a\nnew buffer for printing messages. If the message buffer is already open and a\nview is currently showing it, the message is printed to that view. Otherwise\nthe view is split, goes to the open message buffer, and prints to it.\n@param buffer_type String type of message buffer.\n@param ... Message strings.\n@usage gui._print(_L['[Error Buffer]'], error_message)\n@usage gui._print(_L['[Message Buffer]'], message)\n +_select _M.textadept.snippets._select()\nPrompts the user to select a snippet to insert from a filtered list\ndialog. Global snippets and snippets in the current lexer are shown.\n abs math.abs(x)\nReturns the absolute value of `x`.\n acos math.acos(x)\nReturns the arc cosine of `x` (in radians).\n -add _m.textadept.bookmarks.add()\nAdds a bookmark to the current line.\n +add _M.textadept.bookmarks.add()\nAdds a bookmark to the current line.\n add_selection buffer.add_selection(buffer, caret, anchor)\nAdd a selection from anchor to caret as the main selection. Retainings all\nother selections as additional selections. Since there is always at least one\nselection, to set a list of selections, the first selection should be added\nwith `buffer:set_selection()` and later selections added with this function.\n@param buffer The global buffer.\n@param caret The caret.\n@param anchor The anchor.\n add_text buffer.add_text(buffer, text)\nAdd text to the document at current position. The current position is set\nat the end of the inserted text, but it is not scrolled into view.\n@param buffer The global buffer.\n@param text The text to add.\n -add_trigger _m.textadept.adeptsense.add_trigger(sense, c, only_fields, only_functions)\nSets the trigger for autocompletion.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param c The character(s) that triggers the autocompletion. You can have up\nto two characters.\n@param only_fields If `true`, this trigger only completes fields. Defaults to\n`false`.\n@param only_functions If `true`, this trigger only completes\nfunctions. Defaults to `false`.\n@usage sense:add_trigger('.')\n@usage sense:add_trigger(':', false, true) -- only functions\n@usage sense:add_trigger('->')\n +add_trigger _M.textadept.adeptsense.add_trigger(sense, c, only_fields, only_functions)\nSets the trigger for autocompletion.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param c The character(s) that triggers the autocompletion. You can have up\nto two characters.\n@param only_fields If `true`, this trigger only completes fields. Defaults to\n`false`.\n@param only_functions If `true`, this trigger only completes\nfunctions. Defaults to `false`.\n@usage sense:add_trigger('.')\n@usage sense:add_trigger(':', false, true) -- only functions\n@usage sense:add_trigger('->')\n additional_caret_fore buffer.additional_caret_fore [number]\nThe foreground color of additional carets in `0xBBGGRR` format.\n additional_carets_blink buffer.additional_carets_blink [bool]\nWhether additional carets will blink.\n additional_carets_visible buffer.additional_carets_visible [bool]\nWhether additional carets are visible.\n @@ -744,11 +744,11 @@ additional_sel_alpha buffer.additional_sel_alpha [number]\nThe alpha of addition additional_sel_back buffer.additional_sel_back [number]\nThe background color of additional selections in `0xBBGGRR`\nformat. `buffer:set_sel_back(true, ...)` must have been called previously\nfor this to have an effect.\n additional_sel_fore buffer.additional_sel_fore [number]\nThe foreground color of additional selections in `0xBBGGRR`\nformat. `buffer:set_sel_fore(true, ...)` must have been called previously\nfor this to have an effect.\n additional_selection_typing buffer.additional_selection_typing [bool]\nWhether typing can be performed into multiple selections.\n -adeptsense _m.textadept.adeptsense [module]\nLanguage autocompletion support for the textadept module.\n +adeptsense _M.textadept.adeptsense [module]\nLanguage autocompletion support for the textadept module.\n allocate buffer.allocate(buffer, bytes)\nEnlarge the document to a particular size of text bytes. The document will\nnot be made smaller than its current contents.\n@param buffer The global buffer.\n alnum lexer.alnum\nMatches any alphanumeric character (`A-Z`, `a-z`, `0-9`).\n alpha lexer.alpha\nMatches any alphabetic character (`A-Z`, `a-z`).\n -always_show_globals _m.textadept.adeptsense.always_show_globals [bool]\nInclude globals in the list of completions offered. Globals are classes,\nfunctions, and fields that do not belong to another class. They are contained\nin `completions['']`. The default value is `true`.\n +always_show_globals _M.textadept.adeptsense.always_show_globals [bool]\nInclude globals in the list of completions offered. Globals are classes,\nfunctions, and fields that do not belong to another class. They are contained\nin `completions['']`. The default value is `true`.\n anchor buffer.anchor [number]\nThe position of the opposite end of the selection to the caret.\n annotation_clear_all buffer.annotation_clear_all(buffer)\nClear the annotations from all lines.\n@param buffer The global buffer.\n annotation_get_text buffer.annotation_get_text(buffer, line)\nGet the annotation text for a line.\n@param buffer The global buffer.\n@param line The line number.\n@return string\n @@ -758,7 +758,7 @@ annotation_style buffer.annotation_style [table]\nTable of style numbers for ann annotation_style_offset buffer.annotation_style_offset [number]\nThe start of the range of style numbers used for annotations. Annotation\nstyles may be completely separated from standard text styles by setting a\nstyle offset. For example, setting this to `512` would allow the annotation\nstyles to be numbered from `512` upto `767` so they do not overlap styles set\nby lexers (or margins if margins offset is `256`). Each style number set with\n`buffer.annotation_style` has the offset added before looking up the style.\n annotation_visible buffer.annotation_visible [number]\nThe visibility of annotations.\n * `_SCINTILLA.constants.ANNOTATION_HIDDEN` (0): Annotations are not\n displayed.\n * `_SCINTILLA.constants.ANNOTATION_STANDARD` (1): Annotations are drawn\n left justified with no adornment.\n * `_SCINTILLA.constants.ANNOTATION_BOXED` (2): Annotations are indented\n to match the text and are surrounded by a box.\n\n any lexer.any\nMatches any single character.\n -api_files _m.textadept.adeptsense.api_files [table]\nContains a list of api files used by `show_apidoc()`. Each line in the api\nfile contains a symbol name (not the full symbol) followed by a space character\nand then the symbol's documentation. Since there may be many duplicate symbol\nnames, it is recommended to put the full symbol and arguments, if any, on the\nfirst line. (e.g. `Class.function(arg1, arg2, ...)`). This allows the correct\ndocumentation to be shown based on the current context. In the documentation,\nnewlines are represented with `\\n`. A `\` before `\\n` escapes the newline.\n +api_files _M.textadept.adeptsense.api_files [table]\nContains a list of api files used by `show_apidoc()`. Each line in the api\nfile contains a symbol name (not the full symbol) followed by a space character\nand then the symbol's documentation. Since there may be many duplicate symbol\nnames, it is recommended to put the full symbol and arguments, if any, on the\nfirst line. (e.g. `Class.function(arg1, arg2, ...)`). This allows the correct\ndocumentation to be shown based on the current context. In the documentation,\nnewlines are represented with `\\n`. A `\` before `\\n` escapes the newline.\n append_text buffer.append_text(buffer, text)\nAppend a string to the end of the document without changing the selection. The\ncurrent selection is not changed and the new text is not scrolled into view.\n@param buffer The global buffer.\n@param text The text.\n arg _G.arg [table]\nCommand line parameters.\n args _G.args [module]\nProcesses command line arguments for Textadept.\n @@ -788,23 +788,23 @@ auto_c_separator buffer.auto_c_separator [number]\nThe auto-completion list sepa auto_c_show buffer.auto_c_show(buffer, len_entered, item_list)\nDisplay an auto-completion list.\n@param len_entered The number of characters before the caret used to provide\nthe context.\n@param item_list List of words separated by separator characters (initially\nspaces). The list of words should be in sorted order.\n auto_c_stops buffer.auto_c_stops(buffer, chars)\nDefine a set of characters that when typed cancel the auto-completion list.\n@param buffer The global buffer.\n@param chars String list of characters. This list is empty by default.\n auto_c_type_separator buffer.auto_c_type_separator [number]\nThe auto-completion list type-separator character byte. The default is\n`'?'`. Autocompletion list items may display an image as well as text. Each\nimage is first registered with an integer type. Then this integer is included\nin the text of the list separated by a `?` from the text.\n -autocomplete_word _m.textadept.editing.autocomplete_word(word_chars)\nPops up an autocompletion list for the current word based on other words in\nthe document.\n@param word_chars String of chars considered to be part of words.\n@return `true` if there were completions to show; `false` otherwise.\n +autocomplete_word _M.textadept.editing.autocomplete_word(word_chars)\nPops up an autocompletion list for the current word based on other words in\nthe document.\n@param word_chars String of chars considered to be part of words.\n@return `true` if there were completions to show; `false` otherwise.\n back_space_un_indents buffer.back_space_un_indents [bool]\nWhether a backspace pressed when caret is within indentation unindents.\n back_tab buffer.back_tab(buffer)\nDedent the selected lines.\n@param buffer The global buffer.\n band bit32.band(...)\nReturns the bitwise "and" of its operands.\n begin_undo_action buffer.begin_undo_action(buffer)\nStart a sequence of actions that is undone and redone as a unit. May be nested.\n@param buffer The global buffer.\n bit32 _G.bit32 [module]\nLua bit32 module.\n -block_comment _m.textadept.editing.block_comment(comment)\nBlock comments or uncomments code with a given comment string.\n@param comment The comment string inserted or removed from the beginning of\neach line in the selection.\n +block_comment _M.textadept.editing.block_comment(comment)\nBlock comments or uncomments code with a given comment string.\n@param comment The comment string inserted or removed from the beginning of\neach line in the selection.\n bnot bit32.bnot(x)\nReturns the bitwise negation of `x`. For any integer `x`, the following\nidentity holds: assert(bit32.bnot(x) == (-1 - x) % 2^32)\n boms io.boms [table]\nList of byte-order marks (BOMs).\n -bookmarks _m.textadept.bookmarks [module]\nBookmarks for the textadept module.\n +bookmarks _M.textadept.bookmarks [module]\nBookmarks for the textadept module.\n bor bit32.bor(...)\nReturns the bitwise "or" of its operands.\n brace_bad_light buffer.brace_bad_light(buffer, pos)\nHighlight the character at a position indicating there is no matching brace.\n@param buffer The global buffer.\n@param pos The position or -1 to remove the highlight.\n brace_bad_light_indicator buffer.brace_bad_light_indicator(buffer, use_indicator, indic_num)\nUse specified indicator to highlight non matching brace instead of changing\nits style.\n@param buffer The global buffer.\n@param use_indicator Use an indicator.\n@param indic_num The indicator number.\n brace_highlight buffer.brace_highlight(buffer, pos1, pos2)\nHighlight the characters at two positions. If indent guides are enabled,\nthe indent that corresponds with the brace can be highlighted by\nlocating the column with `buffer.column` and highlight the indent with\n`buffer.highlight_guide`.\n@param buffer The global buffer.\n@param pos1 The first position.\n@param pos2 The second position.\n brace_highlight_indicator buffer.brace_highlight_indicator(buffer, use_indicator, indic_num)\nUse specified indicator to highlight matching braces instead of changing\ntheir style.\n@param buffer The global buffer.\n@param use_indicator Use an indicator.\n@param indic_num The indicator number.\n brace_match buffer.brace_match(buffer, pos)\nFind the position of a matching brace or `-1` if no match. The brace\ncharacters handled are `(`, `)`, `[`, `]`, `{`, `}`, `<`, and `>`. The search\nis forwards from an opening brace and backwards from a closing brace. A match\nonly occurs if the style of the matching brace is the same as the starting\nbrace or the matching brace is beyond the end of styling. Nested braces are\nhandled correctly.\n@param buffer The global buffer.\n@param pos The position.\n@return number.\n -braces _m.textadept.editing.braces [table]\nHighlighted brace characters. Keys are lexer language names and values\nare tables of characters that count as brace characters. This table can be\npopulated by language-specific modules.\n +braces _M.textadept.editing.braces [table]\nHighlighted brace characters. Keys are lexer language names and values\nare tables of characters that count as brace characters. This table can be\npopulated by language-specific modules. The defaults are '(', ')', '[', ']',\n'{', and '}'.\n btest bit32.btest(...)\nReturns a boolean signaling whether the bitwise "and" of its operands is\ndifferent from zero.\n buffer _G.buffer [module]\nThe current buffer in the current view. It also represents the structure of\nany buffer table in `_G._BUFFER`.\n buffer view.buffer [table]\nThe buffer this view contains. (Read-only)\n @@ -839,7 +839,7 @@ char_at buffer.char_at [table]\nTable of character bytes at positions in the doc char_left buffer.char_left(buffer)\nMove caret left one character.\n@param buffer The global buffer.\n char_left_extend buffer.char_left_extend(buffer)\nMove caret left one character extending selection to new caret position.\n@param buffer The global buffer.\n char_left_rect_extend buffer.char_left_rect_extend(buffer)\nMove caret left one character, extending rectangular selection to new caret\nposition.\n@param buffer The global buffer.\n -char_matches _m.textadept.editing.char_matches [table]\nAuto-matched characters. Used for auto-matching parentheses, brackets, braces,\nquotes, etc. Keys are lexer language names and values are tables of character\nmatch pairs. This table can be populated by language-specific modules.\n +char_matches _M.textadept.editing.char_matches [table]\nAuto-matched characters. Used for auto-matching parentheses, brackets,\nbraces, quotes, etc. Keys are lexer language names and values are tables\nof character match pairs. This table can be populated by language-specific\nmodules. The defaults are '()', '[]', '{}', '''', and '""'.\n char_position_from_point buffer.char_position_from_point(buffer, x, y)\nFind the position of a character from a point within the window.\n@param buffer The global buffer.\n@return number\n char_position_from_point_close buffer.char_position_from_point_close(buffer, x, y)\nFind the position of a character from a point within the window. Return `-1`\nif not close to text.\n@param buffer The global buffer.\n@return number\n char_right buffer.char_right(buffer)\nMove caret right one character.\n@param buffer The global buffer.\n @@ -848,9 +848,9 @@ char_right_rect_extend buffer.char_right_rect_extend(buffer)\nMove caret right o chdir lfs.chdir(path)\nChanges the current working directory to the given path. Returns true in\ncase of success or nil plus an error string.\n check_global buffer.check_global(buffer)\nChecks whether the given buffer is the global one. If not, throws an\nerror indicating so. It is necessary to call this at the top of all buffer\nfunctions to avoid unexpected behavior since most buffer functions operate on\n`_G.buffer`, which is not necessarily the given one.\n@param buffer The buffer to check.\n choose_caret_x buffer.choose_caret_x(buffer)\nSet the last x chosen value to be the caret x position. The view remembers\nthe x value of the last position horizontally moved to explicitly by the\nuser and this value is then used when moving vertically such as by using the\nup and down keys. This function sets the current x position of the caret as\nthe remembered value.\n@param buffer The global buffer.\n -class_definition _m.textadept.adeptsense.syntax.class_definition\nA Lua pattern representing the language's class definition syntax. The first\ncapture returned must be the class name. A second, optional capture contains\nthe class' superclass (if any). If no completions are found for the class\nname, completions for the superclass are shown (if any). Completions will\nnot be shown for both a class and superclass unless defined in a previously\nloaded ctags file. Also, multiple superclasses cannot be recognized by this\npattern; use a ctags file instead. Defaults to `'class%s+([%w_]+)'`.\n -clear _m.textadept.adeptsense.clear(sense)\nClears an Adeptsense. This is necessary for loading a new ctags file or\ncompletions from a different project.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n -clear _m.textadept.bookmarks.clear()\nClears all bookmarks in the current buffer.\n +class_definition _M.textadept.adeptsense.syntax.class_definition\nA Lua pattern representing the language's class definition syntax. The first\ncapture returned must be the class name. A second, optional capture contains\nthe class' superclass (if any). If no completions are found for the class\nname, completions for the superclass are shown (if any). Completions will\nnot be shown for both a class and superclass unless defined in a previously\nloaded ctags file. Also, multiple superclasses cannot be recognized by this\npattern; use a ctags file instead. Defaults to `'class%s+([%w_]+)'`.\n +clear _M.textadept.adeptsense.clear(sense)\nClears an Adeptsense. This is necessary for loading a new ctags file or\ncompletions from a different project.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n +clear _M.textadept.bookmarks.clear()\nClears all bookmarks in the current buffer.\n clear buffer.clear(buffer)\nClear the selection.\n@param buffer The global buffer.\n clear_all buffer.clear_all(buffer)\nDelete all text in the document.\n@param buffer The global buffer.\n clear_all_cmd_keys buffer.clear_all_cmd_keys(buffer)\nDrop all key mappings.\n@param buffer The global buffer.\n @@ -871,24 +871,24 @@ colors lexer.colors [table]\nTable of common colors for a theme. This table shou colourise buffer.colourise(buffer, start_pos, end_pos)\nColorise a segment of the document using the current lexing language.\n@param buffer The global buffer.\n@param start_pos The start position.\n@param end_pos The end position or `-1` to style from `start_pos` to the\nend of the document.\n column buffer.column [table]\nTable of column numbers, taking tab widths into account, for positions\nstarting from zero. (Read-only)\n command_entry gui.command_entry [module]\nTextadept's Command entry.\n -comment_string _m.textadept.editing.comment_string [table]\nComment strings for various lexer languages. Used for the `block_comment()`\nfunction. Keys are lexer language names and values are the line comment\ndelimiters for the language. This table is typically populated by\nlanguage-specific modules.\n@see block_comment\n -compile _m.textadept.run.compile()\nCompiles the file as specified by its extension in the `compile_command` table.\n@see compile_command\n -compile_command _m.textadept.run.compile_command [table]\nFile extensions and their associated 'compile' actions. Each key is a file\nextension whose value is a either a command line string to execute or a\nfunction returning one. This table is typically populated by language-specific\nmodules.\n -complete _m.textadept.adeptsense.complete(sense, only_fields, only_functions)\nShows an autocompletion list for the symbol behind the caret.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param only_fields If `true`, returns list of only fields; defaults to `false`.\n@param only_functions If `true`, returns list of only functions; defaults to\n`false1.\n@return `true` on success or `false`.\n@see get_symbol\n@see get_completions\n -complete_symbol _m.textadept.adeptsense.complete_symbol()\nCompletes the symbol at the current position based on the current lexer's\nAdeptsense. This should be called by key commands and menus instead of\n`complete()`.\n -completions _m.textadept.adeptsense.completions [table]\nContains lists of possible completions for known symbols. Each symbol key\nhas a table value that contains a list of field completions with a `fields`\nkey and a list of functions completions with a `functions` key. This table\nis normally populated by `load_ctags()`, but can also be set by the user.\n +comment_string _M.textadept.editing.comment_string [table]\nComment strings for various lexer languages. Used for the `block_comment()`\nfunction. Keys are lexer language names and values are the line comment\ndelimiters for the language. This table is typically populated by\nlanguage-specific modules.\n@see block_comment\n +compile _M.textadept.run.compile()\nCompiles the file as specified by its extension in the `compile_command` table.\n@see compile_command\n +compile_command _M.textadept.run.compile_command [table]\nFile extensions and their associated 'compile' actions. Each key is a file\nextension whose value is a either a command line string to execute or a\nfunction returning one. This table is typically populated by language-specific\nmodules.\n +complete _M.textadept.adeptsense.complete(sense, only_fields, only_functions)\nShows an autocompletion list for the symbol behind the caret.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param only_fields If `true`, returns list of only fields; defaults to `false`.\n@param only_functions If `true`, returns list of only functions; defaults to\n`false1.\n@return `true` on success or `false`.\n@see get_symbol\n@see get_completions\n +complete_symbol _M.textadept.adeptsense.complete_symbol()\nCompletes the symbol at the current position based on the current lexer's\nAdeptsense. This should be called by key commands and menus instead of\n`complete()`.\n +completions _M.textadept.adeptsense.completions [table]\nContains lists of possible completions for known symbols. Each symbol key\nhas a table value that contains a list of field completions with a `fields`\nkey and a list of functions completions with a `functions` key. This table\nis normally populated by `load_ctags()`, but can also be set by the user.\n concat table.concat(list [, sep [, i [, j]]])\nGiven a list where all elements are strings or numbers, returns\n`list[i]..sep..list[i+1] ··· sep..list[j]`. The default value for `sep`\nis the empty string, the default for `i` is 1, and the default for `j` is\n`#list`. If `i` is greater than `j`, returns the empty string.\n config package.config\nA string describing some compile-time configurations for packages. This\nstring is a sequence of lines:\n The first line is the directory separator string. Default is '`\`' for\n Windows and '`/`' for all other systems.\n The second line is the character that separates templates in a path.\n Default is '`;`'.\n The third line is the string that marks the substitution points in a\n template. Default is '`?`'.\n The fourth line is a string that, in a path in Windows, is replaced by\n the executable's directory. Default is '`!`'.\n The fifth line is a mark to ignore all text before it when building the\n `luaopen_` function name. Default is '`-`'.\n\n connect events.connect(event, f, index)\nAdds a handler function to an event.\n@param event The string event name. It is arbitrary and need not be defined\nanywhere.\n@param f The Lua function to add.\n@param index Optional index to insert the handler into.\n@return Index of handler.\n@see disconnect\n constants _SCINTILLA.constants [table]\nScintilla constants.\n -context_menu _m.textadept.menu.context_menu [table]\nContains the default right-click context menu.\n +context_menu _M.textadept.menu.context_menu [table]\nContains the default right-click context menu.\n context_menu gui.context_menu\nA GTK menu defining the editor's context menu.\n contracted_fold_next buffer.contracted_fold_next(buffer, line_start)\nFind the next line at or after line_start that is a contracted fold header\nline. Return `-1` when no more lines.\n@param buffer The global buffer.\n@param line_start The start line number.\n@return number\n control_char_symbol buffer.control_char_symbol [number]\nThe way control characters are displayed. If less than `32`, keep the rounded\nrectangle as ASCII mnemonics. Otherwise, use the given character byte. The\ndefault value is `0`.\n -control_structure_patterns _m.lua.control_structure_patterns [table]\nPatterns for auto 'end' completion for control structures.\n@see try_to_autocomplete_end\n -control_structure_patterns _m.ruby.control_structure_patterns [table]\nPatterns for auto 'end' completion for control structures.\n@see try_to_autocomplete_end\n +control_structure_patterns _M.lua.control_structure_patterns [table]\nPatterns for auto 'end' completion for control structures.\n@see try_to_autocomplete_end\n +control_structure_patterns _M.ruby.control_structure_patterns [table]\nPatterns for auto 'end' completion for control structures.\n@see try_to_autocomplete_end\n convert_eo_ls buffer.convert_eo_ls(buffer, mode)\nConverts all line endings in the document to one mode.\n@param buffer The global buffer.\n@param mode The line ending mode. Valid values are:\n`_SCINTILLA.constants.SC_EOL_CRLF` (0), `_SCINTILLA.constants.SC_EOL_CR\n(1)`, or `_SCINTILLA.constants.SC_EOL_LF (2)`.\n -convert_indentation _m.textadept.editing.convert_indentation()\nConverts indentation between tabs and spaces.\n +convert_indentation _M.textadept.editing.convert_indentation()\nConverts indentation between tabs and spaces.\n copy buffer.copy(buffer)\nCopy the selection to the clipboard.\n@param buffer The buffer\n copy_allow_line buffer.copy_allow_line(buffer)\nCopy the selection, if selection empty copy the line with the caret.\n@param buffer The global buffer.\n copy_range buffer.copy_range(buffer, start_pos, end_pos)\nCopy a range of text to the clipboard. Positions are clipped into the document.\n@param buffer The global buffer.\n@param start_pos The start position.\n@param end_pos The end position.\n @@ -900,14 +900,14 @@ count_characters buffer.count_characters(buffer, start_pos, end_pos)\nCount char cpath package.cpath\nThe path used by `require` to search for a C loader. Lua initializes the C path\n`package.cpath` in the same way it initializes the Lua path `package.path`,\nusing the environment variable `LUA_CPATH_5_2` or the environment variable\n`LUA_CPATH` or a default path defined in `luaconf.h`.\n cpp _G.keys.cpp [table]\nContainer for C/C++-specific key commands.\n cpp _G.snippets.cpp [table]\nContainer for C/C++-specific snippets.\n -cpp _m.cpp [module]\nThe cpp module. It provides utilities for editing C/C++ code. User tags\nare loaded from _USERHOME/modules/cpp/tags and user apis are loaded from\n_USERHOME/modules/cpp/api.\n +cpp _M.cpp [module]\nThe cpp module. It provides utilities for editing C/C++ code. User tags\nare loaded from _USERHOME/modules/cpp/tags and user apis are loaded from\n_USERHOME/modules/cpp/api.\n create coroutine.create(f)\nCreates a new coroutine, with body `f`. `f` must be a Lua function. Returns\nthis new coroutine, an object with type `"thread"`.\n css _G.keys.css [table]\nContainer for CSS-specific key commands.\n css _G.snippets.css [table]\nContainer for CSS-specific snippets.\n -css _m.css [module]\nThe css module. It provides utilities for editing CSS code. User tags\nare loaded from _USERHOME/modules/css/tags and user apis are loaded from\n_USERHOME/modules/css/api.\n -ctags_kinds _m.textadept.adeptsense.ctags_kinds [table]\nContains a map of ctags kinds to Adeptsense kinds. Recognized kinds are\n`'functions'`, `'fields'`, and `'classes'`. Classes are quite simply containers\nfor functions and fields so Lua modules would count as classes. Any other\nkinds will be passed to `handle_ctag()` for user-defined handling.\n@see handle_ctag\n +css _M.css [module]\nThe css module. It provides utilities for editing CSS code. User tags\nare loaded from _USERHOME/modules/css/tags and user apis are loaded from\n_USERHOME/modules/css/api.\n +ctags_kinds _M.textadept.adeptsense.ctags_kinds [table]\nContains a map of ctags kinds to Adeptsense kinds. Recognized kinds are\n`'functions'`, `'fields'`, and `'classes'`. Classes are quite simply containers\nfor functions and fields so Lua modules would count as classes. Any other\nkinds will be passed to `handle_ctag()` for user-defined handling.\n@see handle_ctag\n current_pos buffer.current_pos [number]\nThe position of the caret. When setting, the caret is not scrolled into view.\n -current_word _m.textadept.editing.current_word(action)\nSelects the current word under the caret and if action indicates, deletes it.\n@param action Optional action to perform with selected word. If `delete`,\nit is deleted.\n +current_word _M.textadept.editing.current_word(action)\nSelects the current word under the caret and if action indicates, deletes it.\n@param action Optional action to perform with selected word. If `delete`,\nit is deleted.\n currentdir lfs.currentdir()\nReturns a string with the current working directory or nil plus an error\nstring.\n cursor buffer.cursor [number]\nThe cursor type.\n * `_SCINTILLA.constants.SC_CURSORNORMAL` (-1): The normal cursor is\n displayed.\n * `_SCINTILLA.constants.SC_CURSORWAIT` (4): The wait cursor is\n displayed when the mouse is over the view.\n\n cut buffer.cut(buffer)\nCut the selection to the clipboard.\n@param buffer The global buffer.\n @@ -945,11 +945,11 @@ edge_colour buffer.edge_colour [number]\nThe color used in edge indication in `0 edge_column buffer.edge_column [number]\nThe column number which text should be kept within.\n edge_mode buffer.edge_mode [number]\nThe edge highlight mode.\n * `_SCINTILLA.constants.EDGE_NONE` (0): Long lines are not marked. This\n is the default state.\n * `_SCINTILLA.constants.EDGE_LINE` (1): A vertical line is drawn at the\n column number set by `buffer.edge_column`.\n * `_SCINTILLA.constants.EDGE_BACKGROUND` (2): The background color of\n characters after the column limit is changed to the color set by\n `buffer.edge_colour`.\n\n edit_toggle_overtype buffer.edit_toggle_overtype(buffer)\nSwitch from insert to overtype mode or the reverse.\n@param buffer The global buffer.\n -editing _m.textadept.editing [module]\nEditing commands for the textadept module.\n +editing _M.textadept.editing [module]\nEditing commands for the textadept module.\n embed_lexer lexer.embed_lexer(parent, child, start_rule, end_rule)\nEmbeds a child lexer language in a parent one.\n@param parent The parent lexer.\n@param child The child lexer.\n@param start_rule The token that signals the beginning of the embedded lexer.\n@param end_rule The token that signals the end of the embedded lexer.\n@usage embed_lexer(M, css, css_start_rule, css_end_rule)\n@usage embed_lexer(html, M, php_start_rule, php_end_rule)\n@usage embed_lexer(html, ruby, ruby_start_rule, rule_end_rule)\n emit events.emit(event, ...)\nCalls all handlers for the given event in sequence (effectively "generating"\nthe event). If `true` or `false` is explicitly returned by any handler,\nthe event is not propagated any further; iteration ceases.\n@param event The string event name.\n@param ... Arguments passed to the handler.\n@return `true` or `false` if any handler explicitly returned such; nil\notherwise.\n empty_undo_buffer buffer.empty_undo_buffer(buffer)\nDelete the undo history. It also sets the save point to the start of the\nundo buffer, so the document will appear to be unmodified.\n@param buffer The global buffer.\n -enclose _m.textadept.editing.enclose(left, right)\nEncloses text within a given pair of strings. If text is selected, it is\nenclosed. Otherwise, the previous word is enclosed.\n@param left The left part of the enclosure.\n@param right The right part of the enclosure.\n +enclose _M.textadept.editing.enclose(left, right)\nEncloses text within a given pair of strings. If text is selected, it is\nenclosed. Otherwise, the previous word is enclosed.\n@param left The left part of the enclosure.\n@param right The right part of the enclosure.\n encoded_from_utf8 buffer.encoded_from_utf8(buffer, string)\nTranslates a UTF8 string into the document encoding. Return the length of\nthe result in bytes. On error return `0`.\n@param buffer The global buffer.\n@param string The string.\n@return number\n encoding buffer.encoding [string or nil]\nThe encoding of the file on the hard disk. It will be `nil` if the file is\na binary file.\n encoding_bom buffer.encoding_bom [string]\nThe byte-order mark of the file encoding (if any).\n @@ -961,20 +961,20 @@ ensure_visible_enforce_policy buffer.ensure_visible_enforce_policy(buffer, line) entry_text gui.command_entry.entry_text [string]\nThe text in the entry.\n eol_mode buffer.eol_mode [number]\nThe current end of line mode.\n * `_SCINTILLA.constants.SC_EOL_CRLF` (0): `CRLF`.\n * `_SCINTILLA.constants.SC_EOL_CR` (1): `CR`.\n * `_SCINTILLA.constants.SC_EOL_LF` (2): `LF`.\n\n error _G.error(message [, level])\nTerminates the last protected function called and returns `message` as\nthe error message. Function `error` never returns. Usually, `error` adds\nsome information about the error position at the beginning of the message,\nif the message is a string. The `level` argument specifies how to get the\nerror position. With level 1 (the default), the error position is where the\n`error` function was called. Level 2 points the error to where the function\nthat called `error` was called; and so on. Passing a level 0 avoids the\naddition of error position information to the message.\n -error_detail _m.textadept.run.error_detail [table]\nA table of error string details. Each entry is a table with the following\nfields: + `pattern`: The Lua pattern that matches a specific error string. +\n`filename`: The index of the Lua capture that contains the filename the\nerror occured in. + `line`: The index of the Lua capture that contains the\nline number the error occured on. + `message`: [Optional] The index of the\nLua capture that contains the error's message. A call tip will be displayed\nif a message was captured. When an error message is double-clicked, the\nuser is taken to the point of error. This table is usually populated by\nlanguage-specific modules.\n +error_detail _M.textadept.run.error_detail [table]\nA table of error string details. Each entry is a table with the following\nfields: + `pattern`: The Lua pattern that matches a specific error string. +\n`filename`: The index of the Lua capture that contains the filename the\nerror occured in. + `line`: The index of the Lua capture that contains the\nline number the error occured on. + `message`: [Optional] The index of the\nLua capture that contains the error's message. A call tip will be displayed\nif a message was captured. When an error message is double-clicked, the\nuser is taken to the point of error. This table is usually populated by\nlanguage-specific modules.\n events _G.events [module]\nTextadept's core event structure and handlers.\n -execute _m.textadept.run.execute(command)\nExecutes the command line parameter and prints the output to Textadept.\n@param command The command line string. It can have the following macros: +\n`%(filepath)`: The full path of the current file. + `%(filedir)`: The current\nfile's directory path. + `%(filename)`: The name of the file including\nextension. + `%(filename_noext)`: The name of the file excluding extension.\n +execute _M.textadept.run.execute(command)\nExecutes the command line parameter and prints the output to Textadept.\n@param command The command line string. It can have the following macros: +\n`%(filepath)`: The full path of the current file. + `%(filedir)`: The current\nfile's directory path. + `%(filename)`: The name of the file including\nextension. + `%(filename_noext)`: The name of the file excluding extension.\n execute os.execute([command])\nThis function is equivalent to the C function `system`. It passes `command`\nto be executed by an operating system shell. Its first result is `true` if\nthe command terminated successfully, or `nil` otherwise. After this first\nresult the function returns a string and a number, as follows: "exit": the\ncommand terminated normally; the following number is the exit status of the\ncommand. "signal": the command was terminated by a signal; the following\nnumber is the signal that terminated the command. When called without a\n`command`, `os.execute` returns a boolean that is true if a shell is available.\n exit os.exit([code [, close]])\nCalls the C function `exit` to terminate the host program. If `code` is\n`true`, the returned status is `EXIT_SUCCESS`; if `code` is `false`, the\nreturned status is `EXIT_FAILURE`; if `code` is a number, the returned status\nis this number. The default value for `code` is `true`. If the optional\nsecond argument `close` is true, closes the Lua state before exiting.\n exp math.exp(x)\nReturns the value *e^x*.\n extend lexer.extend\nMatches any ASCII extended character (`0`..`255`).\n -extensions _m.textadept.mime_types.extensions [table]\nFile extensions with their associated lexers.\n +extensions _M.textadept.mime_types.extensions [table]\nFile extensions with their associated lexers.\n extra_ascent buffer.extra_ascent [number]\nThe extra ascent, the maximum that any style extends above the baseline,\nadded to each line.\n extra_descent buffer.extra_descent [number]\nThe extra descent, the maximum that any style extends below the baseline,\nadded to each line.\n extract bit32.extract(n, field [, width])\nReturns the unsigned number formed by the bits `field` to `field + width\n- 1` from `n`. Bits are numbered from 0 (least significant) to 31 (most\nsignificant). All accessed bits must be in the range [0, 31]. The default\nfor `width` is 1.\n filename buffer.filename [string]\nThe absolute path to the file associated with this buffer. It is encoded in\nUTF-8. Use `string.iconv()` for charset conversions.\n -filter_through _m.textadept.filter_through [module]\nFilter-Through for the textadept module.\n -filter_through _m.textadept.filter_through.filter_through()\nPrompts for a Linux, Mac OSX, or Windows shell command to filter text\nthrough. The standard input (stdin) for shell commands is determined as\nfollows: (1) If text is selected and spans multiple lines, all text on the\nlines containing the selection is used. However, if the end of the selection\nis at the 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. (2) If\ntext is selected and spans a single line, only the selected text is used. (3)\nIf no text is selected, the entire buffer is used. The input text is replaced\nwith the standard output (stdout) of the command.\n +filter_through _M.textadept.filter_through [module]\nFilter-Through for the textadept module.\n +filter_through _M.textadept.filter_through.filter_through()\nPrompts for a Linux, Mac OSX, or Windows shell command to filter text\nthrough. The standard input (stdin) for shell commands is determined as\nfollows: (1) If text is selected and spans multiple lines, all text on the\nlines containing the selection is used. However, if the end of the selection\nis at the 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. (2) If\ntext is selected and spans a single line, only the selected text is used. (3)\nIf no text is selected, the entire buffer is used. The input text is replaced\nwith the standard output (stdout) of the command.\n filteredlist gui.filteredlist(title, columns, items, int_return, ...)\nShortcut function for `gui.dialog('filtered_list', ...)` with 'Ok' and\n'Cancel' buttons.\n@param title The title for the filteredlist 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 If `true`, returns the integer index of the selected item\nin the filteredlist. Defaults to `false`, which returns the string item. Not\ncompatible with a `'--select-multiple'` filteredlist.\n@param ... 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' },\nfalse, '--output-column', '2')\n@return Either a string or integer on success; `nil` otherwise.\n find gui.find [module]\nTextadept's integrated find/replace dialog.\n find string.find(s, pattern [, init [, plain]])\nLooks for the first match of `pattern` in the string `s`. If it finds a\nmatch, then `find` returns the indices of `s` where this occurrence starts\nand ends; otherwise, it returns nil. A third, optional numerical argument\n`init` specifies where to start the search; its default value is 1 and can\nbe negative. A value of true as a fourth, optional argument `plain` turns off\nthe pattern matching facilities, so the function does a plain "find substring"\noperation, with no characters in `pattern` being considered magic. Note that\nif `plain` is given, then `init` must be given as well. If the pattern has\ncaptures, then in a successful match the captured values are also returned,\nafter the two indices.\n @@ -1006,9 +1006,9 @@ form_feed buffer.form_feed(buffer)\nInsert a Form Feed character.\n@param buffer format string.format(formatstring, ···)\nReturns a formatted version of its variable number of arguments following\nthe description given in its first argument (which must be a string). The\nformat string follows the same rules as the C function `sprintf`. The only\ndifferences are that the options/modifiers `*`, `h`, `L`, `l`, `n`, and\n`p` are not supported and that there is an extra option, `q`. The `q`\noption formats a string between double quotes, using escape sequences\nwhen necessary to ensure that it can safely be read back by the Lua\ninterpreter. For instance, the call string.format('%q', 'a string with\n"quotes" and \\n new line') may produce the string: "a string with\n\"quotes\" and \ new line" Options `A` and `a` (when available), `E`, `e`,\n`f`, `G`, and `g` all expect a number as argument. Options `c`, `d`, `i`,\n`o`, `u`, `X`, and `x` also expect a number, but the range of that number\nmay be limited by the underlying C implementation. For options `o`, `u`, `X`,\nand `x`, the number cannot be negative. Option `q` expects a string; option\n`s` expects a string without embedded zeros. If the argument to option `s`\nis not a string, it is converted to one following the same rules of `tostring`.\n frexp math.frexp(x)\nReturns `m` and `e` such that 'x = m2^e', `e` is an integer and the absolute\nvalue of `m` is in the range *[0.5, 1)* (or zero when `x` is zero).\n functions _SCINTILLA.functions [table]\nScintilla functions.\n -get_apidoc _m.textadept.adeptsense.get_apidoc(sense, symbol)\nReturns a list of apidocs for the given symbol. If there are multiple apidocs,\nthe index of one to display is the value of the `pos` key in the returned list.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param symbol The symbol to get apidocs for.\n@return apidoc_list or `nil`\n -get_class _m.textadept.adeptsense.get_class(sense, symbol)\nReturns the class name for a given symbol. If the symbol is `sense.syntax.self`\nand a class definition using the `sense.syntax.class_definition` keyword is\nfound, that class is returned. Otherwise the buffer is searched backwards\nfor a type declaration of the symbol according to the patterns in\n`sense.syntax.type_declarations`.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param symbol The symbol to get the class of.\n@return class or `nil`\n@see syntax\n -get_completions _m.textadept.adeptsense.get_completions(sense, symbol, only_fields,\nonly_functions)\nReturns a list of completions for the given symbol.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param symbol The symbol to get completions for.\n@param only_fields If `true`, returns list of only fields; defaults to `false`.\n@param only_functions If `true`, returns list of only functions; defaults to\n`false`.\n@return completion_list or `nil`\n +get_apidoc _M.textadept.adeptsense.get_apidoc(sense, symbol)\nReturns a list of apidocs for the given symbol. If there are multiple apidocs,\nthe index of one to display is the value of the `pos` key in the returned list.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param symbol The symbol to get apidocs for.\n@return apidoc_list or `nil`\n +get_class _M.textadept.adeptsense.get_class(sense, symbol)\nReturns the class name for a given symbol. If the symbol is `sense.syntax.self`\nand a class definition using the `sense.syntax.class_definition` keyword is\nfound, that class is returned. Otherwise the buffer is searched backwards\nfor a type declaration of the symbol according to the patterns in\n`sense.syntax.type_declarations`.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param symbol The symbol to get the class of.\n@return class or `nil`\n@see syntax\n +get_completions _M.textadept.adeptsense.get_completions(sense, symbol, only_fields,\nonly_functions)\nReturns a list of completions for the given symbol.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param symbol The symbol to get completions for.\n@param only_fields If `true`, returns list of only fields; defaults to `false`.\n@param only_functions If `true`, returns list of only functions; defaults to\n`false`.\n@return completion_list or `nil`\n get_cur_line buffer.get_cur_line(buffer)\nRetrieve the text of the line containing the caret. Also returns the index\nof the caret on the line.\n@param buffer The global buffer.\n@return string, number\n get_fold_level lexer.get_fold_level(line_number)\nReturns the fold level for a given line. This level already has\n`SC_FOLDLEVELBASE` added to it, so you do not need to add it yourself.\n@param line_number The line number to get the fold level of.\n get_hotspot_active_back buffer.get_hotspot_active_back(buffer)\nGet the back color for active hotspots in 0xBBGGRR format.\n@param buffer The global buffer.\n@return number\n @@ -1027,7 +1027,7 @@ get_sel_text buffer.get_sel_text(buffer)\nRetrieve the selected text. Also retur get_split_table gui.get_split_table()\nGets the current split view structure.\n@return table of split views. Each split view entry is a table with 4 fields:\n`1`, `2`, `vertical`, and `size`. `1` and `2` have values of either split\nview entries or the index of the buffer shown in each view; `vertical` is a\nflag indicating if the split is vertical or not; and `size` is the integer\nposition of the split resizer.\n get_style_at lexer.get_style_at(pos)\nReturns the string style name and style number at a given position.\n@param pos The position to get the style for.\n get_style_name buffer.get_style_name(buffer, style_num)\nReturns the name of the style associated with a style number.\n@param buffer The global buffer.\n@param style_num A style number from `0` to `255`.\n@see buffer.style_at\n -get_symbol _m.textadept.adeptsense.get_symbol(sense)\nReturns a full symbol (if any) and current symbol part (if any) behind the\ncaret. For example: `buffer.cur` would return `'buffer'` and `'cur'`.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@return symbol or `''`, part or `''`.\n +get_symbol _M.textadept.adeptsense.get_symbol(sense)\nReturns a full symbol (if any) and current symbol part (if any) behind the\ncaret. For example: `buffer.cur` would return `'buffer'` and `'cur'`.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@return symbol or `''`, part or `''`.\n get_tag buffer.get_tag(buffer, tag_num)\nRetrieve the value of a tag from a regular expression search.\n@param buffer The global buffer.\n@param tag_num The tag number.\n@return string\n get_text buffer.get_text(buffer)\nRetrieve all the text in the document. Also returns number of characters\nretrieved.\n@param buffer The global buffer.\n getenv os.getenv(varname)\nReturns the value of the process environment variable `varname`, or nil if\nthe variable is not defined.\n @@ -1040,36 +1040,36 @@ getregistry debug.getregistry()\nReturns the registry table (see §4.5).\n getupvalue debug.getupvalue(f, up)\nThis function returns the name and the value of the upvalue with index `up`\nof the function `f`. The function returns nil if there is no upvalue with\nthe given index.\n getuservalue debug.getuservalue(u)\nReturns the Lua value associated to `u`. If `u` is not a userdata, returns nil.\n gmatch string.gmatch(s, pattern)\nReturns an iterator function that, each time it is called, returns the\nnext captures from `pattern` over the string `s`. If `pattern` specifies\nno captures, then the whole match is produced in each call. As an example,\nthe following loop will iterate over all the words from string `s`, printing\none per line: s = "hello world from Lua" for w in string.gmatch(s, "%a+")\ndo print(w) end The next example collects all pairs `key=value` from the\ngiven string into a table: t = {} s = "from=world, to=Lua" for k, v in\nstring.gmatch(s, "(%w+)=(%w+)") do t[k] = v end For this function, a caret\n'`^`' at the start of a pattern does not work as an anchor, as this would\nprevent the iteration.\n -goto_bookmark _m.textadept.bookmarks.goto_bookmark()\nGoes to selected bookmark from a filtered list.\n +goto_bookmark _M.textadept.bookmarks.goto_bookmark()\nGoes to selected bookmark from a filtered list.\n goto_buffer view:goto_buffer(n, relative)\nGoes to the specified buffer in the indexed view. Generates\n`BUFFER_BEFORE_SWITCH` and `BUFFER_AFTER_SWITCH` events.\n@param n A relative or absolute buffer index. An absolute index of `-1`\ngoes to the last buffer.\n@param relative Flag indicating if `n` is a relative index or not. Defaults to\n`false`.\n -goto_ctag _m.textadept.adeptsense.goto_ctag(sense, k, title)\nDisplays a filteredlist of all known symbols of the given kind (classes,\nfunctions, fields, etc.) and jumps to the source of the selected one.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param k The ctag character kind (e.g. `'f'` for a Lua function).\n@param title The title for the filteredlist dialog.\n -goto_error _m.textadept.run.goto_error(pos, line_num)\nWhen the user double-clicks an error message, go to the line in the file\nthe error occured at and display a calltip with the error message.\n@param pos The position of the caret.\n@param line_num The line double-clicked.\n@see error_detail\n +goto_ctag _M.textadept.adeptsense.goto_ctag(sense, k, title)\nDisplays a filteredlist of all known symbols of the given kind (classes,\nfunctions, fields, etc.) and jumps to the source of the selected one.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param k The ctag character kind (e.g. `'f'` for a Lua function).\n@param title The title for the filteredlist dialog.\n +goto_error _M.textadept.run.goto_error(pos, line_num)\nWhen the user double-clicks an error message, go to the line in the file\nthe error occured at and display a calltip with the error message.\n@param pos The position of the caret.\n@param line_num The line double-clicked.\n@see error_detail\n goto_file gui.goto_file(filename, split, preferred_view)\nGoes to the buffer with the given filename. If the desired buffer is open\nin a view, goes to that view. Otherwise, opens the buffer in either the\n`preferred_view` if given, the first view that is not the current one,\na split view if `split` is `true`, or the current view.\n@param filename The filename of the buffer to go to.\n@param split If there is only one view, split it and open the buffer in the\nother view.\n@param preferred_view When multiple views exist and the desired buffer is\nnot open in any of them, open it in this one.\n goto_file_in_list gui.find.goto_file_in_list(next)\nGoes to the next or previous file found relative to the file on the current\nline.\n@param next Flag indicating whether or not to go to the next file.\n -goto_line _m.textadept.editing.goto_line(line)\nGoes to the requested line.\n@param line Optional line number to go to. If `nil`, the user is prompted\nfor one.\n +goto_line _M.textadept.editing.goto_line(line)\nGoes to the requested line.\n@param line Optional line number to go to. If `nil`, the user is prompted\nfor one.\n goto_line buffer.goto_line(buffer, line)\nSet caret to start of a line and ensure it is visible.\n@param buffer The global buffer.\n@param line The line number.\n -goto_next _m.textadept.bookmarks.goto_next()\nGoes to the next bookmark in the current buffer.\n +goto_next _M.textadept.bookmarks.goto_next()\nGoes to the next bookmark in the current buffer.\n goto_pos buffer.goto_pos(buffer, pos)\nSet caret to a position and ensure it is visible. The anchor position is\nset the same as the current position.\n@param buffer The global buffer.\n@param pos The position.\n -goto_prev _m.textadept.bookmarks.goto_prev()\nGoes to the previous bookmark in the current buffer.\n -goto_required _m.lua.goto_required()\nDetermines the Lua file being 'require'd, searches through package.path for\nthat file, and opens it in Textadept.\n -goto_required _m.php.goto_required()\nDetermines the PHP file being 'require'd or 'include'd, and opens it in\nTextadept.\n -goto_required _m.ruby.goto_required()\nDetermine the Ruby file being 'require'd, and search through the RUBYPATH\nfor that file and open it in Textadept.\n +goto_prev _M.textadept.bookmarks.goto_prev()\nGoes to the previous bookmark in the current buffer.\n +goto_required _M.lua.goto_required()\nDetermines the Lua file being 'require'd, searches through package.path for\nthat file, and opens it in Textadept.\n +goto_required _M.php.goto_required()\nDetermines the PHP file being 'require'd or 'include'd, and opens it in\nTextadept.\n +goto_required _M.ruby.goto_required()\nDetermine the Ruby file being 'require'd, and search through the RUBYPATH\nfor that file and open it in Textadept.\n goto_view gui.goto_view(n, relative)\nGoes to the specified view. Generates `VIEW_BEFORE_SWITCH` and\n`VIEW_AFTER_SWITCH` events.\n@param n A relative or absolute view index.\n@param relative Flag indicating if n is a relative index or not. Defaults\nto false.\n grab_focus buffer.grab_focus(buffer)\nSet the focus to this view.\n@param buffer The global buffer.\n graph lexer.graph\nMatches any graphical character (`!` to `~`).\n -grow_selection _m.textadept.editing.grow_selection(amount)\nGrows the selection by a character amount on either end.\n@param amount The amount to grow the selection on either end.\n +grow_selection _M.textadept.editing.grow_selection(amount)\nGrows the selection by a character amount on either end.\n@param amount The amount to grow the selection on either end.\n gsub string.gsub(s, pattern, repl [, n])\nReturns a copy of `s` in which all (or the first `n`, if given) occurrences of\nthe `pattern` have been replaced by a replacement string specified by `repl`,\nwhich can be a string, a table, or a function. `gsub` also returns, as its\nsecond value, the total number of matches that occurred. The name `gsub`\ncomes from "Global SUBstitution". If `repl` is a string, then its value\nis used for replacement. The character `%` works as an escape character:\nany sequence in `repl` of the form `%d`, with `d` between 1 and 9, stands\nfor the value of the `d`-th captured substring (see below). The sequence\n`%0` stands for the whole match. The sequence `%%` stands for a single\n`%`. If `repl` is a table, then the table is queried for every match,\nusing the first capture as the key; if the pattern specifies no captures,\nthen the whole match is used as the key. If `repl` is a function, then this\nfunction is called every time a match occurs, with all captured substrings\npassed as arguments, in order; if the pattern specifies no captures, then\nthe whole match is passed as a sole argument. If the value returned by\nthe table query or by the function call is a string or a number, then it\nis used as the replacement string; otherwise, if it is false or nil, then\nthere is no replacement (that is, the original match is kept in the string).\nHere are some examples: x = string.gsub("hello world", "(%w+)", "%1 %1")\n--> x="hello hello world world" x = string.gsub("hello world", "%w+", "%0\n%0", 1) --> x="hello hello world" x = string.gsub("hello world from Lua",\n"(%w+)%s*(%w+)", "%2 %1") --> x="world hello Lua from" x = string.gsub("home\n= $HOME, user = $USER", "%$(%w+)", os.getenv) --> x="home = /home/roberto,\nuser = roberto" x = string.gsub("4+5 = $return 4+5$", "%$(.-)%$", function (s)\nreturn load(s)() end) --> x="4+5 = 9" local t = {name="lua", version="5.2"}\nx = string.gsub("$name-$version.tar.gz", "%$(%w+)", t) --> x="lua-5.2.tar.gz"\n gtkmenu gui.gtkmenu(menu_table)\nCreates a GTK menu, returning the userdata.\n@param menu_table A table defining the menu. It is an ordered list of tables\nwith a string menu item, integer menu ID, and optional keycode and modifier\nmask. The latter two are used to display key shortcuts in the menu. The\nstring menu item is handled as follows: `'gtk-*'` - a stock menu item is\ncreated based on the GTK stock-id. `'separator'` - a menu separator item is\ncreated. Otherwise a regular menu item with a mnemonic is created. Submenus\nare just nested menu-structure tables. Their title text is defined with a\n`title` key.\n@see keys.get_gdk_key\n gui _G.gui [module]\nThe core gui table.\n h_scroll_bar buffer.h_scroll_bar [bool]\nWhether the horizontal scroll bar is visible. Set to `false` to never see it\nand `true` to enable it again. The default state is to display it when needed.\n -handle_clear _m.textadept.adeptsense.handle_clear(sense)\nCalled when clearing an Adeptsense. This function should be replaced with\nyour own if you have any persistant objects that need to be deleted.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n -handle_ctag _m.textadept.adeptsense.handle_ctag(sense, tag_name, file_name, ex_cmd,\next_fields)\nCalled by `load_ctags()` when a ctag kind is not recognized. This method\nshould be replaced with your own that is specific to the language.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param tag_name The tag name.\n@param file_name The name of the file the tag belongs to.\n@param ex_cmd The `ex_cmd` returned by ctags.\n@param ext_fields The `ext_fields` returned by ctags.\n +handle_clear _M.textadept.adeptsense.handle_clear(sense)\nCalled when clearing an Adeptsense. This function should be replaced with\nyour own if you have any persistant objects that need to be deleted.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n +handle_ctag _M.textadept.adeptsense.handle_ctag(sense, tag_name, file_name, ex_cmd,\next_fields)\nCalled by `load_ctags()` when a ctag kind is not recognized. This method\nshould be replaced with your own that is specific to the language.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param tag_name The tag name.\n@param file_name The name of the file the tag belongs to.\n@param ex_cmd The `ex_cmd` returned by ctags.\n@param ext_fields The `ext_fields` returned by ctags.\n handlers events.handlers [table]\nA table of event names and a table of functions connected to them.\n hex_num lexer.hex_num\nMatches a hexadecimal number.\n hide_lines buffer.hide_lines(buffer, start_line, end_line)\nMake a range of lines invisible. This has no effect on fold levels or fold\nflags. `start_line` can not be hidden.\n@param buffer The global buffer.\n@param start_line The start line.\n@param end_line The end line.\n hide_selection buffer.hide_selection(buffer, normal)\nDraw the selection in normal style or with selection highlighted.\n@param buffer The global buffer.\n@param normal Draw normal selection.\n highlight_guide buffer.highlight_guide [number]\nThe highlighted indentation guide column. Set to `0` to cancel this highlight.\n -highlight_word _m.textadept.editing.highlight_word()\nHighlights all occurances of the word under the caret and adds markers to\nthe lines they are on.\n +highlight_word _M.textadept.editing.highlight_word()\nHighlights all occurances of the word under the caret and adds markers to\nthe lines they are on.\n home buffer.home(buffer)\nMove caret to first position on line.\n@param buffer The global buffer.\n home_display buffer.home_display(buffer)\nMove caret to first position on display line.\n@param buffer The global buffer.\n home_display_extend buffer.home_display_extend(buffer)\nMove caret to first position on display line extending selection to new\ncaret position.\n@param buffer The global buffer.\n @@ -1082,7 +1082,7 @@ hotspot_single_line buffer.hotspot_single_line [bool]\nWhether hotspots are limi huge math.huge\nThe value `HUGE_VAL`, a value larger than or equal to any other numerical\nvalue.\n hypertext _G.keys.hypertext [table]\nContainer for HTML-specific key commands.\n hypertext _G.snippets.hypertext [table]\nContainer for HTML-specific snippets.\n -hypertext _m.hypertext [module]\nThe hypertext module. It provides utilities for editing HTML code. User tags\nare loaded from _USERHOME/modules/hypertext/tags and user apis are loaded\nfrom _USERHOME/modules/hypertext/api.\n +hypertext _M.hypertext [module]\nThe hypertext module. It provides utilities for editing HTML code. User tags\nare loaded from _USERHOME/modules/hypertext/tags and user apis are loaded\nfrom _USERHOME/modules/hypertext/api.\n iconv string.iconv(text, to, from)\nConverts a string from one character set to another using iconv. Valid\ncharacter sets are ones GLib's `g_convert()` accepts, typically GNU iconv's\ncharacter sets.\n@param text The text to convert.\n@param to The character set to convert to.\n@param from The character set to convert from.\n in_files gui.find.in_files [bool]\nSearch for the text in a list of files.\n in_files_label_text gui.find.in_files_label_text [string]\nThe text of the 'In files' label. This is primarily used for\nlocalization. (Write-only)\n @@ -1101,7 +1101,7 @@ indicator_fill_range buffer.indicator_fill_range(buffer, pos, fill_length)\nTurn indicator_start buffer.indicator_start(buffer, indicator, pos)\nFind the position where a particular indicator starts.\n@param buffer The global buffer.\n@param indicator An indicator number in the range of `0` to `31`.\n@param pos The position of the indicator.\n indicator_value buffer.indicator_value [number]\nThe indicator value used for `buffer:indicator_fill_range()`. Currently all\nvalues are drawn the same.\n indicator_value_at buffer.indicator_value_at(buffer, indicator, pos)\nRetrieve the value of a particular indicator at a position. Currently all\nvalues are drawn the same.\n@param buffer The global buffer.\n@param indicator The indicator number in the range of `0` to `31`.\n@param pos The position.\n@return number\n -inherited_classes _m.textadept.adeptsense.inherited_classes [table]\nContains a map of classes and a list of their inherited classes.\n +inherited_classes _M.textadept.adeptsense.inherited_classes [table]\nContains a map of classes and a list of their inherited classes.\n input io.input([file])\nWhen called with a file name, it opens the named file (in text mode), and\nsets its handle as the default input file. When called with a file handle, it\nsimply sets this file handle as the default input file. When called without\nparameters, it returns the current default input file. In case of errors\nthis function raises the error, instead of returning an error code.\n insert table.insert(list, [pos, ] value)\nInserts element `value` at position `pos` in `list`, shifting up the elements\n`list[pos], list[pos+1], ···, list[#list]`. The default value for `pos` is\n`#list+1`, so that a call `table.insert(t,x)` inserts `x` at the end of list\n`t`.\n insert_text buffer.insert_text(buffer, pos, text)\nInsert string at a position. If the current position is after the insertion\npoint then it is moved along with its surrounding text but no scrolling\nis performed.\n@param buffer The global buffer.\n@param pos The position to insert text at or `-1` for the current position.\n@param text The text to insert.\n @@ -1110,10 +1110,10 @@ io _G.io [module]\nLua io module.\n ipairs _G.ipairs(t)\nIf `t` has a metamethod `__ipairs`, calls it with `t` as argument and returns\nthe first three results from the call. Otherwise, returns three values:\nan iterator function, the table `t`, and 0, so that the construction for\ni,v in ipairs(t) do *body* end will iterate over the pairs (`1,t[1]`),\n(`2,t[2]`), ..., up to the first integer key absent from the table.\n java _G.keys.java [table]\nContainer for Java-specific key commands.\n java _G.snippets.java [table]\nContainer for Java-specific snippets.\n -java _m.java [module]\nThe java module. It provides utilities for editing Java code. User tags\nare loaded from _USERHOME/modules/java/tags and user apis are loaded from\n_USERHOME/modules/java/api.\n -join_lines _m.textadept.editing.join_lines()\nJoins the current line with the line below.\n +java _M.java [module]\nThe java module. It provides utilities for editing Java code. User tags\nare loaded from _USERHOME/modules/java/tags and user apis are loaded from\n_USERHOME/modules/java/api.\n +join_lines _M.textadept.editing.join_lines()\nJoins the current line with the line below.\n keys _G.keys [module]\nManages key commands in Textadept.\n -keys _m.textadept.keys [module]\nDefines key commands for Textadept. This set of key commands is pretty\nstandard among other text editors. This module, should be 'require'ed last,\nbut before _m.textadept.menu.\n +keys _M.textadept.keys [module]\nDefines key commands for Textadept. This set of key commands is pretty\nstandard among other text editors. This module, should be 'require'ed last,\nbut before _M.textadept.menu.\n keys_unicode buffer.keys_unicode [bool]\nInterpret keyboard input as Unicode.\n layout_cache buffer.layout_cache [number]\nThe degree of caching of layout information.\n * `_SCINTILLA.constants.SC_CACHE_NONE` (0): No lines are cached.\n * `_SCINTILLA.constants.SC_CACHE_CARET` (1): The line containing the\n text caret. This is the default.\n * `_SCINTILLA.constants.SC_CACHE_PAGE` (2): Visible lines plus the line\n containing the caret.\n * `_SCINTILLA.constants.SC_CACHE_DOCUMENT` (3): All lines in the\n document.\n\n ldexp math.ldexp(m, e)\nReturns 'm2^e' (`e` should be an integer).\n @@ -1122,7 +1122,7 @@ length buffer.length [number]\nThe number of bytes in the document. (Read-only)\ lex lexer.lex(text, init_style)\nLexes the given text. Called by LexLPeg.cxx; do not call from Lua. If the lexer\nhas a _LEXBYLINE flag set, the text is lexed one line at a time. Otherwise\nthe text is lexed as a whole.\n@param text The text to lex.\n@param init_style The current style. Multilang lexers use this to determine\nwhich language to start lexing in.\n lexer _G.lexer [module]\nPerforms lexing of Scintilla documents.\n lexer buffer.lexer [number]\nThe lexing language of the document.\n -lexers _m.textadept.mime_types.lexers [table]\nList of detected lexers. Lexers are read from `lexers/` and\n`~/.textadept/lexers/`.\n +lexers _M.textadept.mime_types.lexers [table]\nList of detected lexers. Lexers are read from `lexers/` and\n`~/.textadept/lexers/`.\n lfs _G.lfs [module]\nLua lfs module.\n line_copy buffer.line_copy(buffer)\nCopy the line containing the caret.\n@param buffer The global buffer.\n line_count buffer.line_count [number]\nThe number of lines in the document. There is always at least one. (Read-only)\n @@ -1160,17 +1160,15 @@ lines_on_screen buffer.lines_on_screen [number]\nThe number of lines completely lines_split buffer.lines_split(buffer, pixel_width)\nSplit the lines in the target into lines that are less wide than `pixel_width`\nwhere possible.\n@param buffer The global buffer.\n@param pixel_width The pixel width. When `0`, the width of the view is used.\n lines_visible buffer.lines_visible [bool]\nAre all lines visible? (Read-only)\n load _G.load(ld [, source [, mode [, env]]])\nLoads a chunk. If `ld` is a string, the chunk is this string. If `ld` is a\nfunction, `load` calls it repeatedly to get the chunk pieces. Each call to `ld`\nmust return a string that concatenates with previous results. A return of an\nempty string, nil, or no value signals the end of the chunk. If there are no\nsyntactic errors, returns the compiled chunk as a function; otherwise, returns\n<b>nil</b> plus the error message. If the resulting function has upvalues,\nthe first upvalue is set to the value of the global environment or to `env`,\nif that parameter is given. When loading main chunks, the first upvalue will\nbe the `_ENV` variable (see §2.2). `source` is used as the source of the\nchunk for error messages and debug information (see §4.9). When absent,\nit defaults to `ld`, if `ld` is a string, or to "`=(load)`" otherwise.\nThe string `mode` controls whether the chunk can be text or binary (that is,\na precompiled chunk). It may be the string "`b`" (only binary chunks), "`t`"\n(only text chunks), or "`bt`" (both binary and text). The default is "`bt`".\n -load _m.textadept.session.load(filename)\nLoads a Textadept session file. Textadept restores split views, opened buffers,\ncursor information, and project manager details.\n@param filename The absolute path to the session file to load. Defaults to\n`DEFAULT_SESSION` if not specified.\n@usage _m.textadept.session.load(filename)\n@return `true` if the session file was opened and read; `false` otherwise.\n +load _M.textadept.session.load(filename)\nLoads a Textadept session file. Textadept restores split views, opened buffers,\ncursor information, and project manager details.\n@param filename The absolute path to the session file to load. Defaults to\n`DEFAULT_SESSION` if not specified.\n@usage _M.textadept.session.load(filename)\n@return `true` if the session file was opened and read; `false` otherwise.\n load lexer.load(lexer_name)\nInitializes the specified lexer.\n@param lexer_name The name of the lexing language.\n -load_ctags _m.textadept.adeptsense.load_ctags(sense, tag_file, nolocations)\nLoads the given ctags file for autocompletion. It is recommended to pass\n`-n` to ctags in order to use line numbers instead of text patterns to locate\ntags. This will greatly reduce memory usage for a large number of symbols if\n`nolocations` is not `true`.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param tag_file The path of the ctags file to load.\n@param nolocations If `true`, does not store the locations of the tags for\nuse by `goto_ctag()`. Defaults to `false`.\n -load_project _m.rails.load_project(utf8_dir)\nSets keys.al.o to snapopen a Rails project. If not directory is provided,\nthe user is prompted for one.\n@param utf8_dir The UTF-8 Rails project directory.\n +load_ctags _M.textadept.adeptsense.load_ctags(sense, tag_file, nolocations)\nLoads the given ctags file for autocompletion. It is recommended to pass\n`-n` to ctags in order to use line numbers instead of text patterns to locate\ntags. This will greatly reduce memory usage for a large number of symbols if\n`nolocations` is not `true`.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param tag_file The path of the ctags file to load.\n@param nolocations If `true`, does not store the locations of the tags for\nuse by `goto_ctag()`. Defaults to `false`.\n +load_project _M.rails.load_project(utf8_dir)\nSets keys.al.o to snapopen a Rails project. If not directory is provided,\nthe user is prompted for one.\n@param utf8_dir The UTF-8 Rails project directory.\n loaded package.loaded\nA table used by `require` to control which modules are already loaded. When\nyou require a module `modname` and `package.loaded[modname]` is not false,\n`require` simply returns the value stored there. This variable is only a\nreference to the real table; assignments to this variable do not change the\ntable used by `require`.\n loadfile _G.loadfile([filename [, mode [, env]]])\nSimilar to `load`, but gets the chunk from file `filename` or from the\nstandard input, if no file name is given.\n loadlib package.loadlib(libname, funcname)\nDynamically links the host program with the C library `libname`. If `funcname`\nis "`*`", then it only links with the library, making the symbols exported\nby the library available to other dynamically linked libraries. Otherwise, it\nlooks for a function `funcname` inside the library and returns this function\nas a C function. (So, `funcname` must follow the prototype `lua_CFunction`).\nThis is a low-level function. It completely bypasses the package and module\nsystem. Unlike `require`, it does not perform any path searching and does\nnot automatically adds extensions. `libname` must be the complete file name\nof the C library, including if necessary a path and an extension. `funcname`\nmust be the exact name exported by the C library (which may depend on the\nC compiler and linker used). This function is not supported by Standard\nC. As such, it is only available on some platforms (Windows, Linux, Mac OS X,\nSolaris, BSD, plus other Unix systems that support the `dlfcn` standard).\n -locale _G.locale [module]\nContains all messages used by Textadept for localization.\n locale lpeg.locale([table])\nReturns a table with patterns for matching some character classes according\nto the current locale. The table has fields named alnum, alpha, cntrl, digit,\ngraph, lower, print, punct, space, upper, and xdigit, each one containing\na correspondent pattern. Each pattern matches any single character that\nbelongs to its class. If called with an argument table, then it creates\nthose fields inside the given table and returns that table.\n -localize locale.localize(id)\nLocalizes the given string.\n@param id String to localize.\n -locations _m.textadept.adeptsense.locations [table]\nContains the locations of known symbols. This table is populated by\n`load_ctags()`.\n +locations _M.textadept.adeptsense.locations [table]\nContains the locations of known symbols. This table is populated by\n`load_ctags()`.\n lock lfs.lock(filehandle, mode[, start[, length]])\nLocks a file or a part of it. This function works on open files; the file\nhandle should be specified as the first argument. The string mode could be\neither r (for a read/shared lock) or w (for a write/exclusive lock). The\noptional arguments start and length can be used to specify a starting point\nand its length; both should be numbers. Returns true if the operation was\nsuccessful; in case of error, it returns nil plus an error string.\n lock_dir lfs.lock_dir(path, [seconds_stale])\nCreates a lockfile (called lockfile.lfs) in path if it does not exist\nand returns the lock. If the lock already exists checks it it's stale,\nusing the second parameter (default for the second parameter is INT_MAX,\nwhich in practice means the lock will never be stale. To free the the\nlock call lock:free(). In case of any errors it returns nil and the error\nmessage. In particular, if the lock exists and is not stale it returns the\n"File exists" message.\n log math.log(x [, base])\nReturns the logarithm of `x` in the given base. The default for `base` is 'e'\n(so that the function returns the natural logarithm of `x`).\n @@ -1182,7 +1180,7 @@ lrotate bit32.lrotate(x, disp)\nReturns the number `x` rotated `disp` bits to th lshift bit32.lshift(x, disp)\nReturns the number `x` shifted `disp` bits to the left. The number `disp`\nmay be any representable integer. Negative displacements shift to the\nright. In any direction, vacant bits are filled with zeros. In particular,\ndisplacements with absolute values higher than 31 result in zero (all bits\nare shifted out). For positive displacements, the following equality holds:\nassert(bit32.lshift(b, disp) == (b * 2^disp) % 2^32)\n lua _G.keys.lua [table]\nContainer for Lua-specific key commands.\n lua _G.snippets.lua [table]\nContainer for Lua-specific snippets.\n -lua _m.lua [module]\nThe lua module. It provides utilities for editing Lua code. User tags\nare loaded from _USERHOME/modules/lua/tags and user apis are loaded from\n_USERHOME/modules/lua/api.\n +lua _M.lua [module]\nThe lua module. It provides utilities for editing Lua code. User tags\nare loaded from _USERHOME/modules/lua/tags and user apis are loaded from\n_USERHOME/modules/lua/api.\n lua gui.find.lua [bool]\nThe search text is interpreted as a Lua pattern.\n lua_pattern_label_text gui.find.lua_pattern_label_text [string]\nThe text of the 'Lua pattern' label. This is primarily used for\nlocalization. (Write-only)\n main_selection buffer.main_selection [number]\nThe main selection. The main selection may be displayed in different colors\nor with a differently styled caret. Only an already existing selection can\nbe made main.\n @@ -1219,16 +1217,16 @@ marker_set_fore buffer.marker_set_fore(buffer, marker_num, color)\nSet the foreg marker_symbol_defined buffer.marker_symbol_defined(buffer, marker_num)\nReturn the symbol defined for marker_num with `buffer:marker_define()`.\n@param buffer The global buffer.\n@param marker_num A marker number in the range of `0` to `31`.\n@return number\n match lpeg.match(pattern, subject [, init])\nThe matching function. It attempts to match the given pattern against the\nsubject string. If the match succeeds, returns the index in the subject of\nthe first character after the match, or the captured values (if the pattern\ncaptured any value). An optional numeric argument init makes the match starts\nat that position in the subject string. As usual in Lua libraries, a negative\nvalue counts from the end. Unlike typical pattern-matching functions, match\nworks only in anchored mode; that is, it tries to match the pattern with a\nprefix of the given subject string (at position init), not with an arbitrary\nsubstring of the subject. So, if we want to find a pattern anywhere in a\nstring, we must either write a loop in Lua or write a pattern that matches\nanywhere. This second approach is easy and quite efficient; see examples.\n match string.match(s, pattern [, init])\nLooks for the first *match* of `pattern` in the string `s`. If it finds one,\nthen `match` returns the captures from the pattern; otherwise it returns\nnil. If `pattern` specifies no captures, then the whole match is returned. A\nthird, optional numerical argument `init` specifies where to start the search;\nits default value is 1 and can be negative.\n -match_brace _m.textadept.editing.match_brace(select)\nGoes to a matching brace position, selecting the text inside if specified to.\n@param select If `true`, selects the text between matching braces.\n +match_brace _M.textadept.editing.match_brace(select)\nGoes to a matching brace position, selecting the text inside if specified to.\n@param select If `true`, selects the text between matching braces.\n match_case gui.find.match_case [bool]\nSearches are case-sensitive.\n match_case_label_text gui.find.match_case_label_text [string]\nThe text of the 'Match case' label. This is primarily used for\nlocalization. (Write-only)\n math _G.math [module]\nLua math module.\n max math.max(x, ···)\nReturns the maximum value among its arguments.\n max_line_state buffer.max_line_state [number]\nThe last line number that has line state. (Read-only)\n -menu _m.textadept.menu [module]\nProvides dynamic menus for Textadept. This module should be `require`ed last,\nafter `_m.textadept.keys` since it looks up defined key commands to show\nthem in menus.\n -menubar _m.textadept.menu.menubar [table]\nContains the main menubar.\n +menu _M.textadept.menu [module]\nProvides dynamic menus for Textadept. This module should be `require`ed last,\nafter `_M.textadept.keys` since it looks up defined key commands to show\nthem in menus.\n +menubar _M.textadept.menu.menubar [table]\nContains the main menubar.\n menubar gui.menubar [table]\nA table of GTK menus defining a menubar. (Write-only)\n -mime_types _m.textadept.mime_types [module]\nHandles file-specific settings.\n +mime_types _M.textadept.mime_types [module]\nHandles file-specific settings.\n min math.min(x, ···)\nReturns the minimum value among its arguments.\n mkdir lfs.mkdir(dirname)\nCreates a new directory. The argument is the name of the new directory.\nReturns true if the operation was successful; in case of error, it returns\nnil plus an error string.\n modf math.modf(x)\nReturns two numbers, the integral part of `x` and the fractional part of `x`.\n @@ -1241,7 +1239,7 @@ move_selected_lines_up buffer.move_selected_lines_up(buffer)\nMove the selected multi_paste buffer.multi_paste [bool]\nThe effect of pasting when there are multiple selections.\n * `_SCINTILLA.constants.SC_MULTIPASTE_ONCE` (0): Pasted text can go\n into just the main selection (default).\n * `_SCINTILLA.constants.SC_MULTIPASTE_EACH` (1): Pasted text can go\n into each selection.\n\n multiple_selection buffer.multiple_selection [bool]\nWhether multiple selections can be made. When multiple selection is disabled,\nit is not possible to select multiple ranges by holding down the Ctrl key\nwhile dragging with the mouse.\n nested_pair lexer.nested_pair(start_chars, end_chars, end_optional)\nSimilar to `delimited_range()`, but allows for multi-character\ndelimitters. This is useful for lexers with tokens such as nested block\ncomments. With single-character delimiters, this function is identical to\n`delimited_range(start_chars..end_chars, nil, end_optional, true)`.\n@param start_chars The string starting a nested sequence.\n@param end_chars The string ending a nested sequence.\n@param end_optional Optional flag indicating whether or not an ending delimiter\nis optional or not. If true, the range begun by the start delimiter matches\nuntil an end delimiter or the end of the input is reached.\n@usage local nested_comment = l.nested_pair('/*', '*/', true)\n -new _m.textadept.adeptsense.new(lang)\nCreates a new Adeptsense for the given lexer language. Only one sense can\nexist per language.\n@param lang The lexer language to create an Adeptsense for.\n@usage local lua_sense = _m.textadept.adeptsense.new('lua')\n@return adeptsense\n +new _M.textadept.adeptsense.new(lang)\nCreates a new Adeptsense for the given lexer language. Only one sense can\nexist per language.\n@param lang The lexer language to create an Adeptsense for.\n@usage local lua_sense = _M.textadept.adeptsense.new('lua')\n@return adeptsense\n new_buffer _G.new_buffer()\nCreates a new buffer. Generates a `BUFFER_NEW` event.\n@return the new buffer.\n new_line buffer.new_line(buffer)\nInsert a new line, may use a CRLF, CR or LF depending on EOL mode.\n@param buffer The global buffer.\n newline lexer.newline\nMatches any newline characters.\n @@ -1252,7 +1250,7 @@ next_user_list_type _SCINTILLA.next_user_list_type()\nReturns a unique user list nonnewline lexer.nonnewline\nMatches any non-newline character.\n nonnewline_esc lexer.nonnewline_esc\nMatches any non-newline character excluding newlines escaped with `\\`.\n oct_num lexer.oct_num\nMatches an octal number.\n -open _m.textadept.snapopen.open(utf8_paths, filter, exclusive, depth)\nQuickly open a file in set of directories.\n@param utf8_paths A UTF-8 string directory path or table of UTF-8 directory\npaths to search.\n@param filter A filter for files and folders to exclude. The filter may be\na string or table. Each filter is a Lua pattern. Any files matching a filter\nare excluded. Prefix a pattern with `!` to exclude any files that do not match\nthe filter. Directories can be excluded by adding filters to a table assigned\nto a `folders` key in the filter table. All strings should be UTF-8 encoded.\n@param exclusive Flag indicating whether or not to exclude `PATHS` in the\nsearch. Defaults to `false`.\n@param depth Number of directories to recurse into for finding files. Defaults\nto `DEFAULT_DEPTH`.\n@usage _m.textadept.snapopen.open()\n@usage _m.textadept.snapopen.open(buffer.filename:match('^.+/'), nil, true)\n@usage _m.textadept.snapopen.open(nil, '!%.lua$')\n@usage _m.textadept.snapopen.open(nil, { folders = { '%.hg' } })\n +open _M.textadept.snapopen.open(utf8_paths, filter, exclusive, depth)\nQuickly open a file in set of directories.\n@param utf8_paths A UTF-8 string directory path or table of UTF-8 directory\npaths to search.\n@param filter A filter for files and folders to exclude. The filter may be\na string or table. Each filter is a Lua pattern. Any files matching a filter\nare excluded. Prefix a pattern with `!` to exclude any files that do not match\nthe filter. Directories can be excluded by adding filters to a table assigned\nto a `folders` key in the filter table. All strings should be UTF-8 encoded.\n@param exclusive Flag indicating whether or not to exclude `PATHS` in the\nsearch. Defaults to `false`.\n@param depth Number of directories to recurse into for finding files. Defaults\nto `DEFAULT_DEPTH`.\n@usage _M.textadept.snapopen.open()\n@usage _M.textadept.snapopen.open(buffer.filename:match('^.+/'), nil, true)\n@usage _M.textadept.snapopen.open(nil, '!%.lua$')\n@usage _M.textadept.snapopen.open(nil, { folders = { '%.hg' } })\n open io.open(filename [, mode])\nThis function opens a file, in the mode specified in the string `mode`. It\nreturns a new file handle, or, in case of errors, nil plus an error message.\nThe `mode` string can be any of the following: "r": read mode (the default);\n"w": write mode; "a": append mode; "r+": update mode, all previous data is\npreserved; "w+": update mode, all previous data is erased; "a+": append update\nmode, previous data is preserved, writing is only allowed at the end of file.\nThe `mode` string can also have a '`b`' at the end, which is needed in some\nsystems to open the file in binary mode.\n open_file io.open_file(utf8_filenames)\nOpens a list of files.\n@param utf8_filenames A `\\n` separated list of UTF-8-encoded filenames to\nopen. If `nil`, the user is prompted with a fileselect dialog.\n@usage io.open_file(utf8_encoded_filename)\n open_recent_file io.open_recent_file()\nPrompts the user to open a recently opened file.\n @@ -1274,11 +1272,11 @@ para_up buffer.para_up(buffer)\nMove caret one paragraph up (delimited by empty para_up_extend buffer.para_up_extend(buffer)\nMove caret one paragraph up (delimited by empty lines) extending selection\nto new caret position.\n@param buffer The global buffer.\n paste buffer.paste(buffer)\nPaste the contents of the clipboard into the document replacing the selection.\n@param buffer The global buffer.\n path package.path\nThe path used by `require` to search for a Lua loader. At start-up,\nLua initializes this variable with the value of the environment variable\n`LUA_PATH_5_2` or the environment variable `LUA_PATH` or with a default path\ndefined in `luaconf.h`, if those environment variables are not defined. Any\n"`;;`" in the value of the environment variable is replaced by the default\npath.\n -patterns _m.textadept.mime_types.patterns [table]\nFirst-line patterns and their associated lexers.\n +patterns _M.textadept.mime_types.patterns [table]\nFirst-line patterns and their associated lexers.\n pcall _G.pcall(f [, arg1, ···])\nCalls function `f` with the given arguments in *protected mode*. This means\nthat any error inside `f` is not propagated; instead, `pcall` catches the\nerror 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.\n php _G.keys.php [table]\nContainer for PHP-specific key commands.\n php _G.snippets.php [table]\nContainer for PHP-specific snippets.\n -php _m.php [module]\nThe php module. It provides utilities for editing PHP code. User tags\nare loaded from _USERHOME/modules/php/tags and user apis are loaded from\n_USERHOME/modules/php/api.\n +php _M.php [module]\nThe php module. It provides utilities for editing PHP code. User tags\nare loaded from _USERHOME/modules/php/tags and user apis are loaded from\n_USERHOME/modules/php/api.\n pi math.pi\nThe value of 'π'.\n point_x_from_position buffer.point_x_from_position(buffer, pos)\nRetrieve the x value of the point in the window where a position is displayed.\n@param buffer The global buffer.\n@param pos The position.\n@return number\n point_y_from_position buffer.point_y_from_position(buffer, pos)\nRetrieve the y value of the point in the window where a position is displayed.\n@param buffer The global buffer.\n@param pos The position.\n@return number\n @@ -1291,7 +1289,7 @@ position_from_point buffer.position_from_point(buffer, x, y)\nFind the position position_from_point_close buffer.position_from_point_close(buffer, x, y)\nReturns the position from a point within the window, but return `-1` if not\nclose to text.\n@param buffer The global buffer.\n@return number\n pow math.pow(x, y)\nReturns *x^y*. (You can also use the expression `x^y` to compute this value.)\n preload package.preload\nA table to store loaders for specific modules (see `require`). This variable\nis only a reference to the real table; assignments to this variable do not\nchange the table used by `require`.\n -prepare_for_save _m.textadept.editing.prepare_for_save()\nPrepares the buffer for saving to a file. Strips trailing whitespace off of\nevery line, ensures an ending newline, and converts non-consistent EOLs.\n +prepare_for_save _M.textadept.editing.prepare_for_save()\nPrepares the buffer for saving to a file. Strips trailing whitespace off of\nevery line, ensures an ending newline, and converts non-consistent EOLs.\n print _G.print(···)\nReceives any number of arguments and prints their values to `stdout`,\nusing the `tostring` function to convert each argument to a string. `print`\nis not intended for formatted output, but only as a quick way to show a\nvalue, for instance for debugging. For complete control over the output,\nuse `string.format` and `io.write`.\n print gui.print(...)\nPrints messages to the Textadept message buffer. Opens a new buffer (if one\nhas not already been opened) for printing messages.\n@param ... Message strings.\n print lexer.print\nMatches any printable character (space to `~`).\n @@ -1300,8 +1298,8 @@ print_magnification buffer.print_magnification [number]\nThe print magnification print_wrap_mode buffer.print_wrap_mode [number]\nPrinting line wrap mode.\n * `_SCINTILLA.constants.SC_WRAP_NONE` (0): Each line of text generates\n one line of output and the line is truncated if it is too long to fit\n into the print area.\n * `_SCINTILLA.constants.SC_WRAP_WORD` (1): Wraps printed output so that\n all characters fit into the print rectangle. Tries to wrap only\n between words as indicated by white space or style changes although\n if a word is longer than a line, it will be wrapped before the line\n end. This is the default.\n * `_SCINTILLA.constants.SC_WRAP_CHAR` (2).\n\n private_lexer_call buffer.private_lexer_call(buffer, operation, data)\nFor private communication between an application and a known lexer.\n@param buffer The global buffer.\n@param operation An operation number.\n@param data Number data.\n process args.process()\nProcesses command line arguments. Add command line switches with\n`args.register()`. Any unrecognized arguments are treated as filepaths and\nopened. Generates an `'arg_none'` event when no args are present.\n@see register\n -prompt_load _m.textadept.session.prompt_load()\nPrompts the user for a Textadept session to load.\n -prompt_save _m.textadept.session.prompt_save()\nPrompts the user to save the current Textadept session to a file.\n +prompt_load _M.textadept.session.prompt_load()\nPrompts the user for a Textadept session to load.\n +prompt_save _M.textadept.session.prompt_save()\nPrompts the user to save the current Textadept session to a file.\n properties _SCINTILLA.properties [table]\nScintilla properties.\n property buffer.property [table]\nTable of keyword:value string pairs used by a lexer for some optional\nfeatures. (Write-only)\n property_int buffer.property_int [table]\nInterprets `buffer.property[keyword]` as an integer if found or returns\n`0`. (Read-only)\n @@ -1310,7 +1308,7 @@ quit _G.quit()\nQuits Textadept.\n rad math.rad(x)\nReturns the angle `x` (given in degrees) in radians.\n rails _G.keys.rails [table]\nContainer for Rails-specific key commands.\n rails _G.snippets.rails [table]\nContainer for Rails-specific snippets.\n -rails _m.rails [module]\nThe rails module. It provides utilities for editing Ruby on Rails code. User\ntags are loaded from _USERHOME/modules/rails/tags and user apis are loaded\nfrom _USERHOME/modules/rails/api.\n +rails _M.rails [module]\nThe rails module. It provides utilities for editing Ruby on Rails code. User\ntags are loaded from _USERHOME/modules/rails/tags and user apis are loaded\nfrom _USERHOME/modules/rails/api.\n random math.random([m [, n]])\nThis function is an interface to the simple pseudo-random generator function\n`rand` provided by Standard C. (No guarantees can be given for its statistical\nproperties.) When called without arguments, returns a uniform pseudo-random\nreal number in the range [0,1). When called with an integer number `m`,\n`math.random` returns a uniform pseudo-random integer in the range [1,\nm]. When called with two integer numbers `m` and `n`, `math.random` returns\na uniform pseudo-random integer in the range [m, n].\n randomseed math.randomseed(x)\nSets `x` as the "seed" for the pseudo-random generator: equal seeds produce\nequal sequences of numbers.\n rawequal _G.rawequal(v1, v2)\nChecks whether `v1` is equal to `v2`, without invoking any metamethod. Returns\na boolean.\n @@ -1320,7 +1318,7 @@ rawset _G.rawset(table, index, value)\nSets the real value of `table[index]` to read file:read(···)\nReads the file `file`, according to the given formats, which specify what\nto read. For each format, the function returns a string (or a number)\nwith the characters read, or nil if it cannot read data with the specified\nformat. When called without formats, it uses a default format that reads\nthe next line (see below). The available formats are "*n": reads a number;\nthis is the only format that returns a number instead of a string. "*a":\nreads the whole file, starting at the current position. On end of file,\nit returns the empty string. "*l": reads the next line skipping the end\nof line, returning nil on end of file. This is the default format. "*L":\nreads the next line keeping the end of line (if present), returning nil\non end of file. *number*: reads a string with up to this number of bytes,\nreturning nil on end of file. If number is zero, it reads nothing and returns\nan empty string, or nil on end of file.\n read io.read(···)\nEquivalent to `io.input():read(···)`.\n read_only buffer.read_only [bool]\nRead-only mode.\n -rebuild_command_tables _m.textadept.menu.rebuild_command_tables()\nRebuilds the tables used by `select_command()`. This should be called every\ntime `set_menubar()` is called.\n +rebuild_command_tables _M.textadept.menu.rebuild_command_tables()\nRebuilds the tables used by `select_command()`. This should be called every\ntime `set_menubar()` is called.\n recent_files io.recent_files [table]\nList of recently opened files. The most recent are towards the top.\n rectangular_selection_anchor buffer.rectangular_selection_anchor [number]\nThe position of the anchor of the rectangular selection.\n rectangular_selection_anchor_virtual_space buffer.rectangular_selection_anchor_virtual_space [number]\nThe amount of virtual space for the anchor of the rectangular selection.\n @@ -1332,7 +1330,7 @@ register args.register(switch1, switch2, narg, f, description)\nRegisters a comm register_image buffer.register_image(buffer, type, xpm_data)\nRegister an XPM image for use in autocompletion lists.\n@param buffer The global buffer.\n@param type Integer type to register the image with.\n@param xpm_data XPM data as is described for `buffer:marker_define_pixmap()`.\n register_rgba_image buffer.register_rgba_image(buffer, type, pixels)\nRegister an RGBA image for use in autocompletion lists. It has the width\nand height from `buffer.rgba_image_width` and `buffer.rgba_image_height`.\n@param buffer The global buffer.\n@param type Integer type to register the image with.\n@param pixels RGBA data as is described for\n`buffer:marker_define_rgba_image()`.\n reload buffer.reload(buffer)\nReloads the file in a given buffer.\n@param buffer The global buffer.\n -remove _m.textadept.bookmarks.remove()\nClears the bookmark at the current line.\n +remove _M.textadept.bookmarks.remove()\nClears the bookmark at the current line.\n remove os.remove(filename)\nDeletes the file (or empty directory, on POSIX systems) with the given\nname. If this function fails, it returns nil, plus a string describing the\nerror and the error code.\n remove table.remove(list [, pos])\nRemoves from `list` the element at position `pos`, shifting down the\nelements `list[pos+1], list[pos+2], ···, list[#list]` and erasing element\n`list[#list]`. Returns the value of the removed element. The default value for\n`pos` is `#list`, so that a call `table.remove(t)` removes the last element\nof list `t`.\n rename os.rename(oldname, newname)\nRenames file or directory named `oldname` to `newname`. If this function\nfails, it returns nil, plus a string describing the error and the error code.\n @@ -1355,19 +1353,19 @@ rgba_image_height buffer.rgba_image_height [number]\nThe height for future RGBA rgba_image_width buffer.rgba_image_width [number]\nThe width for future RGBA image data.\n rhtml _G.keys.rhtml [table]\nContainer for RHTML-specific key commands.\n rhtml _G.snippets.rhtml [table]\nContainer for RHTML-specific snippets.\n -rhtml _m.rhtml [module]\nThe RHTML module. It provides utilities for editing RHTML. User tags are\nloaded from _USERHOME/modules/rhtml/tags and user apis are loaded from\n_USERHOME/modules/rhtml/api.\n +rhtml _M.rhtml [module]\nThe RHTML module. It provides utilities for editing RHTML. User tags are\nloaded from _USERHOME/modules/rhtml/tags and user apis are loaded from\n_USERHOME/modules/rhtml/api.\n rmdir lfs.rmdir(dirname)\nRemoves an existing directory. The argument is the name of the directory.\nReturns true if the operation was successful; in case of error, it returns\nnil plus an error string.\n rotate_selection buffer.rotate_selection(buffer)\nSet the main selection to the next selection.\n@param buffer The global buffer.\n rrotate bit32.rrotate(x, disp)\nReturns the number `x` rotated `disp` bits to the right. The number `disp`\nmay be any representable integer. For any valid displacement, the following\nidentity holds: assert(bit32.rrotate(x, disp) == bit32.rrotate(x, disp %\n32)) In particular, negative displacements rotate to the left.\n rshift bit32.rshift(x, disp)\nReturns the number `x` shifted `disp` bits to the right. The number `disp`\nmay be any representable integer. Negative displacements shift to the\nleft. In any direction, vacant bits are filled with zeros. In particular,\ndisplacements with absolute values higher than 31 result in zero (all bits\nare shifted out). For positive displacements, the following equality holds:\nassert(bit32.rshift(b, disp) == math.floor(b % 2^32 / 2^disp)) This shift\noperation is what is called logical shift.\n ruby _G.keys.ruby [table]\nContainer for Ruby-specific key commands.\n ruby _G.snippets.ruby [table]\nContainer for Ruby-specific snippets.\n -ruby _m.ruby [module]\nThe ruby module. It provides utilities for editing Ruby code. User tags\nare loaded from _USERHOME/modules/ruby/tags and user apis are loaded from\n_USERHOME/modules/ruby/api.\n -run _m.textadept.run [module]\nModule for running/executing source files. Typically, language-specific\nmodules populate the 'compile_command', 'run_command', and 'error_detail'\ntables for a particular language's file extension.\n -run _m.textadept.run.run()\nRuns/executes the file as specified by its extension in the `run_command`\ntable.\n@see run_command\n -run_command _m.textadept.run.run_command [table]\nFile extensions and their associated 'go' actions. Each key is a file extension\nwhose value is either a command line string to execute or a function returning\none. This table is typically populated by language-specific modules.\n +ruby _M.ruby [module]\nThe ruby module. It provides utilities for editing Ruby code. User tags\nare loaded from _USERHOME/modules/ruby/tags and user apis are loaded from\n_USERHOME/modules/ruby/api.\n +run _M.textadept.run [module]\nModule for running/executing source files. Typically, language-specific\nmodules populate the 'compile_command', 'run_command', and 'error_detail'\ntables for a particular language's file extension.\n +run _M.textadept.run.run()\nRuns/executes the file as specified by its extension in the `run_command`\ntable.\n@see run_command\n +run_command _M.textadept.run.run_command [table]\nFile extensions and their associated 'go' actions. Each key is a file extension\nwhose value is either a command line string to execute or a function returning\none. This table is typically populated by language-specific modules.\n running coroutine.running()\nReturns the running coroutine plus a boolean, true when the running coroutine\nis the main one.\n -save _m.textadept.session.save(filename)\nSaves a Textadept session to a file. Saves split views, opened buffers,\ncursor information, and project manager details.\n@param filename The absolute path to the session file to save. Defaults to\neither the current session file or `DEFAULT_SESSION` if not specified.\n@usage _m.textadept.session.save(filename)\n +save _M.textadept.session.save(filename)\nSaves a Textadept session to a file. Saves split views, opened buffers,\ncursor information, and project manager details.\n@param filename The absolute path to the session file to save. Defaults to\neither the current session file or `DEFAULT_SESSION` if not specified.\n@usage _M.textadept.session.save(filename)\n save buffer.save(buffer)\nSaves the current buffer to a file.\n@param buffer The global buffer.\n save_all io.save_all()\nSaves all dirty buffers to their respective files.\n@usage io.save_all()\n save_as buffer.save_as(buffer, utf8_filename)\nSaves the current buffer to a file different than its filename property.\n@param buffer The global buffer.\n@param utf8_filename The new filepath to save the buffer to. Must be UTF-8\nencoded.\n @@ -1388,12 +1386,12 @@ sel_alpha buffer.sel_alpha [number]\nThe alpha of the selection, between `0` (tr sel_eol_filled buffer.sel_eol_filled [bool]\nThe selection end of line fill. The selection can be drawn up to the right\nhand border by setting this property.\n select _G.select(index, ···)\nIf `index` is a number, returns all arguments after argument number `index`;\na negative number indexes from the end (-1 is the last argument). Otherwise,\n`index` must be the string `"#"`, and `select` returns the total number of\nextra arguments it received.\n select_all buffer.select_all(buffer)\nSelect all the text in the document. The current position is not scrolled\ninto view.\n@param buffer The global buffer.\n -select_command _m.textadept.menu.select_command()\nPrompts the user with a filteredlist to run menu commands.\n -select_enclosed _m.textadept.editing.select_enclosed(left, right)\nSelects text between a given pair of strings.\n@param left The left part of the enclosure.\n@param right The right part of the enclosure.\n -select_indented_block _m.textadept.editing.select_indented_block()\nSelects indented blocks intelligently. If no block of text is selected, all\ntext with the current level of indentation is selected. If a block of text is\nselected and the lines to the top and bottom of it are one indentation level\nlower, they are added to the selection. In all other cases, the behavior is\nthe same as if no text is selected.\n -select_lexer _m.textadept.mime_types.select_lexer()\nPrompts the user to select a lexer from a filtered list for the current buffer.\n -select_line _m.textadept.editing.select_line()\nSelects the current line.\n -select_paragraph _m.textadept.editing.select_paragraph()\nSelects the current paragraph. Paragraphs are delimited by two or more\nconsecutive newlines.\n +select_command _M.textadept.menu.select_command()\nPrompts the user with a filteredlist to run menu commands.\n +select_enclosed _M.textadept.editing.select_enclosed(left, right)\nSelects text between a given pair of strings.\n@param left The left part of the enclosure.\n@param right The right part of the enclosure.\n +select_indented_block _M.textadept.editing.select_indented_block()\nSelects indented blocks intelligently. If no block of text is selected, all\ntext with the current level of indentation is selected. If a block of text is\nselected and the lines to the top and bottom of it are one indentation level\nlower, they are added to the selection. In all other cases, the behavior is\nthe same as if no text is selected.\n +select_lexer _M.textadept.mime_types.select_lexer()\nPrompts the user to select a lexer from a filtered list for the current buffer.\n +select_line _M.textadept.editing.select_line()\nSelects the current line.\n +select_paragraph _M.textadept.editing.select_paragraph()\nSelects the current paragraph. Paragraphs are delimited by two or more\nconsecutive newlines.\n select_theme gui.select_theme()\nPrompts the user to select an editor theme from a filtered list.\n selection_duplicate buffer.selection_duplicate(buffer)\nDuplicate the selection. If selection empty duplicate the line containing\nthe caret.\n@param buffer The global buffer.\n selection_end buffer.selection_end [number]\nThe position that ends the selection - this becomes the current position. This\ndoes not make the caret visible.\n @@ -1407,26 +1405,26 @@ selection_n_end buffer.selection_n_end [table]\nTable of positions that end sele selection_n_start buffer.selection_n_start [table]\nTable of positions that start selections for existing selections starting\nfrom zero, the main selection.\n selection_start buffer.selection_start [number]\nThe position that starts the selection - this becomes the anchor. This does\nnot make the caret visible.\n selections buffer.selections [number]\nThe number of selections currently active. (Read-only)\n -self _m.textadept.adeptsense.syntax.self\nThe language's syntax-equivalent of `self`. Default is `'self'`.\n -sense _m.cpp.sense\nThe C/C++ Adeptsense.\n -sense _m.css.sense\nThe CSS Adeptsense.\n -sense _m.hypertext.sense\nThe HTML Adeptsense.\n -sense _m.java.sense\nThe Java Adeptsense.\n -sense _m.lua.sense\nThe Lua Adeptsense.\n -sense _m.php.sense\nThe PHP Adeptsense.\n -sense _m.rails.sense\nThe Rails Adeptsense.\n -sense _m.rhtml.sense\nThe RHTML Adeptsense.\n -sense _m.ruby.sense\nThe Ruby Adeptsense.\n -session _m.textadept.session [module]\nSession support for the textadept module.\n -set_buffer_properties _m.cpp.set_buffer_properties()\nSets default buffer properties for C/C++ files.\n -set_buffer_properties _m.css.set_buffer_properties()\nSets default buffer properties for CSS files.\n -set_buffer_properties _m.hypertext.set_buffer_properties()\nSets default buffer properties for HTML files.\n -set_buffer_properties _m.java.set_buffer_properties()\nSets default buffer properties for Java files.\n -set_buffer_properties _m.lua.set_buffer_properties()\nSets default buffer properties for Lua files.\n -set_buffer_properties _m.php.set_buffer_properties()\nSets default buffer properties for PHP files.\n -set_buffer_properties _m.ruby.set_buffer_properties()\nSets default buffer properties for Ruby files.\n +self _M.textadept.adeptsense.syntax.self\nThe language's syntax-equivalent of `self`. Default is `'self'`.\n +sense _M.cpp.sense\nThe C/C++ Adeptsense.\n +sense _M.css.sense\nThe CSS Adeptsense.\n +sense _M.hypertext.sense\nThe HTML Adeptsense.\n +sense _M.java.sense\nThe Java Adeptsense.\n +sense _M.lua.sense\nThe Lua Adeptsense.\n +sense _M.php.sense\nThe PHP Adeptsense.\n +sense _M.rails.sense\nThe Rails Adeptsense.\n +sense _M.rhtml.sense\nThe RHTML Adeptsense.\n +sense _M.ruby.sense\nThe Ruby Adeptsense.\n +session _M.textadept.session [module]\nSession support for the textadept module.\n +set_buffer_properties _M.cpp.set_buffer_properties()\nSets default buffer properties for C/C++ files.\n +set_buffer_properties _M.css.set_buffer_properties()\nSets default buffer properties for CSS files.\n +set_buffer_properties _M.hypertext.set_buffer_properties()\nSets default buffer properties for HTML files.\n +set_buffer_properties _M.java.set_buffer_properties()\nSets default buffer properties for Java files.\n +set_buffer_properties _M.lua.set_buffer_properties()\nSets default buffer properties for Lua files.\n +set_buffer_properties _M.php.set_buffer_properties()\nSets default buffer properties for PHP files.\n +set_buffer_properties _M.ruby.set_buffer_properties()\nSets default buffer properties for Ruby files.\n set_chars_default buffer.set_chars_default(buffer)\nReset the set of characters for whitespace and word characters to the\ndefaults. This sets whitespace to space, tab and other characters with codes\nless than `0x20`, with word characters set to alphanumeric and `'_'`.\n@param buffer The global buffer.\n -set_contextmenu _m.textadept.menu.set_contextmenu(menu_table)\nSets `gui.context_menu` from the given menu table.\n@param menu_table The menu table to create the context menu from. Each table\nentry is either a submenu or menu text and a function or action table.\n@see set_menubar\n +set_contextmenu _M.textadept.menu.set_contextmenu(menu_table)\nSets `gui.context_menu` from the given menu table.\n@param menu_table The menu table to create the context menu from. Each table\nentry is either a submenu or menu text and a function or action table.\n@see set_menubar\n set_empty_selection buffer.set_empty_selection(buffer, pos)\nSet caret to a position, while removing any existing selection. The caret\nis not scrolled into view.\n@param buffer The buffer\n@param pos The position to move to.\n set_encoding buffer.set_encoding(buffer, encoding)\nSets the encoding for the buffer, converting its contents in the process.\n@param buffer The global buffer.\n@param encoding The encoding to set. Valid encodings are ones that GTK's\n`g_convert()` function accepts (typically GNU iconv's encodings).\n@usage buffer.set_encoding(buffer, 'ASCII')\n set_fold_flags buffer.set_fold_flags(buffer, flags)\nSet some style options for folding.\n@param buffer The global buffer.\n@param flags Mask of fold flags. Flags available are\n`_SCINTILLA.constants.SC_FOLDFLAG_LINEBEFORE_EXPANDED` (2): Draw above if\nexpanded; `_SCINTILLA.constants.SC_FOLDFLAG_LINEBEFORE_CONTRACTED`\n(4): Draw above if not expanded;\n`_SCINTILLA.constants.SC_FOLDFLAG_LINEAFTER_EXPANDED` (8): Draw below if\nexpanded; `_SCINTILLA.constants.SC_FOLDFLAG_LINEAFTER_CONTRACTED` (16):\nDraw below if not expanded\n @@ -1437,7 +1435,7 @@ set_hotspot_active_fore buffer.set_hotspot_active_fore(buffer, use_setting, colo set_length_for_encode buffer.set_length_for_encode(buffer, bytes)\nSet the length of the utf8 argument for calling `buffer:encoded_from_utf8()`.\n@param buffer The global buffer.\n@param bytes Bytes or `-1` for measuring to first NUL.\n set_lexer buffer.set_lexer(buffer, lang)\nReplacement for `buffer.set_lexer_language(buffer)`. Sets a `buffer._lexer`\nfield so it can be restored without querying the mime-types tables. Also\nif the user manually sets the lexer, it should be restored. Loads the\nlanguage-specific module if it exists.\n@param buffer The global buffer.\n@param lang The string language to set.\n@usage buffer.set_lexer(buffer, 'language_name')\n set_lexer_language buffer.set_lexer_language(buffer, language_name)\nSet the lexing language of the document based on string name.\n@param buffer The global buffer.\n@param language_name The language name.\n -set_menubar _m.textadept.menu.set_menubar(menubar)\nSets `gui.menubar` from the given table of menus.\n@param menubar The table of menus to create the menubar from. Each table\nentry is another table that corresponds to a particular menu. A menu can\nhave a `title` key with string value. Each menu item is either a submenu\n(another menu table) or a table consisting of two items: string menu text\nand a function or action table just like in `keys`. The table can optionally\ncontain 2 more number values: a GDK keycode and modifier mask for setting\na menu accelerator. If the menu text is `'separator'`, a menu separator is\ncreated and no action table is required.\n@see keys.get_gdk_key\n +set_menubar _M.textadept.menu.set_menubar(menubar)\nSets `gui.menubar` from the given table of menus.\n@param menubar The table of menus to create the menubar from. Each table\nentry is another table that corresponds to a particular menu. A menu can\nhave a `title` key with string value. Each menu item is either a submenu\n(another menu table) or a table consisting of two items: string menu text\nand a function or action table just like in `keys`. The table can optionally\ncontain 2 more number values: a GDK keycode and modifier mask for setting\na menu accelerator. If the menu text is `'separator'`, a menu separator is\ncreated and no action table is required.\n@see keys.get_gdk_key\n set_save_point buffer.set_save_point(buffer)\nRemember the current position in the undo history as the position at which\nthe document was saved.\n@param buffer The global buffer.\n set_sel buffer.set_sel(buffer, start_pos, end_pos)\nSelect a range of text. The caret is scrolled into view after this operation.\n@param buffer The global buffer.\n@param start_pos Start position. If negative, it means the end of the document.\n@param end_pos End position. If negative, it means remove any selection\n(i.e. set the `anchor` to the same position as `current_pos`).\n set_sel_back buffer.set_sel_back(buffer, use_setting, color)\nSet the background color of the main and additional selections and whether\nto use this setting.\n@param buffer The global buffer.\n@param use_setting Enable color change.\n@param color A color in `0xBBGGRR` format.\n @@ -1461,18 +1459,18 @@ 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` of\nthe function `f`. The function returns nil if there is no upvalue with the\ngiven index. Otherwise, it returns the name of the upvalue.\n setuservalue debug.setuservalue(udata, value)\nSets the given `value` as the Lua value associated to the given\n`udata`. `value` must be a table or nil; `udata` must be a full userdata.\nReturns `udata`.\n setvbuf file:setvbuf(mode [, size])\nSets the buffering mode for an output file. There are three available\nmodes: "no": no buffering; the result of any output operation appears\nimmediately. "full": full buffering; output operation is performed only\nwhen the buffer is full or when you explicitly `flush` the file (see\n`io.flush`). "line": line buffering; output is buffered until a newline is\noutput or there is any input from some special files (such as a terminal\ndevice). For the last two cases, `size` specifies the size of the buffer,\nin bytes. The default is an appropriate size.\n -shebangs _m.textadept.mime_types.shebangs [table]\nShebang words and their associated lexers.\n -show_apidoc _m.textadept.adeptsense.show_apidoc(sense)\nShows a calltip with API documentation for the symbol behind the caret.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@return `true` on success or `false`.\n@see get_symbol\n@see get_apidoc\n -show_documentation _m.textadept.adeptsense.show_documentation()\nShows API documentation for the symbol at the current position based on the\ncurrent lexer's Adeptsense. This should be called by key commands and menus\ninstead of `show_apidoc()`.\n +shebangs _M.textadept.mime_types.shebangs [table]\nShebang words and their associated lexers.\n +show_apidoc _M.textadept.adeptsense.show_apidoc(sense)\nShows a calltip with API documentation for the symbol behind the caret.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@return `true` on success or `false`.\n@see get_symbol\n@see get_apidoc\n +show_documentation _M.textadept.adeptsense.show_documentation()\nShows API documentation for the symbol at the current position based on the\ncurrent lexer's Adeptsense. This should be called by key commands and menus\ninstead of `show_apidoc()`.\n show_lines buffer.show_lines(buffer, start_line, end_line)\nMake a range of lines visible. This has no effect on fold levels or fold\nflags. `start_line` can not be hidden.\n@param buffer The global buffer.\n@param start_line The start line.\n@param end_line The end line.\n sin math.sin(x)\nReturns the sine of `x` (assumed to be in radians).\n -singular _m.rails.singular\nA map of plural controller names to their singulars. Add key-value pairs to\nthis if singularize() is incorrectly converting your plural controller name\nto its singular model name.\n +singular _M.rails.singular\nA map of plural controller names to their singulars. Add key-value pairs to\nthis if singularize() is incorrectly converting your plural controller name\nto its singular model name.\n sinh math.sinh(x)\nReturns the hyperbolic sine of `x`.\n size gui.size [table]\nThe size of the Textadept window (`{ width, height }`).\n size view.size [number]\nThe position of the split resizer (if this view is part of a split view).\n -snapopen _m.textadept.snapopen [module]\nSnapopen for the textadept module.\n +snapopen _M.textadept.snapopen [module]\nSnapopen for the textadept module.\n snippets _G.snippets [table]\nProvides access to snippets from `_G`.\n -snippets _m.textadept.snippets [module]\nProvides Lua-style snippets for Textadept.\n +snippets _M.textadept.snippets [module]\nProvides Lua-style snippets for Textadept.\n sort table.sort(list [, comp])\nSorts list elements in a given order, *in-place*, from `list[1]` to\n`list[#list]`. If `comp` is given, then it must be a function that receives\ntwo list elements and returns true when the first element must come before the\nsecond in the final order (so that `not comp(list[i+1],list[i])` will be true\nafter the sort). If `comp` is not given, then the standard Lua operator `<` is\nused instead. The sort algorithm is not stable; that is, elements considered\nequal by the given order may have their relative positions changed by the sort.\n space lexer.space\nMatches any whitespace character (`\t`, `\v`, `\f`, `\\n`, `\r`, space).\n split view:split(vertical)\nSplits the indexed view vertically or horizontally and focuses the new view.\n@param vertical Flag indicating a vertical split. Defaults to `false`\nfor horizontal.\n@return old view and new view tables.\n @@ -1536,9 +1534,9 @@ style_weight buffer.style_weight [table]\nTable of character weights for styles sub string.sub(s, i [, j])\nReturns the substring of `s` that starts at `i` and continues until `j`;\n`i` and `j` can be negative. If `j` is absent, then it is assumed to\nbe equal to -1 (which is the same as the string length). In particular,\nthe call `string.sub(s,1,j)` returns a prefix of `s` with length `j`, and\n`string.sub(s, -i)` returns a suffix of `s` with length `i`. If, after the\ntranslation of negative indices, `i` is less than 1, it is corrected to 1. If\n`j` is greater than the string length, it is corrected to that length. If,\nafter these corrections, `i` is greater than `j`, the function returns the\nempty string.\n swap_main_anchor_caret buffer.swap_main_anchor_caret(buffer)\nSwap that caret and anchor of the main selection.\n@param buffer The global buffer.\n switch_buffer gui.switch_buffer()\nDisplays a dialog with a list of buffers to switch to and switches to the\nselected one, if any.\n -symbol_chars _m.textadept.adeptsense.syntax.symbol_chars\nA Lua pattern of characters allowed in a symbol, including member\noperators. The pattern should be a character set. The default is `'[%w_%.]'`.\n +symbol_chars _M.textadept.adeptsense.syntax.symbol_chars\nA Lua pattern of characters allowed in a symbol, including member\noperators. The pattern should be a character set. The default is `'[%w_%.]'`.\n symlinkattributes lfs.symlinkattributes(filepath [, aname])\nIdentical to lfs.attributes except that it obtains information about the link\nitself (not the file it refers to). This function is not available in Windows\nso you may want to make sure that lfs.symlinkattributes exists before using it.\n -syntax _m.textadept.adeptsense.syntax [table]\nContains syntax-specific values for the language.\n@see get_class\n +syntax _M.textadept.adeptsense.syntax [table]\nContains syntax-specific values for the language.\n@see get_class\n tab buffer.tab(buffer)\nIf selection is empty or all on one line replace the selection with a tab\ncharacter, or if more than one line selected, indent the lines.\n@param buffer The global buffer.\n tab_indents buffer.tab_indents [bool]\nWhether a tab pressed when caret is within indentation indents.\n tab_width buffer.tab_width [number]\nThe visible size of a tab as a multiple of the width of a space character. The\ndefault tab width is 8 characters.\n @@ -1553,14 +1551,14 @@ text_height buffer.text_height(buffer, line)\nRetrieve the height of a particula text_length buffer.text_length [number]\nThe number of characters in the document. (Read-only)\n text_range buffer.text_range(buffer, start_pos, end_pos)\nGets a range of text from the current buffer.\n@param buffer The global buffer.\n@param start_pos The beginning position of the range of text to get.\n@param end_pos The end position of the range of text to get.\n text_width buffer.text_width(buffer, style_num, text)\nMeasure the pixel width of some text in a particular style. Does not handle\ntab or control characters.\n@param buffer The global buffer.\n@param style_num The style number between `0` and `255`.\n@param text The text.\n@return number\n -textadept _m.textadept [module]\nThe textadept module. It provides utilities for editing text in Textadept.\n +textadept _M.textadept [module]\nThe textadept module. It provides utilities for editing text in Textadept.\n time os.time([table])\nReturns the current time when called without arguments, or a time representing\nthe date and time specified by the given table. This table must have fields\n`year`, `month`, and `day`, and may have fields `hour` (default is 12), `min`\n(default is 0), `sec` (default is 0), and `isdst` (default is nil). For\na description of these fields, see the `os.date` function. The returned\nvalue is a number, whose meaning depends on your system. In POSIX, Windows,\nand some other systems, this number counts the number of seconds since some\ngiven start time (the "epoch"). In other systems, the meaning is not specified,\nand the number returned by `time` can be used only as an argument to `os.date`\nand `os.difftime`.\n timeout _G.timeout(interval, f, ...)\nCalls a given function after an interval of time. To repeatedly call the\nfunction, return true inside the function. A `nil` or `false` return value\nstops repetition.\n@param interval The interval in seconds to call the function after.\n@param f The function to call.\n@param ... Additional arguments to pass to `f`.\n title gui.title [string]\nThe title of the Textadept window.\n tmpfile io.tmpfile()\nReturns a handle for a temporary file. This file is opened in update mode\nand it is automatically removed when the program ends.\n tmpname os.tmpname()\nReturns a string with a file name that can be used for a temporary file. The\nfile must be explicitly opened before its use and explicitly removed when\nno longer needed. On POSIX systems, this function also creates a file with\nthat name, to avoid security risks. (Someone else might create the file\nwith wrong permissions in the time between getting the name and creating\nthe file.) You still have to open the file to use it and to remove it (even\nif you do not use it). When possible, you may prefer to use `io.tmpfile`,\nwhich automatically removes the file when the program ends.\n -toggle _m.textadept.bookmarks.toggle()\nToggles a bookmark on the current line.\n -toggle_block _m.ruby.toggle_block()\nToggles between { ... } and do ... end Ruby blocks. If the caret is inside\na { ... } single-line block, that block is converted to a multiple-line do\n.. end block. If the caret is on a line that contains single-line do ... end\nblock, that block is converted to a single-line { ... } block. If the caret\nis inside a multiple-line do ... end block, that block is converted to a\nsingle-line { ... } block with all newlines replaced by a space. Indentation\nis important. The 'do' and 'end' keywords must be on lines with the same\nlevel of indentation to toggle correctly\n +toggle _M.textadept.bookmarks.toggle()\nToggles a bookmark on the current line.\n +toggle_block _M.ruby.toggle_block()\nToggles between { ... } and do ... end Ruby blocks. If the caret is inside\na { ... } single-line block, that block is converted to a multiple-line do\n.. end block. If the caret is on a line that contains single-line do ... end\nblock, that block is converted to a single-line { ... } block. If the caret\nis inside a multiple-line do ... end block, that block is converted to a\nsingle-line { ... } block with all newlines replaced by a space. Indentation\nis important. The 'do' and 'end' keywords must be on lines with the same\nlevel of indentation to toggle correctly\n toggle_caret_sticky buffer.toggle_caret_sticky(buffer)\nSwitch between sticky and non-sticky: meant to be bound to a key. See\n`buffer.caret_sticky`.\n@param buffer The global buffer.\n toggle_fold buffer.toggle_fold(buffer, line)\nSwitch a header line between expanded and contracted.\n@param buffer The global buffer.\n@param line The line number.\n token lexer.token(name, patt)\nCreates an LPeg capture table index with the name and position of the token.\n@param name The name of token. If this name is not in `l.tokens` then you\nwill have to specify a style for it in `lexer._tokenstyles`.\n@param patt The LPeg pattern associated with the token.\n@usage local ws = token(l.WHITESPACE, l.space^1)\n@usage php_start_rule = token('php_tag', '<?' * ('php' * l.space)^-1)\n @@ -1568,17 +1566,17 @@ tonumber _G.tonumber(e [, base])\nWhen called with no `base`, `tonumber` tries t tostring _G.tostring(v)\nReceives a value of any type and converts it to a string in a reasonable\nformat. (For complete control of how numbers are converted, use\n`string.format`.) If the metatable of `v` has a `"__tostring"` field, then\n`tostring` calls the corresponding value with `v` as argument, and uses the\nresult of the call as its result.\n touch lfs.touch(filepath [, atime [, mtime]])\nSet access and modification times of a file. This function is a bind to utime\nfunction. The first argument is the filename, the second argument (atime)\nis the access time, and the third argument (mtime) is the modification\ntime. Both times are provided in seconds (which should be generated with Lua\nstandard function os.time). If the modification time is omitted, the access\ntime provided is used; if both times are omitted, the current time is used.\nReturns true if the operation was successful; in case of error, it returns\nnil plus an error string.\n traceback debug.traceback([thread, ] [message] [, level])\nIf `message` is present but is neither a string nor nil, this function returns\n`message` without further processing. Otherwise, it returns a string with\na traceback of the call stack. An optional `message` string is appended at\nthe beginning of the traceback. An optional `level` number tells at which\nlevel to start the traceback (default is 1, the function calling `traceback`).\n -transpose_chars _m.textadept.editing.transpose_chars()\nTransposes characters intelligently. If the caret is at the end of a line,\nthe two characters before the caret are transposed. Otherwise, the characters\nto the left and right are.\n +transpose_chars _M.textadept.editing.transpose_chars()\nTransposes characters intelligently. If the caret is at the end of a line,\nthe two characters before the caret are transposed. Otherwise, the characters\nto the left and right are.\n try_encodings io.try_encodings [table]\nList of encodings to try to decode files as after UTF-8.\n -try_to_autocomplete_end _m.lua.try_to_autocomplete_end()\nTries to autocomplete Lua's 'end' keyword for control structures like 'if',\n'while', 'for', etc.\n@see control_structure_patterns\n -try_to_autocomplete_end _m.ruby.try_to_autocomplete_end()\nTries to autocomplete Ruby's 'end' keyword for control structures like 'if',\n'while', 'for', etc.\n@see control_structure_patterns\n +try_to_autocomplete_end _M.lua.try_to_autocomplete_end()\nTries to autocomplete Lua's 'end' keyword for control structures like 'if',\n'while', 'for', etc.\n@see control_structure_patterns\n +try_to_autocomplete_end _M.ruby.try_to_autocomplete_end()\nTries to autocomplete Ruby's 'end' keyword for control structures like 'if',\n'while', 'for', etc.\n@see control_structure_patterns\n two_phase_draw buffer.two_phase_draw [bool]\nTwo phase drawing mode. When `true`, drawing is performed in two phases, first\nthe background and then the foreground. This avoids chopping off characters\nthat overlap the next run. The default is for drawing to be two phase.\n type _G.type(v)\nReturns the type of its only argument, coded as a string. The possible results\nof this function are " `nil`" (a string, not the value nil), "`number`",\n"`string`", "`boolean`", "`table`", "`function`", "`thread`", and "`userdata`".\n type io.type(obj)\nChecks whether `obj` is a valid file handle. Returns the string `"file"`\nif `obj` is an open file handle, `"closed file"` if `obj` is a closed file\nhandle, or nil if `obj` is not a file handle.\n type lpeg.type(value)\nIf the given value is a pattern, returns the string "pattern". Otherwise\nreturns nil.\n -type_assignments _m.textadept.adeptsense.syntax.type_assignments\nA map of Lua patterns to class types for variable assignments. This\nis typically used for dynamically typed languages. For example,\n`sense.type_assignments['^"'] = 'string'` would recognize string assignments\nin Lua so the `foo` in `foo = "bar"` would be recognized as type `string`. The\nclass type value can contain pattern captures.\n -type_declarations _m.textadept.adeptsense.syntax.type_declarations\nA list of Lua patterns used for determining the class type of a symbol. The\nfirst capture returned must be the class name. Use `%_` to match the\nsymbol. The default is `'(%u[%w_%.]+)%s+%_'`.\n -type_declarations_exclude _m.textadept.adeptsense.syntax.type_declarations_exclude\nA table of types to exclude, even if they match a type_declaration\npattern. Each excluded type is a table key and has a `true` boolean value. For\nexample, `{ Foo = true }` excludes any type whose name is `Foo`. Defaults\nto being empty.\n +type_assignments _M.textadept.adeptsense.syntax.type_assignments\nA map of Lua patterns to class types for variable assignments. This\nis typically used for dynamically typed languages. For example,\n`sense.type_assignments['^"'] = 'string'` would recognize string assignments\nin Lua so the `foo` in `foo = "bar"` would be recognized as type `string`. The\nclass type value can contain pattern captures.\n +type_declarations _M.textadept.adeptsense.syntax.type_declarations\nA list of Lua patterns used for determining the class type of a symbol. The\nfirst capture returned must be the class name. Use `%_` to match the\nsymbol. The default is `'(%u[%w_%.]+)%s+%_'`.\n +type_declarations_exclude _M.textadept.adeptsense.syntax.type_declarations_exclude\nA table of types to exclude, even if they match a type_declaration\npattern. Each excluded type is a table key and has a `true` boolean value. For\nexample, `{ Foo = true }` excludes any type whose name is `Foo`. Defaults\nto being empty.\n undo buffer.undo(buffer)\nUndo one action in the undo history.\n@param buffer The global buffer.\n undo_collection buffer.undo_collection [bool]\nWhether to collect undo information. When stopping collection, use\n`buffer:empty_undo_buffer()` to avoid the undo buffer being unsynchronized\nwith the data in the buffer.\n unlock lfs.unlock(filehandle[, start[, length]])\nUnlocks a file or a part of it. This function works on open files; the file\nhandle should be specified as the first argument. The optional arguments\nstart and length can be used to specify a starting point and its length;\nboth should be numbers. Returns true if the operation was successful;\nin case of error, it returns nil plus an error string.\n @@ -1611,7 +1609,7 @@ whitespace_size buffer.whitespace_size [number]\nThe size of the dots used to ma whole_word gui.find.whole_word [bool]\nOnly whole-word matches are allowed in searches.\n whole_word_label_text gui.find.whole_word_label_text [string]\nThe text of the 'Whole word' label. This is primarily used for\nlocalization. (Write-only)\n word lexer.word\nMatches a typical word starting with a letter or underscore and then any\nalphanumeric or underscore characters.\n -word_chars _m.textadept.adeptsense.syntax.word_chars\nA Lua pattern of characters allowed in a word. The default is `'%w_'`.\n +word_chars _M.textadept.adeptsense.syntax.word_chars\nA Lua pattern of characters allowed in a word. The default is `'%w_'`.\n word_chars buffer.word_chars [string]\nThe set of characters making up words when moving or selecting by\nword. (Write-only)\n word_end_position buffer.word_end_position(buffer, pos, only_word_chars)\nGet position of end of word.\n@param buffer The global buffer.\n@param pos The position.\n@param only_word_chars If `true`, stops searching at the first non-word\ncharacter in the search direction. Otherwise, the first character in the search\ndirection sets the type of the search as word or non-word and the search\nstops at the first non-matching character. Searches are also terminated by\nthe start or end of the document.\n word_left buffer.word_left(buffer)\nMove caret left one word.\n@param buffer The global buffer.\n diff --git a/modules/lua/init.lua b/modules/lua/init.lua index fc59df05..c608d6f6 100644 --- a/modules/lua/init.lua +++ b/modules/lua/init.lua @@ -8,7 +8,7 @@ local M = {} -- It provides utilities for editing Lua code. -- User tags are loaded from _USERHOME/modules/lua/tags and user apis are loaded -- from _USERHOME/modules/lua/api. -module('_m.lua')]] +module('_M.lua')]] -- Markdown: -- ## Key Commands @@ -24,14 +24,14 @@ module('_m.lua')]] -- -- ## Fields -- --- * `sense`: The Lua [Adeptsense](_m.textadept.adeptsense.html). +-- * `sense`: The Lua [Adeptsense](_M.textadept.adeptsense.html). -local m_editing, m_run = _m.textadept.editing, _m.textadept.run +local Mediting, Mrun = _M.textadept.editing, _M.textadept.run -- Comment string tables use lexer names. -m_editing.comment_string.lua = '--' +Mediting.comment_string.lua = '--' -- Compile and Run command tables use file extensions. -m_run.run_command.lua = 'lua %(filename)' -m_run.error_detail.lua = { +Mrun.run_command.lua = 'lua %(filename)' +Mrun.error_detail.lua = { pattern = '^lua: (.-):(%d+): (.+)$', filename = 1, line = 2, message = 3 } @@ -45,14 +45,14 @@ end -- Adeptsense. -M.sense = _m.textadept.adeptsense.new('lua') +M.sense = _M.textadept.adeptsense.new('lua') M.sense.syntax.class_definition = 'module%s*%(?%s*[\'"]([%w_%.]+)' M.sense.syntax.symbol_chars = '[%w_%.:]' M.sense.syntax.type_declarations = {} M.sense.syntax.type_assignments = { ['^[\'"]'] = 'string', -- foo = 'bar' or foo = "bar" - ['^([%w_%.]+)%s*$'] = '%1', -- foo = _m.textadept.adeptsense - ['^(_m%.textadept%.adeptsense)%.new'] = '%1', + ['^([%w_%.]+)%s*$'] = '%1', -- foo = _M.textadept.adeptsense + ['^(_M%.textadept%.adeptsense)%.new'] = '%1', ['require%s*%(?%s*(["\'])([%w_%.]+)%1%)?'] = '%2', ['^io%.p?open%s*%b()%s*$'] = 'file' } diff --git a/modules/lua/tags b/modules/lua/tags index fd0edf76..5e6933a7 100644 --- a/modules/lua/tags +++ b/modules/lua/tags @@ -2,8 +2,8 @@ ANNOTATION_BOXED _ 0;" F class:_SCINTILLA.constants ANNOTATION_HIDDEN _ 0;" F class:_SCINTILLA.constants ANNOTATION_STANDARD _ 0;" F class:_SCINTILLA.constants APPLEEVENT_ODOC _ 0;" F class:events -AUTOINDENT _ 0;" F class:_m.textadept.editing -AUTOPAIR _ 0;" F class:_m.textadept.editing +AUTOINDENT _ 0;" F class:_M.textadept.editing +AUTOPAIR _ 0;" F class:_M.textadept.editing AUTO_C_CHAR_DELETED _ 0;" F class:events AUTO_C_RELEASE _ 0;" F class:events AUTO_C_SELECTION _ 0;" F class:events @@ -38,8 +38,8 @@ Cp _ 0;" f class:lpeg Cs _ 0;" f class:lpeg Ct _ 0;" f class:lpeg DEFAULT _ 0;" F class:lexer -DEFAULT_DEPTH _ 0;" F class:_m.textadept.snapopen -DEFAULT_SESSION _ 0;" F class:_m.textadept.session +DEFAULT_DEPTH _ 0;" F class:_M.textadept.snapopen +DEFAULT_SESSION _ 0;" F class:_M.textadept.session DOUBLE_CLICK _ 0;" F class:events DWELL_END _ 0;" F class:events DWELL_START _ 0;" F class:events @@ -48,15 +48,15 @@ EDGE_LINE _ 0;" F class:_SCINTILLA.constants EDGE_NONE _ 0;" F class:_SCINTILLA.constants ERROR _ 0;" F class:events ERROR _ 0;" F class:lexer -FIELDS _ 0;" F class:_m.textadept.adeptsense +FIELDS _ 0;" F class:_M.textadept.adeptsense FILE_AFTER_SAVE _ 0;" F class:events FILE_BEFORE_SAVE _ 0;" F class:events FILE_OPENED _ 0;" F class:events FILE_SAVED_AS _ 0;" F class:events FIND _ 0;" F class:events FUNCTION _ 0;" F class:lexer -FUNCTIONS _ 0;" F class:_m.textadept.adeptsense -HIGHLIGHT_BRACES _ 0;" F class:_m.textadept.editing +FUNCTIONS _ 0;" F class:_M.textadept.adeptsense +HIGHLIGHT_BRACES _ 0;" F class:_M.textadept.editing HOTSPOT_CLICK _ 0;" F class:events HOTSPOT_DOUBLE_CLICK _ 0;" F class:events HOTSPOT_RELEASE_CLICK _ 0;" F class:events @@ -74,8 +74,8 @@ INDIC_DIAGONAL _ 0;" F class:_SCINTILLA.constants INDIC_DOTBOX _ 0;" F class:_SCINTILLA.constants INDIC_DOTS _ 0;" F class:_SCINTILLA.constants INDIC_HIDDEN _ 0;" F class:_SCINTILLA.constants -INDIC_HIGHLIGHT_ALPHA _ 0;" F class:_m.textadept.editing -INDIC_HIGHLIGHT_BACK _ 0;" F class:_m.textadept.editing +INDIC_HIGHLIGHT_ALPHA _ 0;" F class:_M.textadept.editing +INDIC_HIGHLIGHT_BACK _ 0;" F class:_M.textadept.editing INDIC_MAX _ 0;" F class:_SCINTILLA.constants INDIC_PLAIN _ 0;" F class:_SCINTILLA.constants INDIC_ROUNDBOX _ 0;" F class:_SCINTILLA.constants @@ -94,16 +94,16 @@ LANGUAGE_MODULE_LOADED _ 0;" F class:events LANGUAGE_MODULE_PREFIX _ 0;" F class:keys MARGIN_CLICK _ 0;" F class:events MARKER_MAX _ 0;" F class:_SCINTILLA.constants -MARK_BOOKMARK_COLOR _ 0;" F class:_m.textadept.bookmarks -MARK_HIGHLIGHT_BACK _ 0;" F class:_m.textadept.editing -MAX _ 0;" F class:_m.textadept.snapopen -MAX_RECENT_FILES _ 0;" F class:_m.textadept.session +MARK_BOOKMARK_COLOR _ 0;" F class:_M.textadept.bookmarks +MARK_HIGHLIGHT_BACK _ 0;" F class:_M.textadept.editing +MAX _ 0;" F class:_M.textadept.snapopen +MAX_RECENT_FILES _ 0;" F class:_M.textadept.session MENU_CLICKED _ 0;" F class:events NUMBER _ 0;" F class:lexer OPERATOR _ 0;" F class:lexer OSX _ 0;" F P _ 0;" f class:lpeg -PATHS _ 0;" F class:_m.textadept.snapopen +PATHS _ 0;" F class:_M.textadept.snapopen PREPROCESSOR _ 0;" F class:lexer QUIT _ 0;" F class:events R _ 0;" f class:lpeg @@ -115,7 +115,7 @@ RESET_AFTER _ 0;" F class:events RESET_BEFORE _ 0;" F class:events RUN_OUTPUT _ 0;" F class:events S _ 0;" f class:lpeg -SAVE_ON_QUIT _ 0;" F class:_m.textadept.session +SAVE_ON_QUIT _ 0;" F class:_M.textadept.session SAVE_POINT_LEFT _ 0;" F class:events SAVE_POINT_REACHED _ 0;" F class:events SCEN_CHANGE _ 0;" F class:_SCINTILLA.constants @@ -687,7 +687,7 @@ SC_WRAP_CHAR _ 0;" F class:_SCINTILLA.constants SC_WRAP_NONE _ 0;" F class:_SCINTILLA.constants SC_WRAP_WORD _ 0;" F class:_SCINTILLA.constants STRING _ 0;" F class:lexer -STRIP_WHITESPACE_ON_SAVE _ 0;" F class:_m.textadept.editing +STRIP_WHITESPACE_ON_SAVE _ 0;" F class:_M.textadept.editing STYLE_BRACEBAD _ 0;" F class:_SCINTILLA.constants STYLE_BRACELIGHT _ 0;" F class:_SCINTILLA.constants STYLE_CALLTIP _ 0;" F class:_SCINTILLA.constants @@ -717,7 +717,31 @@ _EMBEDDEDRULES _ 0;" t class:lexer _G _ 0;" F _G _ 0;" m _HOME _ 0;" F +_L _ 0;" F _LEXERPATH _ 0;" F +_M _ 0;" m +_M _ 0;" t +_M.cpp _ 0;" m +_M.css _ 0;" m +_M.hypertext _ 0;" m +_M.java _ 0;" m +_M.lua _ 0;" m +_M.php _ 0;" m +_M.rails _ 0;" m +_M.rhtml _ 0;" m +_M.ruby _ 0;" m +_M.textadept _ 0;" m +_M.textadept.adeptsense _ 0;" m +_M.textadept.bookmarks _ 0;" m +_M.textadept.editing _ 0;" m +_M.textadept.filter_through _ 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.snapopen _ 0;" m +_M.textadept.snippets _ 0;" m _RELEASE _ 0;" F _RULES _ 0;" t class:lexer _SCINTILLA _ 0;" m @@ -725,40 +749,17 @@ _SCINTILLA _ 0;" t _USERHOME _ 0;" F _VERSION _ 0;" F _VIEWS _ 0;" t -_cancel_current _ 0;" f class:_m.textadept.snippets -_insert _ 0;" f class:_m.textadept.snippets -_m _ 0;" m -_m _ 0;" t -_m.cpp _ 0;" m -_m.css _ 0;" m -_m.hypertext _ 0;" m -_m.java _ 0;" m -_m.lua _ 0;" m -_m.php _ 0;" m -_m.rails _ 0;" m -_m.rhtml _ 0;" m -_m.ruby _ 0;" m -_m.textadept _ 0;" m -_m.textadept.adeptsense _ 0;" m -_m.textadept.bookmarks _ 0;" m -_m.textadept.editing _ 0;" m -_m.textadept.filter_through _ 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.snapopen _ 0;" m -_m.textadept.snippets _ 0;" m -_previous _ 0;" f class:_m.textadept.snippets +_cancel_current _ 0;" f class:_M.textadept.snippets +_insert _ 0;" f class:_M.textadept.snippets +_previous _ 0;" f class:_M.textadept.snippets _print _ 0;" f class:gui -_select _ 0;" f class:_m.textadept.snippets +_select _ 0;" f class:_M.textadept.snippets abs _ 0;" f class:math acos _ 0;" f class:math -add _ 0;" f class:_m.textadept.bookmarks +add _ 0;" f class:_M.textadept.bookmarks add_selection _ 0;" f class:buffer add_text _ 0;" f class:buffer -add_trigger _ 0;" f class:_m.textadept.adeptsense +add_trigger _ 0;" f class:_M.textadept.adeptsense additional_caret_fore _ 0;" F class:buffer additional_carets_blink _ 0;" F class:buffer additional_carets_visible _ 0;" F class:buffer @@ -766,11 +767,11 @@ additional_sel_alpha _ 0;" F class:buffer additional_sel_back _ 0;" F class:buffer additional_sel_fore _ 0;" F class:buffer additional_selection_typing _ 0;" F class:buffer -adeptsense _ 0;" t class:_m.textadept +adeptsense _ 0;" t class:_M.textadept allocate _ 0;" f class:buffer alnum _ 0;" F class:lexer alpha _ 0;" F class:lexer -always_show_globals _ 0;" F class:_m.textadept.adeptsense +always_show_globals _ 0;" F class:_M.textadept.adeptsense anchor _ 0;" F class:buffer annotation_clear_all _ 0;" f class:buffer annotation_get_text _ 0;" f class:buffer @@ -780,7 +781,7 @@ annotation_style _ 0;" F class:buffer annotation_style_offset _ 0;" F class:buffer annotation_visible _ 0;" F class:buffer any _ 0;" F class:lexer -api_files _ 0;" t class:_m.textadept.adeptsense +api_files _ 0;" t class:_M.textadept.adeptsense append_text _ 0;" f class:buffer arg _ 0;" t args _ 0;" m @@ -811,24 +812,24 @@ auto_c_separator _ 0;" F class:buffer auto_c_show _ 0;" f class:buffer auto_c_stops _ 0;" f class:buffer auto_c_type_separator _ 0;" F class:buffer -autocomplete_word _ 0;" f class:_m.textadept.editing +autocomplete_word _ 0;" f class:_M.textadept.editing back_space_un_indents _ 0;" F class:buffer back_tab _ 0;" f class:buffer band _ 0;" f class:bit32 begin_undo_action _ 0;" f class:buffer bit32 _ 0;" m bit32 _ 0;" t -block_comment _ 0;" f class:_m.textadept.editing +block_comment _ 0;" f class:_M.textadept.editing bnot _ 0;" f class:bit32 boms _ 0;" t class:io -bookmarks _ 0;" t class:_m.textadept +bookmarks _ 0;" t class:_M.textadept bor _ 0;" f class:bit32 brace_bad_light _ 0;" f class:buffer brace_bad_light_indicator _ 0;" f class:buffer brace_highlight _ 0;" f class:buffer brace_highlight_indicator _ 0;" f class:buffer brace_match _ 0;" f class:buffer -braces _ 0;" t class:_m.textadept.editing +braces _ 0;" t class:_M.textadept.editing btest _ 0;" f class:bit32 buffer _ 0;" F class:view buffer _ 0;" m @@ -864,7 +865,7 @@ char_at _ 0;" F class:buffer char_left _ 0;" f class:buffer char_left_extend _ 0;" f class:buffer char_left_rect_extend _ 0;" f class:buffer -char_matches _ 0;" t class:_m.textadept.editing +char_matches _ 0;" t class:_M.textadept.editing char_position_from_point _ 0;" f class:buffer char_position_from_point_close _ 0;" f class:buffer char_right _ 0;" f class:buffer @@ -873,9 +874,9 @@ char_right_rect_extend _ 0;" f class:buffer chdir _ 0;" f class:lfs check_global _ 0;" f class:buffer choose_caret_x _ 0;" f class:buffer -class_definition _ 0;" F class:_m.textadept.adeptsense.syntax -clear _ 0;" f class:_m.textadept.adeptsense -clear _ 0;" f class:_m.textadept.bookmarks +class_definition _ 0;" F class:_M.textadept.adeptsense.syntax +clear _ 0;" f class:_M.textadept.adeptsense +clear _ 0;" f class:_M.textadept.bookmarks clear _ 0;" f class:buffer clear_all _ 0;" f class:buffer clear_all_cmd_keys _ 0;" f class:buffer @@ -896,24 +897,24 @@ colors _ 0;" t class:lexer colourise _ 0;" f class:buffer column _ 0;" F class:buffer command_entry _ 0;" t class:gui -comment_string _ 0;" t class:_m.textadept.editing -compile _ 0;" f class:_m.textadept.run -compile_command _ 0;" t class:_m.textadept.run -complete _ 0;" f class:_m.textadept.adeptsense -complete_symbol _ 0;" f class:_m.textadept.adeptsense -completions _ 0;" t class:_m.textadept.adeptsense +comment_string _ 0;" t class:_M.textadept.editing +compile _ 0;" f class:_M.textadept.run +compile_command _ 0;" t class:_M.textadept.run +complete _ 0;" f class:_M.textadept.adeptsense +complete_symbol _ 0;" f class:_M.textadept.adeptsense +completions _ 0;" t class:_M.textadept.adeptsense concat _ 0;" f class:table config _ 0;" F class:package connect _ 0;" f class:events constants _ 0;" t class:_SCINTILLA context_menu _ 0;" F class:gui -context_menu _ 0;" t class:_m.textadept.menu +context_menu _ 0;" t class:_M.textadept.menu contracted_fold_next _ 0;" f class:buffer control_char_symbol _ 0;" F class:buffer -control_structure_patterns _ 0;" t class:_m.lua -control_structure_patterns _ 0;" t class:_m.ruby +control_structure_patterns _ 0;" t class:_M.lua +control_structure_patterns _ 0;" t class:_M.ruby convert_eo_ls _ 0;" f class:buffer -convert_indentation _ 0;" f class:_m.textadept.editing +convert_indentation _ 0;" f class:_M.textadept.editing copy _ 0;" f class:buffer copy_allow_line _ 0;" f class:buffer copy_range _ 0;" f class:buffer @@ -924,16 +925,16 @@ cos _ 0;" f class:math cosh _ 0;" f class:math count_characters _ 0;" f class:buffer cpath _ 0;" F class:package -cpp _ 0;" t class:_m +cpp _ 0;" t class:_M cpp _ 0;" t class:keys cpp _ 0;" t class:snippets create _ 0;" f class:coroutine -css _ 0;" t class:_m +css _ 0;" t class:_M css _ 0;" t class:keys css _ 0;" t class:snippets -ctags_kinds _ 0;" t class:_m.textadept.adeptsense +ctags_kinds _ 0;" t class:_M.textadept.adeptsense current_pos _ 0;" F class:buffer -current_word _ 0;" f class:_m.textadept.editing +current_word _ 0;" f class:_M.textadept.editing currentdir _ 0;" f class:lfs cursor _ 0;" F class:buffer cut _ 0;" f class:buffer @@ -972,11 +973,11 @@ edge_colour _ 0;" F class:buffer edge_column _ 0;" F class:buffer edge_mode _ 0;" F class:buffer edit_toggle_overtype _ 0;" f class:buffer -editing _ 0;" t class:_m.textadept +editing _ 0;" t class:_M.textadept embed_lexer _ 0;" f class:lexer emit _ 0;" f class:events empty_undo_buffer _ 0;" f class:buffer -enclose _ 0;" f class:_m.textadept.editing +enclose _ 0;" f class:_M.textadept.editing encoded_from_utf8 _ 0;" f class:buffer encoding _ 0;" F class:buffer encoding_bom _ 0;" F class:buffer @@ -988,21 +989,21 @@ ensure_visible_enforce_policy _ 0;" f class:buffer entry_text _ 0;" F class:gui.command_entry eol_mode _ 0;" F class:buffer error _ 0;" f -error_detail _ 0;" t class:_m.textadept.run +error_detail _ 0;" t class:_M.textadept.run events _ 0;" m events _ 0;" t -execute _ 0;" f class:_m.textadept.run +execute _ 0;" f class:_M.textadept.run execute _ 0;" f class:os exit _ 0;" f class:os exp _ 0;" f class:math extend _ 0;" F class:lexer -extensions _ 0;" t class:_m.textadept.mime_types +extensions _ 0;" t class:_M.textadept.mime_types extra_ascent _ 0;" F class:buffer extra_descent _ 0;" F class:buffer extract _ 0;" f class:bit32 filename _ 0;" F class:buffer -filter_through _ 0;" f class:_m.textadept.filter_through -filter_through _ 0;" t class:_m.textadept +filter_through _ 0;" f class:_M.textadept.filter_through +filter_through _ 0;" t class:_M.textadept filteredlist _ 0;" f class:gui find _ 0;" f class:string find _ 0;" t class:gui @@ -1034,9 +1035,9 @@ form_feed _ 0;" f class:buffer format _ 0;" f class:string frexp _ 0;" f class:math functions _ 0;" t class:_SCINTILLA -get_apidoc _ 0;" f class:_m.textadept.adeptsense -get_class _ 0;" f class:_m.textadept.adeptsense -get_completions _ 0;" f class:_m.textadept.adeptsense +get_apidoc _ 0;" f class:_M.textadept.adeptsense +get_class _ 0;" f class:_M.textadept.adeptsense +get_completions _ 0;" f class:_M.textadept.adeptsense get_cur_line _ 0;" f class:buffer get_fold_level _ 0;" f class:lexer get_hotspot_active_back _ 0;" f class:buffer @@ -1055,7 +1056,7 @@ get_sel_text _ 0;" f class:buffer get_split_table _ 0;" f class:gui get_style_at _ 0;" f class:lexer get_style_name _ 0;" f class:buffer -get_symbol _ 0;" f class:_m.textadept.adeptsense +get_symbol _ 0;" f class:_M.textadept.adeptsense get_tag _ 0;" f class:buffer get_text _ 0;" f class:buffer getenv _ 0;" f class:os @@ -1068,24 +1069,24 @@ getregistry _ 0;" f class:debug getupvalue _ 0;" f class:debug getuservalue _ 0;" f class:debug gmatch _ 0;" f class:string -goto_bookmark _ 0;" f class:_m.textadept.bookmarks +goto_bookmark _ 0;" f class:_M.textadept.bookmarks goto_buffer _ 0;" f class:view -goto_ctag _ 0;" f class:_m.textadept.adeptsense -goto_error _ 0;" f class:_m.textadept.run +goto_ctag _ 0;" f class:_M.textadept.adeptsense +goto_error _ 0;" f class:_M.textadept.run goto_file _ 0;" f class:gui goto_file_in_list _ 0;" f class:gui.find -goto_line _ 0;" f class:_m.textadept.editing +goto_line _ 0;" f class:_M.textadept.editing goto_line _ 0;" f class:buffer -goto_next _ 0;" f class:_m.textadept.bookmarks +goto_next _ 0;" f class:_M.textadept.bookmarks goto_pos _ 0;" f class:buffer -goto_prev _ 0;" f class:_m.textadept.bookmarks -goto_required _ 0;" f class:_m.lua -goto_required _ 0;" f class:_m.php -goto_required _ 0;" f class:_m.ruby +goto_prev _ 0;" f class:_M.textadept.bookmarks +goto_required _ 0;" f class:_M.lua +goto_required _ 0;" f class:_M.php +goto_required _ 0;" f class:_M.ruby goto_view _ 0;" f class:gui grab_focus _ 0;" f class:buffer graph _ 0;" F class:lexer -grow_selection _ 0;" f class:_m.textadept.editing +grow_selection _ 0;" f class:_M.textadept.editing gsub _ 0;" f class:string gtkmenu _ 0;" f class:gui gui _ 0;" m @@ -1093,14 +1094,14 @@ gui _ 0;" t gui.command_entry _ 0;" m gui.find _ 0;" m h_scroll_bar _ 0;" F class:buffer -handle_clear _ 0;" f class:_m.textadept.adeptsense -handle_ctag _ 0;" f class:_m.textadept.adeptsense +handle_clear _ 0;" f class:_M.textadept.adeptsense +handle_ctag _ 0;" f class:_M.textadept.adeptsense handlers _ 0;" t class:events hex_num _ 0;" F class:lexer hide_lines _ 0;" f class:buffer hide_selection _ 0;" f class:buffer highlight_guide _ 0;" F class:buffer -highlight_word _ 0;" f class:_m.textadept.editing +highlight_word _ 0;" f class:_M.textadept.editing home _ 0;" f class:buffer home_display _ 0;" f class:buffer home_display_extend _ 0;" f class:buffer @@ -1111,7 +1112,7 @@ home_wrap_extend _ 0;" f class:buffer hotspot_active_underline _ 0;" F class:buffer hotspot_single_line _ 0;" F class:buffer huge _ 0;" F class:math -hypertext _ 0;" t class:_m +hypertext _ 0;" t class:_M hypertext _ 0;" t class:keys hypertext _ 0;" t class:snippets iconv _ 0;" f class:string @@ -1132,7 +1133,7 @@ indicator_fill_range _ 0;" f class:buffer indicator_start _ 0;" f class:buffer indicator_value _ 0;" F class:buffer indicator_value_at _ 0;" f class:buffer -inherited_classes _ 0;" t class:_m.textadept.adeptsense +inherited_classes _ 0;" t class:_M.textadept.adeptsense input _ 0;" f class:io insert _ 0;" f class:table insert_text _ 0;" f class:buffer @@ -1140,13 +1141,13 @@ integer _ 0;" F class:lexer io _ 0;" m io _ 0;" t ipairs _ 0;" f -java _ 0;" t class:_m +java _ 0;" t class:_M java _ 0;" t class:keys java _ 0;" t class:snippets -join_lines _ 0;" f class:_m.textadept.editing +join_lines _ 0;" f class:_M.textadept.editing keys _ 0;" m keys _ 0;" t -keys _ 0;" t class:_m.textadept +keys _ 0;" t class:_M.textadept keys_unicode _ 0;" F class:buffer layout_cache _ 0;" F class:buffer ldexp _ 0;" f class:math @@ -1156,7 +1157,7 @@ lex _ 0;" f class:lexer lexer _ 0;" F class:buffer lexer _ 0;" m lexer _ 0;" t -lexers _ 0;" t class:_m.textadept.mime_types +lexers _ 0;" t class:_M.textadept.mime_types lfs _ 0;" m lfs _ 0;" t line_copy _ 0;" f class:buffer @@ -1195,18 +1196,15 @@ lines_on_screen _ 0;" F class:buffer lines_split _ 0;" f class:buffer lines_visible _ 0;" F class:buffer load _ 0;" f -load _ 0;" f class:_m.textadept.session +load _ 0;" f class:_M.textadept.session load _ 0;" f class:lexer -load_ctags _ 0;" f class:_m.textadept.adeptsense -load_project _ 0;" f class:_m.rails +load_ctags _ 0;" f class:_M.textadept.adeptsense +load_project _ 0;" f class:_M.rails loaded _ 0;" F class:package loadfile _ 0;" f loadlib _ 0;" f class:package locale _ 0;" f class:lpeg -locale _ 0;" m -locale _ 0;" t -localize _ 0;" f class:locale -locations _ 0;" t class:_m.textadept.adeptsense +locations _ 0;" t class:_M.textadept.adeptsense lock _ 0;" f class:lfs lock_dir _ 0;" f class:lfs log _ 0;" f class:math @@ -1218,7 +1216,7 @@ lpeg _ 0;" t lrotate _ 0;" f class:bit32 lshift _ 0;" f class:bit32 lua _ 0;" F class:gui.find -lua _ 0;" t class:_m +lua _ 0;" t class:_M lua _ 0;" t class:keys lua _ 0;" t class:snippets lua_pattern_label_text _ 0;" F class:gui.find @@ -1256,17 +1254,17 @@ marker_set_fore _ 0;" f class:buffer marker_symbol_defined _ 0;" f class:buffer match _ 0;" f class:lpeg match _ 0;" f class:string -match_brace _ 0;" f class:_m.textadept.editing +match_brace _ 0;" f class:_M.textadept.editing match_case _ 0;" F class:gui.find match_case_label_text _ 0;" F class:gui.find math _ 0;" m math _ 0;" t max _ 0;" f class:math max_line_state _ 0;" F class:buffer -menu _ 0;" t class:_m.textadept +menu _ 0;" t class:_M.textadept menubar _ 0;" F class:gui -menubar _ 0;" t class:_m.textadept.menu -mime_types _ 0;" t class:_m.textadept +menubar _ 0;" t class:_M.textadept.menu +mime_types _ 0;" t class:_M.textadept min _ 0;" f class:math mkdir _ 0;" f class:lfs modf _ 0;" f class:math @@ -1279,7 +1277,7 @@ move_selected_lines_up _ 0;" f class:buffer multi_paste _ 0;" F class:buffer multiple_selection _ 0;" F class:buffer nested_pair _ 0;" f class:lexer -new _ 0;" f class:_m.textadept.adeptsense +new _ 0;" f class:_M.textadept.adeptsense new_buffer _ 0;" f new_line _ 0;" f class:buffer newline _ 0;" F class:lexer @@ -1290,7 +1288,7 @@ next_user_list_type _ 0;" f class:_SCINTILLA nonnewline _ 0;" F class:lexer nonnewline_esc _ 0;" F class:lexer oct_num _ 0;" F class:lexer -open _ 0;" f class:_m.textadept.snapopen +open _ 0;" f class:_M.textadept.snapopen open _ 0;" f class:io open_file _ 0;" f class:io open_recent_file _ 0;" f class:io @@ -1314,9 +1312,9 @@ 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.mime_types pcall _ 0;" f -php _ 0;" t class:_m +php _ 0;" t class:_M php _ 0;" t class:keys php _ 0;" t class:snippets pi _ 0;" F class:math @@ -1331,7 +1329,7 @@ position_from_point _ 0;" f class:buffer position_from_point_close _ 0;" f class:buffer pow _ 0;" f class:math preload _ 0;" F class:package -prepare_for_save _ 0;" f class:_m.textadept.editing +prepare_for_save _ 0;" f class:_M.textadept.editing print _ 0;" F class:lexer print _ 0;" f print _ 0;" f class:gui @@ -1340,15 +1338,15 @@ print_magnification _ 0;" F class:buffer print_wrap_mode _ 0;" F class:buffer private_lexer_call _ 0;" f class:buffer process _ 0;" f class:args -prompt_load _ 0;" f class:_m.textadept.session -prompt_save _ 0;" f class:_m.textadept.session +prompt_load _ 0;" f class:_M.textadept.session +prompt_save _ 0;" f class:_M.textadept.session properties _ 0;" t class:_SCINTILLA property _ 0;" F class:buffer property_int _ 0;" F class:buffer punct _ 0;" F class:lexer quit _ 0;" f rad _ 0;" f class:math -rails _ 0;" t class:_m +rails _ 0;" t class:_M rails _ 0;" t class:keys rails _ 0;" t class:snippets random _ 0;" f class:math @@ -1360,7 +1358,7 @@ rawset _ 0;" f read _ 0;" f class:file read _ 0;" f class:io read_only _ 0;" F class:buffer -rebuild_command_tables _ 0;" f class:_m.textadept.menu +rebuild_command_tables _ 0;" f class:_M.textadept.menu recent_files _ 0;" t class:io rectangular_selection_anchor _ 0;" F class:buffer rectangular_selection_anchor_virtual_space _ 0;" F class:buffer @@ -1372,7 +1370,7 @@ register _ 0;" f class:args register_image _ 0;" f class:buffer register_rgba_image _ 0;" f class:buffer reload _ 0;" f class:buffer -remove _ 0;" f class:_m.textadept.bookmarks +remove _ 0;" f class:_M.textadept.bookmarks remove _ 0;" f class:os remove _ 0;" f class:table rename _ 0;" f class:os @@ -1393,21 +1391,21 @@ resume _ 0;" f class:coroutine reverse _ 0;" f class:string rgba_image_height _ 0;" F class:buffer rgba_image_width _ 0;" F class:buffer -rhtml _ 0;" t class:_m +rhtml _ 0;" t class:_M rhtml _ 0;" t class:keys rhtml _ 0;" t class:snippets rmdir _ 0;" f class:lfs rotate_selection _ 0;" f class:buffer rrotate _ 0;" f class:bit32 rshift _ 0;" f class:bit32 -ruby _ 0;" t class:_m +ruby _ 0;" t class:_M ruby _ 0;" t class:keys ruby _ 0;" t class:snippets -run _ 0;" f class:_m.textadept.run -run _ 0;" t class:_m.textadept -run_command _ 0;" t class:_m.textadept.run +run _ 0;" f class:_M.textadept.run +run _ 0;" t class:_M.textadept +run_command _ 0;" t class:_M.textadept.run running _ 0;" f class:coroutine -save _ 0;" f class:_m.textadept.session +save _ 0;" f class:_M.textadept.session save _ 0;" f class:buffer save_all _ 0;" f class:io save_as _ 0;" f class:buffer @@ -1428,12 +1426,12 @@ sel_alpha _ 0;" F class:buffer sel_eol_filled _ 0;" F class:buffer select _ 0;" f 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_line _ 0;" f class:_m.textadept.editing -select_paragraph _ 0;" f class:_m.textadept.editing +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_line _ 0;" f class:_M.textadept.editing +select_paragraph _ 0;" f class:_M.textadept.editing select_theme _ 0;" f class:gui selection_duplicate _ 0;" f class:buffer selection_end _ 0;" F class:buffer @@ -1447,26 +1445,26 @@ selection_n_end _ 0;" F class:buffer selection_n_start _ 0;" F class:buffer selection_start _ 0;" F class:buffer selections _ 0;" F class:buffer -self _ 0;" F class:_m.textadept.adeptsense.syntax -sense _ 0;" F class:_m.cpp -sense _ 0;" F class:_m.css -sense _ 0;" F class:_m.hypertext -sense _ 0;" F class:_m.java -sense _ 0;" F class:_m.lua -sense _ 0;" F class:_m.php -sense _ 0;" F class:_m.rails -sense _ 0;" F class:_m.rhtml -sense _ 0;" F class:_m.ruby -session _ 0;" t class:_m.textadept -set_buffer_properties _ 0;" f class:_m.cpp -set_buffer_properties _ 0;" f class:_m.css -set_buffer_properties _ 0;" f class:_m.hypertext -set_buffer_properties _ 0;" f class:_m.java -set_buffer_properties _ 0;" f class:_m.lua -set_buffer_properties _ 0;" f class:_m.php -set_buffer_properties _ 0;" f class:_m.ruby +self _ 0;" F class:_M.textadept.adeptsense.syntax +sense _ 0;" F class:_M.cpp +sense _ 0;" F class:_M.css +sense _ 0;" F class:_M.hypertext +sense _ 0;" F class:_M.java +sense _ 0;" F class:_M.lua +sense _ 0;" F class:_M.php +sense _ 0;" F class:_M.rails +sense _ 0;" F class:_M.rhtml +sense _ 0;" F class:_M.ruby +session _ 0;" t class:_M.textadept +set_buffer_properties _ 0;" f class:_M.cpp +set_buffer_properties _ 0;" f class:_M.css +set_buffer_properties _ 0;" f class:_M.hypertext +set_buffer_properties _ 0;" f class:_M.java +set_buffer_properties _ 0;" f class:_M.lua +set_buffer_properties _ 0;" f class:_M.php +set_buffer_properties _ 0;" f class:_M.ruby set_chars_default _ 0;" f class:buffer -set_contextmenu _ 0;" f class:_m.textadept.menu +set_contextmenu _ 0;" f class:_M.textadept.menu set_empty_selection _ 0;" f class:buffer set_encoding _ 0;" f class:buffer set_fold_flags _ 0;" f class:buffer @@ -1477,7 +1475,7 @@ set_hotspot_active_fore _ 0;" f class:buffer set_length_for_encode _ 0;" f class:buffer set_lexer _ 0;" f class:buffer set_lexer_language _ 0;" f class:buffer -set_menubar _ 0;" f class:_m.textadept.menu +set_menubar _ 0;" f class:_M.textadept.menu set_save_point _ 0;" f class:buffer set_sel _ 0;" f class:buffer set_sel_back _ 0;" f class:buffer @@ -1501,18 +1499,18 @@ 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 -show_apidoc _ 0;" f class:_m.textadept.adeptsense -show_documentation _ 0;" f class:_m.textadept.adeptsense +shebangs _ 0;" t class:_M.textadept.mime_types +show_apidoc _ 0;" f class:_M.textadept.adeptsense +show_documentation _ 0;" f class:_M.textadept.adeptsense show_lines _ 0;" f class:buffer sin _ 0;" f class:math -singular _ 0;" F class:_m.rails +singular _ 0;" F class:_M.rails sinh _ 0;" f class:math size _ 0;" F class:gui size _ 0;" F class:view -snapopen _ 0;" t class:_m.textadept +snapopen _ 0;" t class:_M.textadept snippets _ 0;" t class: -snippets _ 0;" t class:_m.textadept +snippets _ 0;" t class:_M.textadept sort _ 0;" f class:table space _ 0;" F class:lexer split _ 0;" f class:view @@ -1577,9 +1575,9 @@ style_weight _ 0;" F class:buffer sub _ 0;" f class:string swap_main_anchor_caret _ 0;" f class:buffer switch_buffer _ 0;" f class:gui -symbol_chars _ 0;" F class:_m.textadept.adeptsense.syntax +symbol_chars _ 0;" F class:_M.textadept.adeptsense.syntax symlinkattributes _ 0;" f class:lfs -syntax _ 0;" t class:_m.textadept.adeptsense +syntax _ 0;" t class:_M.textadept.adeptsense tab _ 0;" f class:buffer tab_indents _ 0;" F class:buffer tab_width _ 0;" F class:buffer @@ -1595,14 +1593,14 @@ text_height _ 0;" f class:buffer text_length _ 0;" F class:buffer text_range _ 0;" f class:buffer text_width _ 0;" f class:buffer -textadept _ 0;" t class:_m +textadept _ 0;" t class:_M time _ 0;" f class:os timeout _ 0;" f title _ 0;" F class:gui tmpfile _ 0;" f class:io tmpname _ 0;" f class:os -toggle _ 0;" f class:_m.textadept.bookmarks -toggle_block _ 0;" f class:_m.ruby +toggle _ 0;" f class:_M.textadept.bookmarks +toggle_block _ 0;" f class:_M.ruby toggle_caret_sticky _ 0;" f class:buffer toggle_fold _ 0;" f class:buffer token _ 0;" f class:lexer @@ -1610,17 +1608,17 @@ tonumber _ 0;" f tostring _ 0;" f touch _ 0;" f class:lfs traceback _ 0;" f class:debug -transpose_chars _ 0;" f class:_m.textadept.editing +transpose_chars _ 0;" f class:_M.textadept.editing try_encodings _ 0;" t class:io -try_to_autocomplete_end _ 0;" f class:_m.lua -try_to_autocomplete_end _ 0;" f class:_m.ruby +try_to_autocomplete_end _ 0;" f class:_M.lua +try_to_autocomplete_end _ 0;" f class:_M.ruby two_phase_draw _ 0;" F class:buffer type _ 0;" f type _ 0;" f class:io type _ 0;" f class:lpeg -type_assignments _ 0;" F class:_m.textadept.adeptsense.syntax -type_declarations _ 0;" F class:_m.textadept.adeptsense.syntax -type_declarations_exclude _ 0;" F class:_m.textadept.adeptsense.syntax +type_assignments _ 0;" F class:_M.textadept.adeptsense.syntax +type_declarations _ 0;" F class:_M.textadept.adeptsense.syntax +type_declarations_exclude _ 0;" F class:_M.textadept.adeptsense.syntax undo _ 0;" f class:buffer undo_collection _ 0;" F class:buffer unlock _ 0;" f class:lfs @@ -1654,7 +1652,7 @@ whitespace_size _ 0;" F class:buffer whole_word _ 0;" F class:gui.find whole_word_label_text _ 0;" F class:gui.find word _ 0;" F class:lexer -word_chars _ 0;" F class:_m.textadept.adeptsense.syntax +word_chars _ 0;" F class:_M.textadept.adeptsense.syntax word_chars _ 0;" F class:buffer word_end_position _ 0;" f class:buffer word_left _ 0;" f class:buffer @@ -1687,4 +1685,4 @@ xpcall _ 0;" f yield _ 0;" f class:coroutine zoom _ 0;" F class:buffer zoom_in _ 0;" f class:buffer -zoom_out _ 0;" f class:buffer +zoom_out _ 0;" f class:buffer
\ No newline at end of file |