diff options
Diffstat (limited to 'modules/lua')
-rw-r--r-- | modules/lua/api | 56 | ||||
-rw-r--r-- | modules/lua/tags | 47 |
2 files changed, 60 insertions, 43 deletions
diff --git a/modules/lua/api b/modules/lua/api index 7b88d9da..6b3f0cf3 100644 --- a/modules/lua/api +++ b/modules/lua/api @@ -27,7 +27,7 @@ CLASS lexer.CLASS (string)\nThe token name for class tokens. CLEAR keys.CLEAR (string)\nThe string representing the key sequence that clears the current key chain.\nIt cannot be part of a key chain.\nThe default value is `'esc'` for the `Esc` (`⎋` on Mac OSX | `Esc` in\ncurses) key. COMMAND_ENTRY_KEYPRESS events.COMMAND_ENTRY_KEYPRESS (string)\nEmitted when pressing a key in the Command Entry.\nIf any handler returns `true`, the key is not inserted into the entry.\nArguments:\n\n* _`code`_: The numeric key code.\n* _`shift`_: The "Shift" modifier key is held down.\n* _`ctrl`_: The "Control"/"Command" modifier key is held down.\n* _`alt`_: The "Alt"/"Option" modifier key is held down.\n* _`meta`_: The "Control" modifier key on Mac OSX is held down. COMMENT lexer.COMMENT (string)\nThe token name for comment tokens. -COMPILE_OUTPUT _M.textadept.run._G.events.COMPILE_OUTPUT (string)\nEmitted after executing a language's compile command.\nBy default, compiler output is printed to the message buffer. To override\nthis behavior, connect to the event with an index of `1` and return `true`.\nArguments:\n\n* `lexer`: The lexer language name.\n* `output`: The string output from the command. +COMPILE_OUTPUT events.COMPILE_OUTPUT (string)\nEmitted after executing a language's compile command.\nBy default, compiler output is printed to the message buffer. To override\nthis behavior, connect to the event with an index of `1` and return `true`.\nArguments:\n\n* `lexer`: The lexer language name.\n* `output`: The string output from the command. CONSTANT lexer.CONSTANT (string)\nThe token name for constant tokens. CURSES _G.CURSES (bool)\nIf Textadept is running in the terminal, this flag is `true`.\nCurses feature incompatibilities are listed in the Appendix. Carg lpeg.Carg(n)\nCreates an argument capture. This pattern matches the empty string and\nproduces the value given as the nth extra argument given in the call to\n`lpeg.match`. @@ -51,14 +51,14 @@ ERROR events.ERROR (string)\nEmitted when an error occurs.\nArguments:\n\n* _`te ERROR lexer.ERROR (string)\nThe token name for error tokens. FIELD _M.textadept.adeptsense.FIELD (string)\nCtags kind for Adeptsense fields. FIELDS _M.textadept.adeptsense.FIELDS (string)\nXPM image for Adeptsense fields. -FILE_AFTER_SAVE io._G.events.FILE_AFTER_SAVE (string)\nEmitted right after saving a file to disk.\nEmitted by `buffer:save()`.\nArguments:\n\n* _`filename`_: The UTF-8-encoded filename. -FILE_BEFORE_SAVE io._G.events.FILE_BEFORE_SAVE (string)\nEmitted right before saving a file to disk.\nEmitted by `buffer:save()`.\nArguments:\n\n* _`filename`_: The UTF-8-encoded filename. -FILE_OPENED io._G.events.FILE_OPENED (string)\nEmitted when opening a file in a new buffer.\nEmitted by `open_file()`.\nArguments:\n\n* _`filename`_: The UTF-8-encoded filename. -FILE_SAVED_AS io._G.events.FILE_SAVED_AS (string)\nEmitted after saving a file under a different filename.\nEmitted by `buffer:save_as()`.\nArguments:\n\n* _`filename`_: The UTF-8-encoded filename. +FILE_AFTER_SAVE events.FILE_AFTER_SAVE (string)\nEmitted right after saving a file to disk.\nEmitted by `buffer:save()`.\nArguments:\n\n* _`filename`_: The UTF-8-encoded filename. +FILE_BEFORE_SAVE events.FILE_BEFORE_SAVE (string)\nEmitted right before saving a file to disk.\nEmitted by `buffer:save()`.\nArguments:\n\n* _`filename`_: The UTF-8-encoded filename. +FILE_OPENED events.FILE_OPENED (string)\nEmitted when opening a file in a new buffer.\nEmitted by `open_file()`.\nArguments:\n\n* _`filename`_: The UTF-8-encoded filename. +FILE_SAVED_AS events.FILE_SAVED_AS (string)\nEmitted after saving a file under a different filename.\nEmitted by `buffer:save_as()`.\nArguments:\n\n* _`filename`_: The UTF-8-encoded filename. FILTER gui.find.FILTER (table)\nTable of Lua patterns matching files and folders to exclude when finding in\nfiles.\nEach filter string is a pattern that matches filenames to exclude, with\npatterns matching folders to exclude listed in a `folders` sub-table.\nPatterns starting with '!' exclude files and folders that do not match the\npattern that follows. Use a table of raw file extensions assigned to an\n`extensions` key for fast filtering by extension. All strings must be encoded\nin `_G._CHARSET`, not UTF-8.\nThe default value is `lfs.FILTER`, a filter for common binary file extensions\nand version control folders.\n@see find_in_files FILTER lfs.FILTER (table)\nFilter table containing common binary file extensions and version control\nfolders to exclude when iterating over files and directories using\n`dir_foreach` when its `exclude_FILTER` argument is `false`.\n@see dir_foreach FIND events.FIND (string)\nEmitted to find text via the Find dialog box.\nArguments:\n\n* _`text`_: The text to search for.\n* _`next`_: Whether or not to search forward. -FIND_WRAPPED gui.find._G.events.FIND_WRAPPED (string)\nEmitted when a search for text wraps, either from bottom to top when\nsearching for a next occurrence, or from top to bottom when searching for a\nprevious occurrence.\nThis is useful for implementing a more visual or audible notice when a\nsearch wraps in addition to the statusbar message. +FIND_WRAPPED events.FIND_WRAPPED (string)\nEmitted when a search for text wraps, either from bottom to top when\nsearching for a next occurrence, or from top to bottom when searching for a\nprevious occurrence.\nThis is useful for implementing a more visual or audible notice when a\nsearch wraps in addition to the statusbar message. FOLD_BASE lexer.FOLD_BASE (number)\nThe initial (root) fold level. FOLD_BLANK lexer.FOLD_BLANK (number)\nFlag indicating that the line is blank. FOLD_HEADER lexer.FOLD_HEADER (number)\nFlag indicating the line is fold point. @@ -77,6 +77,7 @@ INDICATOR_CLICK events.INDICATOR_CLICK (string)\nEmitted when clicking the mouse INDICATOR_RELEASE events.INDICATOR_RELEASE (string)\nEmitted after releasing the mouse after clicking on text that had an\nindicator.\nArguments:\n\n* _`position`_: The position in the buffer unclicked. INDICS_MASK _SCINTILLA.constants.INDICS_MASK\n224 INDIC_BOX _SCINTILLA.constants.INDIC_BOX\n6 +INDIC_COMPOSITIONTHICK _SCINTILLA.constants.INDIC_COMPOSITIONTHICK\n14 INDIC_CONTAINER _SCINTILLA.constants.INDIC_CONTAINER\n8 INDIC_DASH _SCINTILLA.constants.INDIC_DASH\n9 INDIC_DIAGONAL _SCINTILLA.constants.INDIC_DIAGONAL\n3 @@ -99,7 +100,7 @@ KEYSYMS keys.KEYSYMS (table)\nLookup table for string representations of key cod KEYWORD lexer.KEYWORD (string)\nThe token name for keyword tokens. KEYWORDSET_MAX _SCINTILLA.constants.KEYWORDSET_MAX\n8 LABEL lexer.LABEL (string)\nThe token name for label tokens. -LANGUAGE_MODULE_LOADED _M.textadept.mime_types._G.events.LANGUAGE_MODULE_LOADED (string)\nEmitted after loading a language-specific module.\nThis is useful for overriding a language-specific module's key bindings\nor other properties since the module is not loaded when Textadept starts.\nArguments:\n\n* *`lang`*: The language lexer name. +LANGUAGE_MODULE_LOADED events.LANGUAGE_MODULE_LOADED (string)\nEmitted after loading a language-specific module.\nThis is useful for overriding a language-specific module's key bindings\nor other properties since the module is not loaded when Textadept starts.\nArguments:\n\n* *`lang`*: The language lexer name. LANGUAGE_MODULE_PREFIX keys.LANGUAGE_MODULE_PREFIX (string)\nThe starting key of the key chain reserved for language-specific modules.\nThe default value is `'cl'` on platforms other than Mac OSX, `'ml'`\notherwise. Equivalent to `Ctrl+L` (`⌘L` on Mac OSX | `M-L` in curses). MARGIN_CLICK events.MARGIN_CLICK (string)\nEmitted when clicking the mouse inside a margin.\nArguments:\n\n* _`margin`_: The margin number clicked.\n* _`position`_: The position of the start of the line in the buffer whose\n margin line was clicked.\n* _`modifiers`_: A bit-mask of modifier keys held down. Modifiers are\n `_SCINTILLA.constants.SCMOD_ALT`, `_SCINTILLA.constants.SCMOD_CTRL`,\n `_SCINTILLA.constants.SCMOD_SHIFT`, and\n `_SCINTILLA.constants.SCMOD_META`.\n Note: If you set `buffer.rectangular_selection_modifier` to\n `_SCINTILLA.constants.SCMOD_CTRL`, the "Control" modifier is reported as\n *both* "Control" and "Alt" due to a Scintilla limitation with GTK+. MARKER_MAX _SCINTILLA.constants.MARKER_MAX\n31 @@ -121,7 +122,7 @@ REPLACE_ALL events.REPLACE_ALL (string)\nEmitted to replace all occurrences of f RESETTING _G.RESETTING (bool)\nIf `reset()` has been called, this flag is `true` while the Lua\nstate is being re-initialized. RESET_AFTER events.RESET_AFTER (string)\nEmitted after resetting the Lua state.\nEmitted by `reset()`. RESET_BEFORE events.RESET_BEFORE (string)\nEmitted before resetting the Lua state.\nEmitted by `reset()`. -RUN_OUTPUT _M.textadept.run._G.events.RUN_OUTPUT (string)\nEmitted after executing a language's run command.\nBy default, output is printed to the message buffer. To override this\nbehavior, connect to the event with an index of `1` and return `true`.\nArguments:\n\n* `lexer`: The lexer language name.\n* `output`: The string output from the command. +RUN_OUTPUT events.RUN_OUTPUT (string)\nEmitted after executing a language's run command.\nBy default, output is printed to the message buffer. To override this\nbehavior, connect to the event with an index of `1` and return `true`.\nArguments:\n\n* `lexer`: The lexer language name.\n* `output`: The string output from the command. S lpeg.S(string)\nReturns a pattern that matches any single character that appears in the given\nstring. (The S stands for Set.)\n\nAs an example, the pattern `lpeg.S("+-*/")` matches any arithmetic operator.\n\nNote that, if `s` is a character (that is, a string of length 1), then\n`lpeg.P(s)` is equivalent to `lpeg.S(s)` which is equivalent to\n`lpeg.R(s..s)`. Note also that both `lpeg.S("")` and `lpeg.R()` are patterns\nthat always fail. SAVE_ON_QUIT _M.textadept.session.SAVE_ON_QUIT (bool)\nSave the session when quitting.\nThe session file saved is always `DEFAULT_SESSION`, even if a different\nsession was loaded with `load()`.\nThe default value is `true`, but is disabled when passing the command line\nswitch `-n` or `--nosession` to Textadept. SAVE_POINT_LEFT events.SAVE_POINT_LEFT (string)\nEmitted after leaving a save point. @@ -183,6 +184,7 @@ SCI_GETADDITIONALSELALPHA _SCINTILLA.constants.SCI_GETADDITIONALSELALPHA\n2603 SCI_GETADDITIONALSELECTIONTYPING _SCINTILLA.constants.SCI_GETADDITIONALSELECTIONTYPING\n2566 SCI_GETALLLINESVISIBLE _SCINTILLA.constants.SCI_GETALLLINESVISIBLE\n2236 SCI_GETANCHOR _SCINTILLA.constants.SCI_GETANCHOR\n2009 +SCI_GETAUTOMATICFOLD _SCINTILLA.constants.SCI_GETAUTOMATICFOLD\n2664 SCI_GETBACKSPACEUNINDENTS _SCINTILLA.constants.SCI_GETBACKSPACEUNINDENTS\n2263 SCI_GETBUFFEREDDRAW _SCINTILLA.constants.SCI_GETBUFFEREDDRAW\n2034 SCI_GETCARETFORE _SCINTILLA.constants.SCI_GETCARETFORE\n2138 @@ -358,6 +360,7 @@ SCI_SETADDITIONALSELBACK _SCINTILLA.constants.SCI_SETADDITIONALSELBACK\n2601 SCI_SETADDITIONALSELECTIONTYPING _SCINTILLA.constants.SCI_SETADDITIONALSELECTIONTYPING\n2565 SCI_SETADDITIONALSELFORE _SCINTILLA.constants.SCI_SETADDITIONALSELFORE\n2600 SCI_SETANCHOR _SCINTILLA.constants.SCI_SETANCHOR\n2026 +SCI_SETAUTOMATICFOLD _SCINTILLA.constants.SCI_SETAUTOMATICFOLD\n2663 SCI_SETBACKSPACEUNINDENTS _SCINTILLA.constants.SCI_SETBACKSPACEUNINDENTS\n2262 SCI_SETBUFFEREDDRAW _SCINTILLA.constants.SCI_SETBUFFEREDDRAW\n2035 SCI_SETCARETFORE _SCINTILLA.constants.SCI_SETCARETFORE\n2069 @@ -567,6 +570,9 @@ SCWS_VISIBLEALWAYS _SCINTILLA.constants.SCWS_VISIBLEALWAYS\n1 SC_ALPHA_NOALPHA _SCINTILLA.constants.SC_ALPHA_NOALPHA\n256 SC_ALPHA_OPAQUE _SCINTILLA.constants.SC_ALPHA_OPAQUE\n255 SC_ALPHA_TRANSPARENT _SCINTILLA.constants.SC_ALPHA_TRANSPARENT\n0 +SC_AUTOMATICFOLD_CHANGE _SCINTILLA.constants.SC_AUTOMATICFOLD_CHANGE\n4 +SC_AUTOMATICFOLD_CLICK _SCINTILLA.constants.SC_AUTOMATICFOLD_CLICK\n2 +SC_AUTOMATICFOLD_SHOW _SCINTILLA.constants.SC_AUTOMATICFOLD_SHOW\n1 SC_CACHE_CARET _SCINTILLA.constants.SC_CACHE_CARET\n1 SC_CACHE_DOCUMENT _SCINTILLA.constants.SC_CACHE_DOCUMENT\n3 SC_CACHE_NONE _SCINTILLA.constants.SC_CACHE_NONE\n0 @@ -613,6 +619,9 @@ SC_EFF_QUALITY_NON_ANTIALIASED _SCINTILLA.constants.SC_EFF_QUALITY_NON_ANTIALIAS SC_EOL_CR _SCINTILLA.constants.SC_EOL_CR\n1 SC_EOL_CRLF _SCINTILLA.constants.SC_EOL_CRLF\n0 SC_EOL_LF _SCINTILLA.constants.SC_EOL_LF\n2 +SC_FOLDACTION_CONTRACT _SCINTILLA.constants.SC_FOLDACTION_CONTRACT\n0 +SC_FOLDACTION_EXPAND _SCINTILLA.constants.SC_FOLDACTION_EXPAND\n1 +SC_FOLDACTION_TOGGLE _SCINTILLA.constants.SC_FOLDACTION_TOGGLE\n2 SC_FOLDFLAG_LEVELNUMBERS _SCINTILLA.constants.SC_FOLDFLAG_LEVELNUMBERS\n64 SC_FOLDFLAG_LINEAFTER_CONTRACTED _SCINTILLA.constants.SC_FOLDFLAG_LINEAFTER_CONTRACTED\n16 SC_FOLDFLAG_LINEAFTER_EXPANDED _SCINTILLA.constants.SC_FOLDFLAG_LINEAFTER_EXPANDED\n8 @@ -811,6 +820,7 @@ additional_selection_typing buffer.additional_selection_typing (bool)\nType into adeptsense _M.textadept.adeptsense (module)\nCode autocompletion and documentation support for programming languages. all_lines_visible buffer.all_lines_visible (bool, Read-only)\nWhether or not all lines in the buffer are visible. allocate buffer.allocate(buffer, bytes)\nEnlarges the buffer to store *bytes* number of bytes, but never shrinks it\nbeyond the size of its contents.\n@param buffer The global buffer.\n@param bytes The number of bytes *buffer* can store. +allocate_extended_styles buffer.allocate_extended_styles(buffer, num_styles)\nAllocates an additional *num_styles* number of styles for use by margins or\nannotations and returns the starting style number of the new range.\nThese styles are outside the 0..255 range used by lexers.\n@param buffer The global buffer\n@param num_styles The number of additional styles to allocate.\n@return number\n@see annotation_style_offset\n@see margin_style_offset alnum lexer.alnum (pattern)\nA pattern matching any alphanumeric character (`A-Z`, `a-z`, `0-9`). alpha lexer.alpha (pattern)\nA pattern matching any alphabetic character (`A-Z`, `a-z`). always_show_globals _M.textadept.adeptsense.always_show_globals (bool)\nInclude globals in the list of completions offered.\nGlobals are classes, functions, and fields that do not belong to another\nclass. They are contained in `sense.completions['']`.\nThe default value is `true`. @@ -818,7 +828,7 @@ anchor buffer.anchor (number)\nThe position of the beginning of the selected tex annotation_clear_all buffer.annotation_clear_all(buffer)\nClears annotations from all lines.\n@param buffer The global buffer. annotation_lines buffer.annotation_lines (table, Read-only)\nTable of the number of annotation lines for line numbers starting from\nzero. annotation_style buffer.annotation_style (table)\nTable of style numbers for annotations for line numbers starting from zero.\nOnly some style attributes are active in annotations: font,\nsize/size_fractional, bold/weight, italics, fore, back, and character_set. -annotation_style_offset buffer.annotation_style_offset (number)\nThe beginning of the range of style numbers used for annotations.\nAnnotation styles may be completely separated from standard text styles by\nsetting a style offset. For example, setting this to `512` would allow the\nannotation styles to be numbered from `512` upto `767` so they do not\noverlap styles set by lexers (or margins if margins offset is `256`). Each\nstyle number set with `annotation_style` has the offset added before\nlooking up the style.\nThe default value is `0`. +annotation_style_offset buffer.annotation_style_offset (number)\nThe beginning of the range of style numbers used for annotations.\nAlways set this to the result of\n`buffer.allocate_extended_styles`.\nAnnotation styles may be completely separated from standard text styles by\nsetting a style offset. For example, when set to `512`, annotation styles\nare numbered from `512` upto `767` so they do not overlap styles set by\nlexers (or margins if margins offset is `256`). Each style number set with\n`annotation_style` has the offset added before looking up the style.\nThe default value is `0`. annotation_text buffer.annotation_text (table)\nTable of annotation text for line numbers starting from zero. annotation_visible buffer.annotation_visible (number)\nThe annotation visibility mode.\n\n* `_SCINTILLA.constants.ANNOTATION_HIDDEN` (0)\n Annotations are invisible.\n* `_SCINTILLA.constants.ANNOTATION_STANDARD` (1)\n Draw annotations left-justified with no decoration.\n* `_SCINTILLA.constants.ANNOTATION_BOXED` (2)\n Indent annotations to match the text and outline with a box.\n\nThe default value is `0`. any lexer.any (pattern)\nA pattern matching any single character. @@ -856,6 +866,7 @@ auto_c_show buffer.auto_c_show(buffer, len_entered, item_list)\nDisplays an auto auto_c_stops buffer.auto_c_stops(buffer, chars)\nDefines *chars* as the set of characters that cancel autocompletion when\ntyped.\nThe default set is an empty string.\n@param buffer The global buffer.\n@param chars The string of characters that cancel autocompletion. This string\n is empty by default. auto_c_type_separator buffer.auto_c_type_separator (number)\nThe character byte that separates autocompletion list items and their\nimage types.\nAutocompletion list items can display both an image and text. Register\nimages and their types using `buffer:register_image()`\nor `buffer:register_rgba_image()` before appending\nimage types to list items after type separator characters.\nThe default value is 63 ('?'). autocomplete_word _M.textadept.editing.autocomplete_word(default_words)\nDisplays an autocompletion list, built from the set of *default_words* and\nexisting words in the buffer, for the word behind the caret, returning `true`\nif completions were found.\n@param default_words Optional list of words considered to be in the buffer,\n even if they are not. Words may contain registered images.\n@return `true` if there were completions to show; `false` otherwise.\n@see buffer.word_chars +automatic_fold buffer.automatic_fold (number)\nBit-mask of options for automatic folding behavior.\n\n* `_SCINTILLA.constants.SC_AUTOMATICFOLD_SHOW` (1)\n Automatically show lines as needed.\n* `_SCINTILLA.constants.SC_AUTOMATICFOLD_CLICK` (2)\n Handle clicks in the fold margin automatically.\n* `_SCINTILLA.constants.SC_AUTOMATICFOLD_CHANGE` (4)\n Show lines as needed when the fold structure changes.\n\nThe default value is `0`. back_space_un_indents buffer.back_space_un_indents (bool)\nUn-indent text when backspacing within indentation.\nThe default value is `false`. back_tab buffer.back_tab(buffer)\nDedents the selected lines.\n@param buffer The global buffer. band bit32.band(...)\nReturns the bitwise "and" of its operands. @@ -870,7 +881,7 @@ brace_bad_light buffer.brace_bad_light(buffer, pos)\nHighlights the character at brace_bad_light_indicator buffer.brace_bad_light_indicator(buffer, use_indicator, indic_num)\nHighlights unmatched brace characters with indicator number *indic_num*, in\nthe range of `0` to `31`, instead of the\n`_SCINTILLA.constants.STYLE_BRACEBAD` style if *use_indicator* is `true`.\n@param buffer The global buffer.\n@param use_indicator Whether or not to use an indicator.\n@param indic_num The indicator number to use. brace_highlight buffer.brace_highlight(buffer, pos1, pos2)\nHighlights the characters at positions *pos1* and *pos2* as matching braces\nin the `_SCINTILLA.constants.STYLE_BRACELIGHT` style.\nIf indent guides are enabled, locate the column with `buffer.column` and\nset `buffer.highlight_guide` in order to highlight the indent guide.\n@param buffer The global buffer.\n@param pos1 The first position in *buffer* to highlight.\n@param pos2 The second position in *buffer* to highlight. brace_highlight_indicator buffer.brace_highlight_indicator(buffer, use_indicator, indic_num)\nHighlights matching brace characters with indicator number *indic_num*, in\nthe range of `0` to `31`, instead of the\n`_SCINTILLA.constants.STYLE_BRACELIGHT` style if *use_indicator* is `true`.\n@param buffer The global buffer.\n@param use_indicator Whether or not to use an indicator.\n@param indic_num The indicator number to use. -brace_match buffer.brace_match(buffer, pos)\nReturns the position of the matching brace for the brace character at\nposition *pos*, taking nested braces into account, or `-1`.\nThe brace characters recognized are '(', ')', '[', ']', '{', '}', '<', and\n'>' and must have the same style.\n@param buffer The global buffer.\n@param pos The position of the brace in *buffer* to match.\n@return number. +brace_match buffer.brace_match(buffer, pos)\nReturns the position of the matching brace for the brace character at\nposition *pos*, taking nested braces into account, or `-1`.\nThe brace characters recognized are '(', ')', '[', ']', '{', '}', '<', and\n'>' and must have the same style.\n@param buffer The global buffer.\n@param pos The position of the brace in *buffer* to match.\n@return number braces _M.textadept.editing.braces (table)\nTable of brace characters to highlight, with language-specific brace\ncharacter tables assigned to a lexer name key.\nThe ASCII values of brace characters are keys and are assigned non-`nil`\nvalues. The default brace characters are '(', ')', '[', ']', '{', and '}'.\n@see HIGHLIGHT_BRACES btest bit32.btest(...)\nReturns a boolean signaling whether the bitwise "and" of its operands is\ndifferent from zero. buffer _G.buffer (module)\nA Textadept buffer object.\nBe careful when storing references to a buffer object because if you attempt\ncall a buffer function with a non-global buffer, you will get an error. See\n`check_global()` for more information. @@ -1021,6 +1032,7 @@ enclose _M.textadept.editing.enclose(left, right)\nEncloses the selected text or encoded_from_utf8 buffer.encoded_from_utf8(buffer, string)\nReturns the result of UTF-8-encoded string *string* converted into the\nbuffer's encoding.\n@param buffer The global buffer.\n@param string The UTF-8-encoded string to convert.\n@return number encoding buffer.encoding (string or nil)\nThe string encoding of the file on the hard drive or `nil` for binary\nfiles. encoding_bom buffer.encoding_bom (string)\nThe byte-order mark, if any, of the file encoding. +encodings io.encodings (table)\nList of encodings to try to decode files as.\nYou should add to this list if you get a "Conversion failed" error when\ntrying to open a file whose encoding is not recognized. Valid encodings are\nGNU iconv's encodings and include:\n\n * European: ASCII, ISO-8859-{1,2,3,4,5,7,9,10,13,14,15,16}, KOI8-R, KOI8-U,\n KOI8-RU, CP{1250,1251,1252,1253,1254,1257}, CP{850,866,1131},\n Mac{Roman,CentralEurope,Iceland,Croatian,Romania},\n Mac{Cyrillic,Ukraine,Greek,Turkish}, Macintosh.\n * Semitic: ISO-8859-{6,8}, CP{1255,1256}, CP862, Mac{Hebrew,Arabic}.\n * Japanese: EUC-JP, SHIFT_JIS, CP932, ISO-2022-JP, ISO-2022-JP-2,\n ISO-2022-JP-1.\n * Chinese: EUC-CN, HZ, GBK, CP936, GB18030, EUC-TW, BIG5, CP950,\n BIG5-HKSCS, BIG5-HKSCS:2004, BIG5-HKSCS:2001, BIG5-HKSCS:1999,\n ISO-2022-CN, ISO-2022-CN-EXT.\n * Korean: EUC-KR, CP949, ISO-2022-KR, JOHAB.\n * Armenian: ARMSCII-8.\n * Georgian: Georgian-Academy, Georgian-PS.\n * Tajik: KOI8-T.\n * Kazakh: PT154, RK1048.\n * Thai: ISO-8859-11, TIS-620, CP874, MacThai.\n * Laotian: MuleLao-1, CP1133.\n * Vietnamese: VISCII, TCVN, CP1258.\n * Unicode: UTF-8, UCS-2, UCS-2BE, UCS-2LE, UCS-4, UCS-4BE, UCS-4LE, UTF-16,\n UTF-16BE, UTF-16LE, UTF-32, UTF-32BE, UTF-32LE, UTF-7, C99, JAVA. end_at_last_line buffer.end_at_last_line (bool)\nDisable scrolling past the last line.\nThe default value is `true`. end_styled buffer.end_styled (number, Read-only)\nThe position of the last correctly styled character. end_undo_action buffer.end_undo_action(buffer)\nEnds a sequence of actions to undo or redo as a single action.\n@param buffer The global buffer. @@ -1033,9 +1045,10 @@ error _G.error(message [, level])\nTerminates the last protected function called error_detail _M.textadept.run.error_detail (table)\nMap of lexer names to their error string details, tables containing the\nfollowing fields:\n\n + `pattern`: A Lua pattern that matches the language's error string,\n capturing the filename the error occurs in, the line number the error\n occurred on, and optionally the error message.\n + `filename`: The numeric index of the Lua capture containing the filename\n the error occurred in.\n + `line`: The numeric index of the Lua capture containing the line number\n the error occurred on.\n + `message`: (Optional) The numeric index of the Lua capture containing the\n error's message. An annotation will be displayed if a message was\n captured.\n\nWhen an error message is double-clicked, the user is taken to the point of\nerror.\nThis table is usually populated by language-specific modules. events _G.events (module)\nTextadept's core event structure and handlers. execute os.execute([command])\nThis function is equivalent to the ANSI C function `system`. It passes\n`command` to be executed by an operating system shell. Its first result is\n`true` if the command terminated successfully, or `nil` otherwise. After this\nfirst result the function returns a string and a number, as follows:\n "exit": the command terminated normally; the following number is the exit\n status of the command.\n "signal": the command was terminated by a signal; the following number is\n the signal that terminated the command.\n\nWhen called without a `command`, `os.execute` returns a boolean that is true\nif a shell is available. -execute_lua gui.command_entry.execute_lua(code)\nExecutes string *code* as Lua code.\nCode is subject to an "abbreviated" environment where the `buffer`, `view`,\nand `gui` tables are also considered as globals.\n@param code The Lua code to execute. +execute_lua gui.command_entry.execute_lua(code)\nExecutes string *code* as Lua code.\nCode is subject to an "abbreviated" environment where the `buffer`, `view`,\nand `gui` tables are also considered as globals.\nPrint the results of '=' expressions like in the Lua prompt.\n@param code The Lua code to execute. exit os.exit([code [, close]])\nCalls the ANSI 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`.\n\nIf the optional second argument `close` is true, closes the Lua state before\nexiting. exp math.exp(x)\nReturns the value *e^x*. +expand_children buffer.expand_children(buffer, line, level)\nExpands the fold states of the fold header on line number *line* and its\nchildren with fold level *level*.\n@param buffer The global buffer.\n@param line The line number in *buffer* to expand the folds for.\n@param level The previous fold level of *line*, not the current one. This is\n because this function is used to respond to changes in a line's fold level\n or fold header status, so a new fold level has already been set. extend lexer.extend (pattern)\nA pattern matching any ASCII extended character (`0`..`255`). extensions _M.textadept.mime_types.extensions (table)\nMap of file extensions (excluding the leading '.') to their associated\nlexers.\nIf the file type is not recognized by shebang words or first-line patterns,\neach file extension is matched against the file's extension. extra_ascent buffer.extra_ascent (number)\nThe amount of pixel padding above line text.\nThe default value is `0`. @@ -1065,9 +1078,12 @@ fmod math.fmod(x, y)\nReturns the remainder of the division of `x` by `y` that r focus gui.command_entry.focus()\nFocuses the command entry. focus gui.find.focus()\nDisplays and focuses the Find & Replace pane. fold lexer.fold(text, start_pos, start_line, start_level)\nFolds *text*, a chunk of text starting at position *start_pos* on line number\n*start_line* with a beginning fold level of *start_level* in the buffer.\nCalled by the Scintilla lexer; **do not call from Lua**. If the current lexer\nhas a `_fold` function or a `_foldsymbols` table, it is used to perform\nfolding. Otherwise, if a `fold.by.indentation` property is set, folding by\nindentation is done.\n@param text The text in the buffer to fold.\n@param start_pos The position in the buffer *text* starts at.\n@param start_line The line number *text* starts on.\n@param start_level The fold level *text* starts on.\n@return table of fold levels. +fold_all buffer.fold_all(buffer, action)\nExpands, contracts, or toggles the fold states of all fold headers in the\nbuffer, depending on *action*.\nWhen toggling, the state of the first fold header in the buffer determines\nwhether to expand or contract.\n@param buffer The global buffer.\n@param action The fold action to perform. Valid values are:\n * `_SCINTILLA.constants.SC_FOLDACTION_CONTRACT` (0)\n * `_SCINTILLA.constants.SC_FOLDACTION_EXPAND` (1)\n * `_SCINTILLA.constants.SC_FOLDACTION_TOGGLE` (2) +fold_children buffer.fold_children(buffer, line, action)\nExpands, contracts, or toggles the fold states of the fold header on line\nnumber *line* and its children, depending on *action*.\n@param buffer The global buffer.\n@param line The line number in *buffer* to set the fold states for.\n@param action The fold action to perform. Valid values are:\n * `_SCINTILLA.constants.SC_FOLDACTION_CONTRACT` (0)\n * `_SCINTILLA.constants.SC_FOLDACTION_EXPAND` (1)\n * `_SCINTILLA.constants.SC_FOLDACTION_TOGGLE` (2) fold_expanded buffer.fold_expanded (table)\nTable of flags indicating whether or not folds are expanded for line\nnumbers starting from zero.\nSetting expanded fold states does not toggle folds; it only updates fold\nmargin markers. Use `buffer:toggle_fold()` instead. fold_flags buffer.fold_flags (number)\nBit-mask of options for drawing folding lines.\n\n* `_SCINTILLA.constants.SC_FOLDFLAG_LINEBEFORE_EXPANDED` (2)\n Draw lines above expanded folds.\n* `_SCINTILLA.constants.SC_FOLDFLAG_LINEBEFORE_CONTRACTED` (4)\n Draw lines above collapsed folds.\n* `_SCINTILLA.constants.SC_FOLDFLAG_LINEAFTER_EXPANDED` (8)\n Draw lines below expanded folds.\n* `_SCINTILLA.constants.SC_FOLDFLAG_LINEAFTER_CONTRACTED` (16)\n Draw lines below collapsed folds.\n\nThe default value is `0`. fold_level buffer.fold_level (table)\nTable of fold level bit-masks for line numbers starting from zero.\nFold level masks are composed of an integer level combined with any of the\nfollowing bits:\n\n* `_SCINTILLA.constants.SC_FOLDLEVELBASE` (0x400)\n The initial fold level.\n* `_SCINTILLA.constants.SC_FOLDLEVELWHITEFLAG` (0x1000)\n The line is blank.\n* `_SCINTILLA.constants.SC_FOLDLEVELHEADERFLAG` (0x2000)\n The line is a header, or fold point. +fold_line buffer.fold_line(buffer, line, action)\nExpands, contracts, or toggles the fold state of the fold header on line\nnumber *line*, depending on *action*.\n@param buffer The global buffer.\n@param line The line number in *buffer* to set the fold state for.\n@param action The fold action to perform. Valid values are:\n * `_SCINTILLA.constants.SC_FOLDACTION_CONTRACT` (0)\n * `_SCINTILLA.constants.SC_FOLDACTION_EXPAND` (1)\n * `_SCINTILLA.constants.SC_FOLDACTION_TOGGLE` (2) fold_line_comments lexer.fold_line_comments(prefix)\nReturns a fold function, to be used within the lexer's `_foldsymbols` table,\nthat folds consecutive line comments beginning with string *prefix*.\n@param prefix The prefix string defining a line comment.\n@usage [l.COMMENT] = {['--'] = l.fold_line_comments('--')}\n@usage [l.COMMENT] = {['//'] = l.fold_line_comments('//')} fold_parent buffer.fold_parent (table, Read-only)\nTable of parent line numbers (fold points) for child line numbers starting\nfrom zero.\nA line number of `-1` means no line was found. form_feed buffer.form_feed(buffer)\nInserts a Form Feed ("\f") character at the caret.\n@param buffer The global buffer. @@ -1149,7 +1165,7 @@ indentation_guides buffer.indentation_guides (number)\nThe indentation guide dra indic_alpha buffer.indic_alpha (table)\nTable of fill color alpha values, ranging from `0` (transparent) to `255`\n(opaque), for indicator numbers from `0` to `31` whose styles are either\n`INDIC_ROUNDBOX`, `INDIC_STRAIGHTBOX`, or `INDIC_DOTBOX`.\nThe default values are `256`, for no alpha. indic_fore buffer.indic_fore (table)\nTable of foreground colors, in "0xBBGGRR" format, for indicator numbers\nfrom `0` to `31`. indic_outline_alpha buffer.indic_outline_alpha (table)\nTable of outline color alpha values, ranging from `0` (transparent) to\n`255` (opaque), for indicator numbers from `0` to `31` whose styles are\neither `INDIC_ROUNDBOX`, `INDIC_STRAIGHTBOX`, or `INDIC_DOTBOX`.\nThe default values are `256`, for no alpha. -indic_style buffer.indic_style (table)\nTable of styles for indicator numbers from `0` to `31`.\n\n* `_SCINTILLA.constants.INDIC_PLAIN` (0)\n An underline.\n* `_SCINTILLA.constants.INDIC_SQUIGGLE` (1)\n A squiggly underline 3 pixels in height.\n* `_SCINTILLA.constants.INDIC_TT` (2)\n A line of small 'T' shapes.\n* `_SCINTILLA.constants.INDIC_DIAGONAL` (3)\n Diagonal hatching.\n* `_SCINTILLA.constants.INDIC_STRIKE` (4)\n Strike out.\n* `_SCINTILLA.constants.INDIC_HIDDEN` (5)\n Invisible.\n* `_SCINTILLA.constants.INDIC_BOX` (6)\n A rectangle around the text.\n* `_SCINTILLA.constants.INDIC_ROUNDBOX` (7)\n A translucent rectangle with rounded corners around the text. Use\n `buffer.indic_alpha` and\n `buffer.indic_outline_alpha` to set the fill and\n outline transparency, respectively. Their default values are `30` and\n `50`.\n* `_SCINTILLA.constants.INDIC_STRAIGHTBOX` (8)\n Similar to `INDIC_ROUNDBOX` but with sharp corners.\n* `_SCINTILLA.constants.INDIC_DASH` (9)\n A dashed underline.\n* `_SCINTILLA.constants.INDIC_DOTS` (10)\n A dotted underline.\n* `_SCINTILLA.constants.INDIC_SQUIGGLELOW` (11)\n A squiggly underline 2 pixels in height.\n* `_SCINTILLA.constants.INDIC_DOTBOX` (12)\n Similar to `INDIC_STRAIGHTBOX` but with a dotted outline.\n Translucency alternates between `buffer.indic_alpha` and\n `buffer.indic_outline_alpha` starting with the\n top-left pixel.\n* `_SCINTILLA.constants.INDIC_SQUIGGLEPIXMAP` (13)\n Identical to `INDIC_SQUIGGLE` but draws faster by using a pixmap instead\n of multiple line segments.\n\nUse `_SCINTILLA.next_indic_number()` for custom indicators. +indic_style buffer.indic_style (table)\nTable of styles for indicator numbers from `0` to `31`.\n\n* `_SCINTILLA.constants.INDIC_PLAIN` (0)\n An underline.\n* `_SCINTILLA.constants.INDIC_SQUIGGLE` (1)\n A squiggly underline 3 pixels in height.\n* `_SCINTILLA.constants.INDIC_TT` (2)\n A line of small 'T' shapes.\n* `_SCINTILLA.constants.INDIC_DIAGONAL` (3)\n Diagonal hatching.\n* `_SCINTILLA.constants.INDIC_STRIKE` (4)\n Strike out.\n* `_SCINTILLA.constants.INDIC_HIDDEN` (5)\n Invisible.\n* `_SCINTILLA.constants.INDIC_BOX` (6)\n A rectangle around the text.\n* `_SCINTILLA.constants.INDIC_ROUNDBOX` (7)\n A translucent rectangle with rounded corners around the text. Use\n `buffer.indic_alpha` and\n `buffer.indic_outline_alpha` to set the fill and\n outline transparency, respectively. Their default values are `30` and\n `50`.\n* `_SCINTILLA.constants.INDIC_STRAIGHTBOX` (8)\n Similar to `INDIC_ROUNDBOX` but with sharp corners.\n* `_SCINTILLA.constants.INDIC_DASH` (9)\n A dashed underline.\n* `_SCINTILLA.constants.INDIC_DOTS` (10)\n A dotted underline.\n* `_SCINTILLA.constants.INDIC_SQUIGGLELOW` (11)\n A squiggly underline 2 pixels in height.\n* `_SCINTILLA.constants.INDIC_DOTBOX` (12)\n Similar to `INDIC_STRAIGHTBOX` but with a dotted outline.\n Translucency alternates between `buffer.indic_alpha` and\n `buffer.indic_outline_alpha` starting with the\n top-left pixel.\n* `_SCINTILLA.constants.INDIC_SQUIGGLEPIXMAP` (13)\n Identical to `INDIC_SQUIGGLE` but draws faster by using a pixmap instead\n of multiple line segments.\n* `_SCINTILLA.constants.INDIC_COMPOSITIONTHICK` (14)\n A 2-pixel thick underline at the bottom of the line inset by 1 pixel on\n on either side. Similar in appearance to Asian language input\n composition.\n\nUse `_SCINTILLA.next_indic_number()` for custom indicators. indic_under buffer.indic_under (table)\nTable of flags indicating whether or not to draw indicators over text or\nunder it for indicator numbers from `0` to `31`.\nFor values to be `true`, `buffer.two_phase_draw` must be\n`true`.\nThe default values are `false` for drawing indicators over text. indicator_all_on_for buffer.indicator_all_on_for(buffer, pos)\nReturns a bit-mask representing which indicators are on at position *pos*.\nBit 0 is set if indicator 0 is on, bit 1 for indicator 1, etc.\n@param buffer The global buffer.\n@param pos The position in *buffer* to get indicators at.\n@return number indicator_clear_range buffer.indicator_clear_range(buffer, pos, clear_length)\nClears indicator `buffer.indicator_current` over the range of text from *pos*\nto *pos* + *clear_length*.\n@param buffer The global buffer.\n@param pos The start position of the range of text in *buffer* to clear\n indicators over.\n@param clear_length The number of characters in the range of text to clear\n indicators over. @@ -1251,7 +1267,7 @@ margin_options buffer.margin_options (number)\nA bit-mask of margin option setti margin_right buffer.margin_right (number)\nThe size in pixels of the right margin of the buffer text.\nThe default value is `1`. margin_sensitive_n buffer.margin_sensitive_n (table)\nTable of flags indicating whether or not mouse clicks in margins emit\n`MARGIN_CLICK` events for margin numbers from zero to four.\nThe default values are `false`. margin_style buffer.margin_style (table)\nTable of style numbers for text margin line numbers starting from zero.\nOnly some style attributes are active in text margins: font,\nsize/size_fractional, bold/weight, italics, fore, back, and character_set. -margin_style_offset buffer.margin_style_offset (number)\nThe beginning of the range of style numbers used for margin text.\nMargin styles may be completely separated from standard text styles by\nsetting a style offset. For example, setting this to `256` would allow the\nmargin styles to be numbered from `256` upto `511` so they do not overlap\nstyles set by lexers. Each style number set with `margin_style` has\nthe offset added before looking up the style. +margin_style_offset buffer.margin_style_offset (number)\nThe beginning of the range of style numbers used for margin text.\nAlways set this to the result of\n`buffer.allocate_extended_styles`.\nMargin styles may be completely separated from standard text styles by\nsetting a style offset. For example, when set to `256`, margin styles are\nnumbered from `256` upto `511` so they do not overlap styles set by lexers.\nEach style number set with `margin_style` has the offset added before\nlooking up the style. margin_text buffer.margin_text (table)\nTable of text in the text margin for line numbers starting from zero. margin_text_clear_all buffer.margin_text_clear_all(buffer)\nClears margin text on all lines.\n@param buffer The global buffer. margin_type_n buffer.margin_type_n (table)\nTable of margin types for margin numbers from zero to four.\n\n* `_SCINTILLA.constants.SC_MARGIN_SYMBOL` (0)\n A symbol margin.\n* `_SCINTILLA.constants.SC_MARGIN_NUMBER` (1)\n A line number margin.\n* `_SCINTILLA.constants.SC_MARGIN_BACK` (2)\n A symbol margin whose background color matches the default text\n background color.\n* `_SCINTILLA.constants.SC_MARGIN_FORE` (3)\n A symbol margin whose foreground color matches the default text\n foreground color.\n* `_SCINTILLA.constants.SC_MARGIN_TEXT` (4)\n A text margin.\n* `_SCINTILLA.constants.SC_MARGIN_RTEXT` (5)\n A right-justified text margin.\n\nThe default values are `true`, `false`, `false`, `false`, and `false`, for\na line number margin and symbol margins. @@ -1269,7 +1285,7 @@ marker_delete_all buffer.marker_delete_all(buffer, marker_num)\nDeletes marker n marker_delete_handle buffer.marker_delete_handle(buffer, handle)\nDeletes the marker with handle *handle* returned by `buffer:marker_add()`.\n@param buffer The global buffer.\n@param handle The identifier of a marker returned by `buffer:marker_add()`. marker_enable_highlight buffer.marker_enable_highlight(buffer, enabled)\nHighlights the margin fold markers for the current fold block if *enabled* is\n`true`.\n@param buffer The global buffer.\n@param enabled Whether or not to enable highlight. marker_fore buffer.marker_fore (table, Write-only)\nTable of foreground colors, in "0xBBGGRR" format, used for marker numbers\nfrom `0` to `31`. -marker_get buffer.marker_get(buffer, line)\nReturns a bit-mask representing which markers are set line number *line*.\nBit 0 is set if marker 0 is set, bit 1 for marker 1, etc.\n@param buffer The global buffer.\n@param line The line number to get markers on.\n@return number. +marker_get buffer.marker_get(buffer, line)\nReturns a bit-mask representing which markers are set line number *line*.\nBit 0 is set if marker 0 is set, bit 1 for marker 1, etc.\n@param buffer The global buffer.\n@param line The line number to get markers on.\n@return number marker_line_from_handle buffer.marker_line_from_handle(buffer, handle)\nReturns the line number the marker with handle *handle*, returned by\n`buffer:marker_add()`, is on, or `-1`.\n@param buffer The global buffer.\n@param handle The identifier of a marker returned by `buffer:marker_add()`.\n@return number marker_next buffer.marker_next(buffer, start_line, marker_mask)\nReturns the first line number starting at line number *start_line* that has\nall of the markers represented by marker bit-mask *marker_mask* set on, or\n`-1`.\nBit 0 is set if marker 0 is set, bit 1 for marker 1, etc., up to marker 31.\n@param buffer The global buffer.\n@param start_line The start line to search from.\n@param marker_mask The mask of markers to find. Set bit 0 to find marker 0,\n bit 1 for marker 1 and so on.\n@return number marker_previous buffer.marker_previous(buffer, start_line, marker_mask)\nReturns the last line number before or on line number *start_line* that has\nall of the markers represented by marker bit-mask *marker_mask* set on, or\n`-1`.\nBit 0 is set if marker 0 is set, bit 1 for marker 1, etc., up to marker 31.\n@param buffer The global buffer.\n@param start_line The start line to search from.\n@param marker_mask The mask of markers to find. Set bit 0 to find marker 0,\n bit 1 for marker 1 and so on.\n@return number @@ -1386,6 +1402,7 @@ redo buffer.redo(buffer)\nRedoes the next undone action.\n@param buffer The glob register args.register(short, long, narg, f, description)\nRegisters a command line switch with short and long versions *short* and\n*long*, respectively. *narg* is the number of arguments the switch accepts,\n*f* is the function called when the switch is tripped, and *description* is\nthe switch's description when displaying help.\n@param short The string short version of the switch.\n@param long The string long version of the switch.\n@param narg The number of expected parameters for the switch.\n@param f The Lua function to run when the switch is tripped.\n@param description The string description of the switch for command line\n help. register_image buffer.register_image(buffer, type, xpm_data)\nRegisters XPM image *xpm_data* to type number *type* for use in\nautocompletion lists.\n@param buffer The global buffer.\n@param type Integer type to register the image with.\n@param xpm_data The XPM data as described in `buffer:marker_define_pixmap()`. register_rgba_image buffer.register_rgba_image(buffer, type, pixels)\nRegisters RGBA image *pixels* to type number *type* for use in autocompletion\nlists.\nThe dimensions for *pixels*, `buffer.rgba_image_width` and\n`buffer.rgba_image_height`, must be already defined. *pixels* is a sequence\nof 4 byte pixel values (red, blue, green, and alpha) defining the image line\nby line starting at the top-left pixel.\n@param buffer The global buffer.\n@param type Integer type to register the image with.\n@param pixels The RGBA data as described in\n `buffer:marker_define_rgba_image()`. +release_all_extended_styles buffer.release_all_extended_styles(buffer)\nReleases all styles allocated with `buffer:allocate_extended_styles()`.\n@param buffer The global buffer.\n@see allocate_extended_styles reload buffer.reload(buffer)\nReloads the file in the buffer.\n@param buffer The global buffer. remove os.remove(filename)\nDeletes the file (or empty directory, on POSIX systems) with the given name.\nIf this function fails, it returns nil, plus a string describing the error\nand the error code. remove table.remove(list [, pos])\nRemoves from `list` the element at position `pos`, returning the value of the\nremoved element. When `pos` is an integer between 1 and `#list`, it shifts\ndown the elements `list[pos+1], list[pos+2], ···, list[#list]` and erases\nelement `list[#list]`; The index `pos` can also be 0 when `#list` is 0, or\n`#list + 1`; in those cases, the function erases the element `list[pos]`.\n\nThe default value for `pos` is `#list`, so that a call `table.remove(t)`\nremoves the last element of list `t`. @@ -1477,14 +1494,6 @@ sense _M.rails.sense\nThe Rails Adeptsense.\n It loads user tags from *`_USERHO sense _M.rhtml.sense\nThe RHTML Adeptsense.\n It loads user tags from *`_USERHOME`/modules/rhtml/tags* and user apidocs\n from *`_USERHOME`/modules/rhtml/api*. sense _M.ruby.sense\nThe Ruby Adeptsense.\n It loads user tags from *`_USERHOME`/modules/ruby/tags* and user apidocs\n from *`_USERHOME`/modules/ruby/api*. session _M.textadept.session (module)\nSession support for Textadept. -set_buffer_properties _M.cpp.set_buffer_properties()\nSets default buffer properties for C/C++ files. -set_buffer_properties _M.css.set_buffer_properties()\nSets default buffer properties for CSS files. -set_buffer_properties _M.hypertext.set_buffer_properties()\nSets default buffer properties for HTML files. -set_buffer_properties _M.java.set_buffer_properties()\nSets default buffer properties for Java files. -set_buffer_properties _M.lua.set_buffer_properties()\nSets default buffer properties for Lua files. -set_buffer_properties _M.php.set_buffer_properties()\nSets default buffer properties for PHP files. -set_buffer_properties _M.python.set_buffer_properties()\nSets default buffer properties for Python files. -set_buffer_properties _M.ruby.set_buffer_properties()\nSets default buffer properties for Ruby files. set_chars_default buffer.set_chars_default(buffer)\nResets the set of whitespace and word characters to their default characters.\n@param buffer The global buffer.\n@see whitespace_chars\n@see word_chars set_contextmenu _M.textadept.menu.set_contextmenu(menu)\nSets `gui.context_menu` from *menu*, an ordered list of menu items.\nMenu items are tables containing menu text and either a function to call or\na table containing a function with its parameters to call when an item is\nclicked. Menu items may also be sub-menus, ordered lists of menu items with\nan additional `title` key for the sub-menu's title text.\n@param menu The menu table to create the context menu from.\n@see gui.context_menu\n@see gui.menu set_empty_selection buffer.set_empty_selection(buffer, pos)\nSets the current position to position *pos* without scrolling the view,\nremoving any selections.\n@param buffer The buffer\n@param pos The position in *buffer* to move to. @@ -1632,7 +1641,6 @@ tostring _G.tostring(v)\nReceives a value of any type and converts it to a strin 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) is\nthe access time, and the third argument (mtime) is the modification time.\nBoth 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.\n\nReturns true if the operation was successful; in case of error, it returns\nnil plus an error string. traceback debug.traceback([thread, ] [message] [, level])\nIf `message` is present but is neither a string nor nil, this function\nreturns `message` without further processing. Otherwise, it returns a string\nwith a traceback of the call stack. An optional `message` string is appended\nat the beginning of the traceback. An optional `level` number tells at which\nlevel to start the traceback (default is 1, the function calling\n`traceback`). transpose_chars _M.textadept.editing.transpose_chars()\nTransposes characters intelligently.\nIf the caret is at the end of a line, the two characters before the caret are\ntransposed. Otherwise, the characters to the left and right are. -try_encodings io.try_encodings (table)\nList of encodings to try to decode files as.\nYou should add to this list if you get a "Conversion failed" error when\ntrying to open a file whose encoding is not recognized. Valid encodings are\nGNU iconv's encodings and include:\n\n * European: ASCII, ISO-8859-{1,2,3,4,5,7,9,10,13,14,15,16}, KOI8-R, KOI8-U,\n KOI8-RU, CP{1250,1251,1252,1253,1254,1257}, CP{850,866,1131},\n Mac{Roman,CentralEurope,Iceland,Croatian,Romania},\n Mac{Cyrillic,Ukraine,Greek,Turkish}, Macintosh.\n * Semitic: ISO-8859-{6,8}, CP{1255,1256}, CP862, Mac{Hebrew,Arabic}.\n * Japanese: EUC-JP, SHIFT_JIS, CP932, ISO-2022-JP, ISO-2022-JP-2,\n ISO-2022-JP-1.\n * Chinese: EUC-CN, HZ, GBK, CP936, GB18030, EUC-TW, BIG5, CP950,\n BIG5-HKSCS, BIG5-HKSCS:2004, BIG5-HKSCS:2001, BIG5-HKSCS:1999,\n ISO-2022-CN, ISO-2022-CN-EXT.\n * Korean: EUC-KR, CP949, ISO-2022-KR, JOHAB.\n * Armenian: ARMSCII-8.\n * Georgian: Georgian-Academy, Georgian-PS.\n * Tajik: KOI8-T.\n * Kazakh: PT154, RK1048.\n * Thai: ISO-8859-11, TIS-620, CP874, MacThai.\n * Laotian: MuleLao-1, CP1133.\n * Vietnamese: VISCII, TCVN, CP1258.\n * Unicode: UTF-8, UCS-2, UCS-2BE, UCS-2LE, UCS-4, UCS-4BE, UCS-4LE, UTF-16,\n UTF-16BE, UTF-16LE, UTF-32, UTF-32BE, UTF-32LE, UTF-7, C99, JAVA. try_to_autocomplete_end _M.lua.try_to_autocomplete_end()\nTries to autocomplete control structures like `if`, `while`, `for`, etc. with\nthe `end` keyword.\n@see control_structure_patterns 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 two_phase_draw buffer.two_phase_draw (bool)\nDraw in two phases: first the background and then the foreground.\nThe default is `true`. @@ -1695,7 +1703,7 @@ word_right_extend buffer.word_right_extend(buffer)\nMoves the caret right one wo word_start_position buffer.word_start_position(buffer, pos, only_word_chars)\nReturns the position of the beginning of the word at position *pos*.\n`buffer.word_chars` contains word characters. If *pos* has a non-word\ncharacter to its left and *only_word_chars* is `false`, returns the position\nof the last word character.\n@param buffer The global buffer.\n@param pos The position in *buffer* of the word.\n@param only_word_chars If `true`, stops searching at the first non-word\n character in the search direction. Otherwise, the first character in the\n search direction sets the type of the search as word or non-word and the\n search stops at the first non-matching character. Searches are also\n terminated by the start or end of the buffer. wrap coroutine.wrap(f)\nCreates a new coroutine, with body `f`. `f` must be a Lua\nfunction. Returns a function that resumes the coroutine each time it is\ncalled. Any arguments passed to the function behave as the extra arguments to\n`resume`. Returns the same values returned by `resume`, except the first\nboolean. In case of error, propagates the error. wrap_count buffer.wrap_count(buffer, line)\nReturns the number of wrapped lines needed to display line number *line*.\n@param buffer The global buffer.\n@param line The line number in *buffer* to use.\n@return number -wrap_indent_mode buffer.wrap_indent_mode (number)\nThe wrapped line indent mode.\n\n* `_SCINTILLA.constants.SC_WRAP_INDENT_FIXED` (0)\n Indent wrapped lines by `buffer.wrap_start_indent`.\n* `_SCINTILLA.constants.SC_WRAP_INDENT_SAME` (1)\n Indent wrapped lines the same as the first line.\n* `_SCINTILLA.constants.SC_WRAP_INDENT_INDENT` (2)\n Indent wrapped lines one more level than the first line. +wrap_indent_mode buffer.wrap_indent_mode (number)\nThe wrapped line indent mode.\n\n* `_SCINTILLA.constants.SC_WRAP_INDENT_FIXED` (0)\n Indent wrapped lines by `buffer.wrap_start_indent`.\n* `_SCINTILLA.constants.SC_WRAP_INDENT_SAME` (1)\n Indent wrapped lines the same as the first line.\n* `_SCINTILLA.constants.SC_WRAP_INDENT_INDENT` (2)\n Indent wrapped lines one more level than the first line.\n\nThe default value is `0`. wrap_mode buffer.wrap_mode (number)\nLong line wrap mode.\n\n* `_SCINTILLA.constants.SC_WRAP_NONE` (0)\n Long lines are not wrapped.\n* `_SCINTILLA.constants.SC_WRAP_WORD` (1)\n Wrap long lines at word boundaries.\n* `_SCINTILLA.constants.SC_WRAP_CHAR` (2)\n Wrap long lines at character boundaries.\n\nThe default value is `0`. wrap_start_indent buffer.wrap_start_indent (number)\nThe number of spaces to indent wrapped lines by if\n`buffer.wrap_indent_mode` is\n`_SCINTILLA.constants.SC_WRAP_INDENT_FIXED`.\nThe default value is `0`. wrap_visual_flags buffer.wrap_visual_flags (number)\nThe wrapped line visual display mode.\n\n* `_SCINTILLA.constants.SC_WRAPVISUALFLAG_NONE` (0)\n No visual flags.\n* `_SCINTILLA.constants.SC_WRAPVISUALFLAG_END` (1)\n Show visual flag at the end of the line.\n* `_SCINTILLA.constants.SC_WRAPVISUALFLAG_START` (2)\n Show visual flag at the beginning of the sub-line.\n* `_SCINTILLA.constants.SC_WRAPVISUALFLAG_MARGIN` (4)\n Show visual flag in the line number margin of the sub-line.\n\nThe default value is `0`. diff --git a/modules/lua/tags b/modules/lua/tags index 68d6afa2..6400c343 100644 --- a/modules/lua/tags +++ b/modules/lua/tags @@ -27,6 +27,7 @@ CLASS _ 0;" F class:lexer CLEAR _ 0;" F class:keys COMMAND_ENTRY_KEYPRESS _ 0;" F class:events COMMENT _ 0;" F class:lexer +COMPILE_OUTPUT _ 0;" F class:events CONSTANT _ 0;" F class:lexer CURSES _ 0;" F Carg _ 0;" f class:lpeg @@ -50,9 +51,14 @@ ERROR _ 0;" F class:events ERROR _ 0;" F class:lexer FIELD _ 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 FILTER _ 0;" t class:gui.find FILTER _ 0;" t class:lfs FIND _ 0;" F class:events +FIND_WRAPPED _ 0;" F class:events FOLD_BASE _ 0;" F class:lexer FOLD_BLANK _ 0;" F class:lexer FOLD_HEADER _ 0;" F class:lexer @@ -71,6 +77,7 @@ INDICATOR_CLICK _ 0;" F class:events INDICATOR_RELEASE _ 0;" F class:events INDICS_MASK _ 0;" F class:_SCINTILLA.constants INDIC_BOX _ 0;" F class:_SCINTILLA.constants +INDIC_COMPOSITIONTHICK _ 0;" F class:_SCINTILLA.constants INDIC_CONTAINER _ 0;" F class:_SCINTILLA.constants INDIC_DASH _ 0;" F class:_SCINTILLA.constants INDIC_DIAGONAL _ 0;" F class:_SCINTILLA.constants @@ -93,6 +100,7 @@ KEYSYMS _ 0;" t class:keys KEYWORD _ 0;" F class:lexer KEYWORDSET_MAX _ 0;" F class:_SCINTILLA.constants LABEL _ 0;" F class:lexer +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 @@ -114,6 +122,7 @@ REPLACE_ALL _ 0;" F class:events RESETTING _ 0;" F 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_POINT_LEFT _ 0;" F class:events @@ -175,6 +184,7 @@ SCI_GETADDITIONALSELALPHA _ 0;" F class:_SCINTILLA.constants SCI_GETADDITIONALSELECTIONTYPING _ 0;" F class:_SCINTILLA.constants SCI_GETALLLINESVISIBLE _ 0;" F class:_SCINTILLA.constants SCI_GETANCHOR _ 0;" F class:_SCINTILLA.constants +SCI_GETAUTOMATICFOLD _ 0;" F class:_SCINTILLA.constants SCI_GETBACKSPACEUNINDENTS _ 0;" F class:_SCINTILLA.constants SCI_GETBUFFEREDDRAW _ 0;" F class:_SCINTILLA.constants SCI_GETCARETFORE _ 0;" F class:_SCINTILLA.constants @@ -350,6 +360,7 @@ SCI_SETADDITIONALSELBACK _ 0;" F class:_SCINTILLA.constants SCI_SETADDITIONALSELECTIONTYPING _ 0;" F class:_SCINTILLA.constants SCI_SETADDITIONALSELFORE _ 0;" F class:_SCINTILLA.constants SCI_SETANCHOR _ 0;" F class:_SCINTILLA.constants +SCI_SETAUTOMATICFOLD _ 0;" F class:_SCINTILLA.constants SCI_SETBACKSPACEUNINDENTS _ 0;" F class:_SCINTILLA.constants SCI_SETBUFFEREDDRAW _ 0;" F class:_SCINTILLA.constants SCI_SETCARETFORE _ 0;" F class:_SCINTILLA.constants @@ -559,6 +570,9 @@ SCWS_VISIBLEALWAYS _ 0;" F class:_SCINTILLA.constants SC_ALPHA_NOALPHA _ 0;" F class:_SCINTILLA.constants SC_ALPHA_OPAQUE _ 0;" F class:_SCINTILLA.constants SC_ALPHA_TRANSPARENT _ 0;" F class:_SCINTILLA.constants +SC_AUTOMATICFOLD_CHANGE _ 0;" F class:_SCINTILLA.constants +SC_AUTOMATICFOLD_CLICK _ 0;" F class:_SCINTILLA.constants +SC_AUTOMATICFOLD_SHOW _ 0;" F class:_SCINTILLA.constants SC_CACHE_CARET _ 0;" F class:_SCINTILLA.constants SC_CACHE_DOCUMENT _ 0;" F class:_SCINTILLA.constants SC_CACHE_NONE _ 0;" F class:_SCINTILLA.constants @@ -605,6 +619,9 @@ SC_EFF_QUALITY_NON_ANTIALIASED _ 0;" F class:_SCINTILLA.constants SC_EOL_CR _ 0;" F class:_SCINTILLA.constants SC_EOL_CRLF _ 0;" F class:_SCINTILLA.constants SC_EOL_LF _ 0;" F class:_SCINTILLA.constants +SC_FOLDACTION_CONTRACT _ 0;" F class:_SCINTILLA.constants +SC_FOLDACTION_EXPAND _ 0;" F class:_SCINTILLA.constants +SC_FOLDACTION_TOGGLE _ 0;" F class:_SCINTILLA.constants SC_FOLDFLAG_LEVELNUMBERS _ 0;" F class:_SCINTILLA.constants SC_FOLDFLAG_LINEAFTER_CONTRACTED _ 0;" F class:_SCINTILLA.constants SC_FOLDFLAG_LINEAFTER_EXPANDED _ 0;" F class:_SCINTILLA.constants @@ -766,14 +783,6 @@ _CHARSET _ 0;" F _EXISTS _ 0;" f class:_L _G _ 0;" F _G _ 0;" m -_G.events.COMPILE_OUTPUT _ 0;" F class:_M.textadept.run -_G.events.FILE_AFTER_SAVE _ 0;" F class:io -_G.events.FILE_BEFORE_SAVE _ 0;" F class:io -_G.events.FILE_OPENED _ 0;" F class:io -_G.events.FILE_SAVED_AS _ 0;" F class:io -_G.events.FIND_WRAPPED _ 0;" F class:gui.find -_G.events.LANGUAGE_MODULE_LOADED _ 0;" F class:_M.textadept.mime_types -_G.events.RUN_OUTPUT _ 0;" F class:_M.textadept.run _HOME _ 0;" F _L _ 0;" m _L _ 0;" t @@ -834,6 +843,7 @@ additional_selection_typing _ 0;" F class:buffer adeptsense _ 0;" t class:_M.textadept all_lines_visible _ 0;" F class:buffer allocate _ 0;" f class:buffer +allocate_extended_styles _ 0;" f class:buffer alnum _ 0;" F class:lexer alpha _ 0;" F class:lexer always_show_globals _ 0;" F class:_M.textadept.adeptsense @@ -880,6 +890,7 @@ 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 +automatic_fold _ 0;" F class:buffer back_space_un_indents _ 0;" F class:buffer back_tab _ 0;" f class:buffer band _ 0;" f class:bit32 @@ -1049,6 +1060,7 @@ 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 +encodings _ 0;" t class:io end_at_last_line _ 0;" F class:buffer end_styled _ 0;" F class:buffer end_undo_action _ 0;" f class:buffer @@ -1065,6 +1077,7 @@ execute _ 0;" f class:os execute_lua _ 0;" f class:gui.command_entry exit _ 0;" f class:os exp _ 0;" f class:math +expand_children _ 0;" f class:buffer extend _ 0;" F class:lexer extensions _ 0;" t class:_M.textadept.mime_types extra_ascent _ 0;" F class:buffer @@ -1094,9 +1107,12 @@ fmod _ 0;" f class:math focus _ 0;" f class:gui.command_entry focus _ 0;" f class:gui.find fold _ 0;" f class:lexer +fold_all _ 0;" f class:buffer +fold_children _ 0;" f class:buffer fold_expanded _ 0;" F class:buffer fold_flags _ 0;" F class:buffer fold_level _ 0;" F class:buffer +fold_line _ 0;" f class:buffer fold_line_comments _ 0;" f class:lexer fold_parent _ 0;" F class:buffer form_feed _ 0;" f class:buffer @@ -1205,6 +1221,7 @@ java _ 0;" t class:snippets join_lines _ 0;" f class:_M.textadept.editing keys _ 0;" m keys _ 0;" t +keys _ 0;" t keys _ 0;" t class:_M.textadept last_char_includes _ 0;" f class:lexer layout_cache _ 0;" F class:buffer @@ -1425,6 +1442,7 @@ redo _ 0;" f class:buffer register _ 0;" f class:args register_image _ 0;" f class:buffer register_rgba_image _ 0;" f class:buffer +release_all_extended_styles _ 0;" f class:buffer reload _ 0;" f class:buffer remove _ 0;" f class:os remove _ 0;" f class:table @@ -1516,14 +1534,6 @@ 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.python -set_buffer_properties _ 0;" f class:_M.ruby set_chars_default _ 0;" f class:buffer set_contextmenu _ 0;" f class:_M.textadept.menu set_empty_selection _ 0;" f class:buffer @@ -1568,7 +1578,7 @@ sinh _ 0;" f class:math size _ 0;" F class:view size _ 0;" t class:gui snapopen _ 0;" f class:io -snippets _ 0;" t class: +snippets _ 0;" t snippets _ 0;" t class:_M.textadept sort _ 0;" f class:table space _ 0;" F class:lexer @@ -1673,7 +1683,6 @@ tostring _ 0;" f touch _ 0;" f class:lfs traceback _ 0;" f class:debug 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 two_phase_draw _ 0;" F class:buffer @@ -1751,4 +1760,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 |