diff options
-rw-r--r-- | modules/lua/api | 78 | ||||
-rw-r--r-- | modules/lua/tags | 12 |
2 files changed, 57 insertions, 33 deletions
diff --git a/modules/lua/api b/modules/lua/api index 708e6933..bade89d4 100644 --- a/modules/lua/api +++ b/modules/lua/api @@ -171,6 +171,7 @@ SCI_CALLTIPSETFORE _SCINTILLA.constants.SCI_CALLTIPSETFORE\n2206 SCI_CALLTIPSETFOREHLT _SCINTILLA.constants.SCI_CALLTIPSETFOREHLT\n2207 SCI_CALLTIPSETPOSITION _SCINTILLA.constants.SCI_CALLTIPSETPOSITION\n2213 SCI_CALLTIPUSESTYLE _SCINTILLA.constants.SCI_CALLTIPUSESTYLE\n2212 +SCI_DISTANCETOSECONDARYSTYLES _SCINTILLA.constants.SCI_DISTANCETOSECONDARYSTYLES\n4025 SCI_GETADDITIONALCARETFORE _SCINTILLA.constants.SCI_GETADDITIONALCARETFORE\n2605 SCI_GETADDITIONALCARETSBLINK _SCINTILLA.constants.SCI_GETADDITIONALCARETSBLINK\n2568 SCI_GETADDITIONALCARETSVISIBLE _SCINTILLA.constants.SCI_GETADDITIONALCARETSVISIBLE\n2609 @@ -230,6 +231,9 @@ SCI_GETLEXER _SCINTILLA.constants.SCI_GETLEXER\n4002 SCI_GETLEXERLANGUAGE _SCINTILLA.constants.SCI_GETLEXERLANGUAGE\n4012 SCI_GETLINECOUNT _SCINTILLA.constants.SCI_GETLINECOUNT\n2154 SCI_GETLINEENDPOSITION _SCINTILLA.constants.SCI_GETLINEENDPOSITION\n2136 +SCI_GETLINEENDTYPESACTIVE _SCINTILLA.constants.SCI_GETLINEENDTYPESACTIVE\n2658 +SCI_GETLINEENDTYPESALLOWED _SCINTILLA.constants.SCI_GETLINEENDTYPESALLOWED\n2657 +SCI_GETLINEENDTYPESSUPPORTED _SCINTILLA.constants.SCI_GETLINEENDTYPESSUPPORTED\n4018 SCI_GETLINEINDENTATION _SCINTILLA.constants.SCI_GETLINEINDENTATION\n2127 SCI_GETLINEINDENTPOSITION _SCINTILLA.constants.SCI_GETLINEINDENTPOSITION\n2128 SCI_GETLINESTATE _SCINTILLA.constants.SCI_GETLINESTATE\n2093 @@ -286,6 +290,9 @@ SCI_GETSTATUS _SCINTILLA.constants.SCI_GETSTATUS\n2383 SCI_GETSTYLEAT _SCINTILLA.constants.SCI_GETSTYLEAT\n2010 SCI_GETSTYLEBITS _SCINTILLA.constants.SCI_GETSTYLEBITS\n2091 SCI_GETSTYLEBITSNEEDED _SCINTILLA.constants.SCI_GETSTYLEBITSNEEDED\n4011 +SCI_GETSUBSTYLEBASES _SCINTILLA.constants.SCI_GETSUBSTYLEBASES\n4026 +SCI_GETSUBSTYLESLENGTH _SCINTILLA.constants.SCI_GETSUBSTYLESLENGTH\n4022 +SCI_GETSUBSTYLESSTART _SCINTILLA.constants.SCI_GETSUBSTYLESSTART\n4021 SCI_GETTABINDENTS _SCINTILLA.constants.SCI_GETTABINDENTS\n2261 SCI_GETTABWIDTH _SCINTILLA.constants.SCI_GETTABWIDTH\n2121 SCI_GETTAG _SCINTILLA.constants.SCI_GETTAG\n2616 @@ -381,6 +388,7 @@ SCI_SETHOTSPOTACTIVEUNDERLINE _SCINTILLA.constants.SCI_SETHOTSPOTACTIVEUNDERLINE SCI_SETHOTSPOTSINGLELINE _SCINTILLA.constants.SCI_SETHOTSPOTSINGLELINE\n2421 SCI_SETHSCROLLBAR _SCINTILLA.constants.SCI_SETHSCROLLBAR\n2130 SCI_SETIDENTIFIER _SCINTILLA.constants.SCI_SETIDENTIFIER\n2622 +SCI_SETIDENTIFIERS _SCINTILLA.constants.SCI_SETIDENTIFIERS\n4024 SCI_SETINDENT _SCINTILLA.constants.SCI_SETINDENT\n2122 SCI_SETINDENTATIONGUIDES _SCINTILLA.constants.SCI_SETINDENTATIONGUIDES\n2132 SCI_SETINDICATORCURRENT _SCINTILLA.constants.SCI_SETINDICATORCURRENT\n2500 @@ -390,6 +398,7 @@ SCI_SETKEYWORDS _SCINTILLA.constants.SCI_SETKEYWORDS\n4005 SCI_SETLAYOUTCACHE _SCINTILLA.constants.SCI_SETLAYOUTCACHE\n2272 SCI_SETLEXER _SCINTILLA.constants.SCI_SETLEXER\n4001 SCI_SETLEXERLANGUAGE _SCINTILLA.constants.SCI_SETLEXERLANGUAGE\n4006 +SCI_SETLINEENDTYPESALLOWED _SCINTILLA.constants.SCI_SETLINEENDTYPESALLOWED\n2656 SCI_SETLINEINDENTATION _SCINTILLA.constants.SCI_SETLINEINDENTATION\n2126 SCI_SETLINESTATE _SCINTILLA.constants.SCI_SETLINESTATE\n2092 SCI_SETMAINSELECTION _SCINTILLA.constants.SCI_SETMAINSELECTION\n2574 @@ -619,6 +628,8 @@ SC_IV_LOOKFORWARD _SCINTILLA.constants.SC_IV_LOOKFORWARD\n2 SC_IV_NONE _SCINTILLA.constants.SC_IV_NONE\n0 SC_IV_REAL _SCINTILLA.constants.SC_IV_REAL\n1 SC_LASTSTEPINUNDOREDO _SCINTILLA.constants.SC_LASTSTEPINUNDOREDO\n256 +SC_LINE_END_TYPE_DEFAULT _SCINTILLA.constants.SC_LINE_END_TYPE_DEFAULT\n0 +SC_LINE_END_TYPE_UNICODE _SCINTILLA.constants.SC_LINE_END_TYPE_UNICODE\n1 SC_MARGINOPTION_NONE _SCINTILLA.constants.SC_MARGINOPTION_NONE\n0 SC_MARGINOPTION_SUBLINESELECT _SCINTILLA.constants.SC_MARGINOPTION_SUBLINESELECT\n1 SC_MARGIN_BACK _SCINTILLA.constants.SC_MARGIN_BACK\n2 @@ -667,6 +678,7 @@ SC_MARK_TCORNERCURVE _SCINTILLA.constants.SC_MARK_TCORNERCURVE\n17 SC_MARK_UNDERLINE _SCINTILLA.constants.SC_MARK_UNDERLINE\n29 SC_MARK_VLINE _SCINTILLA.constants.SC_MARK_VLINE\n9 SC_MASK_FOLDERS _SCINTILLA.constants.SC_MASK_FOLDERS\n-33554432 +SC_MAX_MARGIN _SCINTILLA.constants.SC_MAX_MARGIN\n4 SC_MODEVENTMASKALL _SCINTILLA.constants.SC_MODEVENTMASKALL\n1048575 SC_MOD_BEFOREDELETE _SCINTILLA.constants.SC_MOD_BEFOREDELETE\n2048 SC_MOD_BEFOREINSERT _SCINTILLA.constants.SC_MOD_BEFOREINSERT\n1024 @@ -879,7 +891,7 @@ caret_fore buffer.caret_fore (number)\nThe foreground color, in "0xBBGGRR" forma caret_line_back buffer.caret_line_back (number)\nThe background color, in "0xBBGGRR" format, of the line containing the\ncaret. caret_line_back_alpha buffer.caret_line_back_alpha (number)\nThe background alpha value, ranging from `0` (transparent) to `255`\n(opaque), of the caret line.\nThe default value is `256`, for no alpha. caret_line_visible buffer.caret_line_visible (bool)\nColor the background of the line containing the caret a different color.\nThe default value is `false`. -caret_line_visible_always buffer.caret_line_visible_always (bool)\nWhether or not the caret line is always visible, even when the window is\nnot in focus.\nThe default value is `false`, showing the caret line only when the window\nis in focus. +caret_line_visible_always buffer.caret_line_visible_always (bool)\nAlways show the caret line, even when the window is not in focus.\nThe default value is `false`, showing the line only when the window is in\nfocus. caret_period buffer.caret_period (number)\nThe time in milliseconds between caret blinks.\nA value of `0` stops blinking.\nThe default value is `500`. caret_sticky buffer.caret_sticky (number)\nThe preferred horizontal position of the caret when moving between lines.\n\n* `_SCINTILLA.constants.SC_CARETSTICKY_OFF` (0)\n Use the same position as on the previous line.\n* `_SCINTILLA.constants.SC_CARETSTICKY_ON` (1)\n Use the last position the caret was moved to via the mouse, left/right\n arrow keys, home/end keys, etc. Typing text does not affect the position.\n* `_SCINTILLA.constants.SC_CARETSTICKY_WHITESPACE` (2)\n Use the same position as on the previous line, but prior to any inserted\n indentation.\n\nThe default value is `0`. caret_style buffer.caret_style (number)\nThe style of caret to draw.\n\n* `_SCINTILLA.constants.CARETSTYLE_INVISIBLE` (0)\n No caret.\n* `_SCINTILLA.constants.CARETSTYLE_LINE` (1)\n A line caret.\n* `_SCINTILLA.constants.CARETSTYLE_BLOCK` (2)\n A block caret.\n\nThe default value is `1`. @@ -889,13 +901,13 @@ change_lexer_state buffer.change_lexer_state(buffer, start_pos, end_pos)\nTells char string.char(···)\nReceives zero or more integers. Returns a string with length equal to\nthe number of arguments, in which each character has the internal numerical\ncode equal to its corresponding argument.\n\nNumerical codes are not necessarily portable across platforms. char_at buffer.char_at (table, Read-only)\nTable of character bytes at positions in the buffer starting from zero. char_left buffer.char_left(buffer)\nMoves the caret left one character.\n@param buffer The global buffer. -char_left_extend buffer.char_left_extend(buffer)\nMoves the caret left one character, extending the selection to the new\nposition.\n@param buffer The global buffer. +char_left_extend buffer.char_left_extend(buffer)\nMoves the caret left one character, extending the selected text to the new\nposition.\n@param buffer The global buffer. char_left_rect_extend buffer.char_left_rect_extend(buffer)\nMoves the caret left one character, extending the rectangular selection to\nthe new position.\n@param buffer The global buffer. char_matches _M.textadept.editing.char_matches (table)\nMap of auto-paired characters like parentheses, brackets, braces, and quotes,\nwith language-specific auto-paired character maps assigned to a lexer name\nkey.\nThe ASCII values of opening characters are assigned to strings containing\ncomplement characters. The default auto-paired characters are "()", "[]",\n"{}", "''", and """".\n@see AUTOPAIR char_position_from_point buffer.char_position_from_point(buffer, x, y)\nReturns the character position closest to view coordinates *x* and *y*.\n@param buffer The global buffer.\n@param x The x-coordinate in the view to use.\n@param y The y-coordinate in the view to use.\n@return number char_position_from_point_close buffer.char_position_from_point_close(buffer, x, y)\nReturns the character position closest to view coordinates *x* and *y*, or\n`-1` if the point is outside the window or not close to any text.\n@param buffer The global buffer.\n@param x The x-coordinate in the view to use.\n@param y The y-coordinate in the view to use.\n@return number char_right buffer.char_right(buffer)\nMoves the caret right one character.\n@param buffer The global buffer. -char_right_extend buffer.char_right_extend(buffer)\nMoves the caret right one character, extending the selection to the new\nposition.\n@param buffer The global buffer. +char_right_extend buffer.char_right_extend(buffer)\nMoves the caret right one character, extending the selected text to the new\nposition.\n@param buffer The global buffer. char_right_rect_extend buffer.char_right_rect_extend(buffer)\nMoves the caret right one character, extending the rectangular selection to\nthe new position.\n@param buffer The global buffer. chdir lfs.chdir(path)\nChanges the current working directory to the given path.\n\nReturns true in case of success or nil plus an error string. check_global buffer.check_global(buffer)\nEnsures the buffer is the global one, `_G.buffer`, throwing an error\notherwise.\nThis function must be called in all buffer functions because only the global\nbuffer can be worked with.\n@param buffer The buffer to check.\n@see _G._G.buffer @@ -985,9 +997,9 @@ disconnect events.disconnect(event, id)\nRemoves handler ID *id*, returned by `e doc_line_from_visible buffer.doc_line_from_visible(buffer, display_line)\nReturns the actual line number of displayed line number *display_line*,\ntaking hidden lines into account.\nIf *display_line* is less than or equal to zero, returns `0`. If\n*display_line* is greater than or equal to the number of displayed lines,\nreturns `buffer.line_count`.\n@param buffer The global buffer.\n@param display_line The display line number to use.\n@return number docstatusbar_text gui.docstatusbar_text (string, Write-only)\nThe text displayed by the buffer statusbar. document_end buffer.document_end(buffer)\nMoves the caret to the end of the buffer.\n@param buffer The global buffer. -document_end_extend buffer.document_end_extend(buffer)\nMoves the caret to the end of the buffer, extending the selection to the new\nposition.\n@param buffer The global buffer. +document_end_extend buffer.document_end_extend(buffer)\nMoves the caret to the end of the buffer, extending the selected text to the\nnew position.\n@param buffer The global buffer. document_start buffer.document_start(buffer)\nMoves the caret to the beginning of the buffer.\n@param buffer The global buffer. -document_start_extend buffer.document_start_extend(buffer)\nMoves the caret to the beginning of the buffer, extending selection to the\nnew position.\n@param buffer The global buffer. +document_start_extend buffer.document_start_extend(buffer)\nMoves the caret to the beginning of the buffer, extending the selected text\nto the new position.\n@param buffer The global buffer. dofile _G.dofile([filename])\nOpens the named file and executes its contents as a Lua chunk. When\ncalled without arguments,\n`dofile` executes the contents of the standard input (`stdin`). Returns\nall values returned by the chunk. In case of errors, `dofile` propagates\nthe error to its caller (that is, `dofile` does not run in protected mode). dump string.dump(function)\nReturns a string containing a binary representation of the given\nfunction, so that a later `load` on this string returns a copy of the\nfunction (but with new upvalues). edge_colour buffer.edge_colour (number)\nThe color, in "0xBBGGRR" format, used for the long line marker. @@ -1062,7 +1074,7 @@ get_hotspot_active_back buffer.get_hotspot_active_back(buffer)\nReturns the nume get_hotspot_active_fore buffer.get_hotspot_active_fore(buffer)\nReturns the numeric foreground color for active hotspots.\n@param buffer The global buffer.\n@return number get_indent_amount lexer.get_indent_amount(line_number)\nReturns the amount of indentation the text on line number *line_number* has.\n@param line_number The line number to get the indent amount of.\n@return integer indent amount get_last_child buffer.get_last_child(buffer, start_line, level)\nReturns the line number of the last line after line number *start_line* whose\nfold level is greater than *level* or the level of *start_line* if *level* is\n`-1`.\n@param buffer The global buffer.\n@param start_line The line number in *buffer* of a header line.\n@param level The fold level, or `-1` for the level of *start_line*. -get_lexer buffer.get_lexer(buffer, current)\nReturns the name of the lexer used by the buffer, or the name of the lexer at\nthe current position in a multiple-language lexer if *current* is `true`.\n@param buffer The global buffer.\n@param current Whether or not to get the lexer at the current caret position\n in multi-language lexers. The default is `false` and returns the parent\n lexer. +get_lexer buffer.get_lexer(buffer, current)\nReturns the name of the lexer used by the buffer, or the name of the lexer\nunder the caret in a multiple-language lexer if *current* is `true`.\n@param buffer The global buffer.\n@param current Whether or not to get the lexer at the current caret position\n in multi-language lexers. The default is `false` and returns the parent\n lexer. get_line buffer.get_line(buffer, line)\nReturns the text on line number *line*, including end of line characters, and\nthe length of the line.\n@param buffer The global buffer.\n@param line The line number in *buffer* to use.\n@return string, number get_line_sel_end_position buffer.get_line_sel_end_position(buffer, line)\nReturns the position of the end of the selected text on line number *line*,\nor `-1`.\n@param buffer The global buffer.\n@param line The line number in *buffer* to use. get_line_sel_start_position buffer.get_line_sel_start_position(buffer, line)\nReturns the position of the beginning of the selected text on line number\n*line*, or `-1`.\n@param buffer The global buffer.\n@param line The line number in *buffer* to use. @@ -1098,7 +1110,7 @@ goto_view gui.goto_view(n, relative)\nGoes to view number *n*.\nIf *relative* is grab_focus buffer.grab_focus(buffer)\nSets the focus to the buffer's view.\n@param buffer The global buffer. graph lexer.graph (pattern)\nA pattern matching any graphical character (`!` to `~`). grow_selection _M.textadept.editing.grow_selection(amount)\nGrows the selected text by *amount* number of characters on either end.\n@param amount The number of characters to grow the selection by on either\n end. -gsub string.gsub(s, pattern, repl [, n])\nReturns a copy of `s` in which all (or the first `n`, if given)\noccurrences of the `pattern` have been replaced by a replacement string\nspecified by `repl`, which can be a string, a table, or a function. `gsub`\nalso returns, as its second value, the total number of matches that occurred.\nThe name `gsub` comes from "Global SUBstitution".\n\nIf `repl` is a string, then its value is used for replacement. The character\n`%` works as an escape character: any sequence in `repl` of the form `%d`,\nwith `d` between 1 and 9, stands for the value of the `d`-th captured\nsubstring (see below). The sequence `%0` stands for the whole match. The\nsequence `%%` stands for a single `%`.\n\nIf `repl` is a table, then the table is queried for every match, using\nthe first capture as the key; if the pattern specifies no captures, then\nthe whole match is used as the key.\nIf `repl` is a function, then this function is called every time a match\noccurs, with all captured substrings passed as arguments, in order; if\nthe pattern specifies no captures, then the whole match is passed as a\nsole argument.\n\nIf the value returned by the table query or by the function call is a\nstring or a number, then it is used as the replacement string; otherwise,\nif it is false or nil, then there is no replacement (that is, the original\nmatch is kept in the string).\n\nHere are some examples:\n\n x = string.gsub("hello world", "(%w+)", "%1 %1")\n --> x="hello hello world world"\n x = string.gsub("hello world", "%w+", "%0 %0", 1)\n --> x="hello hello world"\n x = string.gsub("hello world from Lua", "(%w+)%s*(%w+)", "%2 %1")\n --> x="world hello Lua from"\n x = string.gsub("home = $HOME, user = $USER", "%$(%w+)", os.getenv)\n --> x="home = /home/roberto, user = roberto"\n x = string.gsub("4+5 = $return 4+5$", "%$(.-)%$", function (s)\n return load(s)()\n end)\n --> x="4+5 = 9"\n local t = {name="lua", version="5.2"}\n x = string.gsub("$name-$version.tar.gz", "%$(%w+)", t)\n --> x="lua-5.2.tar.gz" +gsub string.gsub(s, pattern, repl [, n])\nReturns a copy of `s` in which all (or the first `n`, if given)\noccurrences of the `pattern` have been replaced by a replacement string\nspecified by `repl`, which can be a string, a table, or a function. `gsub`\nalso returns, as its second value, the total number of matches that occurred.\nThe name `gsub` comes from "Global SUBstitution".\n\nIf `repl` is a string, then its value is used for replacement. The character\n`%` works as an escape character: any sequence in `repl` of the form `%d`,\nwith `d` between 1 and 9, stands for the value of the `d`-th captured\nsubstring. The sequence `%0` stands for the whole match. The sequence `%%`\nstands for a single `%`.\n\nIf `repl` is a table, then the table is queried for every match, using\nthe first capture as the key.\n\nIf `repl` is a function, then this function is called every time a match\noccurs, with all captured substrings passed as arguments, in order.\n\nIn any case, if the pattern specifies no captures, then it behaves as if the\nwhole pattern was inside a capture.\n\nIf the value returned by the table query or by the function call is a\nstring or a number, then it is used as the replacement string; otherwise,\nif it is false or nil, then there is no replacement (that is, the original\nmatch is kept in the string).\n\nHere are some examples:\n\n x = string.gsub("hello world", "(%w+)", "%1 %1")\n --> x="hello hello world world"\n x = string.gsub("hello world", "%w+", "%0 %0", 1)\n --> x="hello hello world"\n x = string.gsub("hello world from Lua", "(%w+)%s*(%w+)", "%2 %1")\n --> x="world hello Lua from"\n x = string.gsub("home = $HOME, user = $USER", "%$(%w+)", os.getenv)\n --> x="home = /home/roberto, user = roberto"\n x = string.gsub("4+5 = $return 4+5$", "%$(.-)%$", function (s)\n return load(s)()\n end)\n --> x="4+5 = 9"\n local t = {name="lua", version="5.2"}\n x = string.gsub("$name-$version.tar.gz", "%$(%w+)", t)\n --> x="lua-5.2.tar.gz" gui _G.gui (module)\nUtilities for interacting with Textadept's user interface. h_scroll_bar buffer.h_scroll_bar (bool)\nDisplay the horizontal scroll bar.\nThe default value is `true`. handle_clear _M.textadept.adeptsense.handle_clear(sense)\nCalled when clearing the Adeptsense.\nThis function should be replaced with your own if you have any persistant\nobjects that need to be deleted.\n@param sense The Adeptsense returned by `adeptsense.new()`. @@ -1111,11 +1123,11 @@ highlight_guide buffer.highlight_guide (number)\nThe indentation guide column nu highlight_word _M.textadept.editing.highlight_word()\nHighlights all occurrences of the selected text or the current word and adds\nmarkers to the lines they are on.\n@see buffer.word_chars home buffer.home(buffer)\nMoves the caret to the beginning of the current line.\n@param buffer The global buffer. home_display buffer.home_display(buffer)\nMoves the caret to the beginning of the current wrapped line.\n@param buffer The global buffer. -home_display_extend buffer.home_display_extend(buffer)\nMoves the caret to the beginning of the current wrapped line, extending the\nselection to the new position.\n@param buffer The global buffer. -home_extend buffer.home_extend(buffer)\nMoves the caret to the beginning of the current line, extending selection to\nthe new position.\n@param buffer The global buffer. +home_display_extend buffer.home_display_extend(buffer)\nMoves the caret to the beginning of the current wrapped line, extending the\nselected text to the new position.\n@param buffer The global buffer. +home_extend buffer.home_extend(buffer)\nMoves the caret to the beginning of the current line, extending the selected\ntext to the new position.\n@param buffer The global buffer. home_rect_extend buffer.home_rect_extend(buffer)\nMoves the caret to beginning of the current line, extending the rectangular\nselection to the new position.\n@param buffer The global buffer. home_wrap buffer.home_wrap(buffer)\nMoves the caret to beginning of the current wrapped line, or if already\nthere, to the beginning of the actual line.\n@param buffer The global buffer. -home_wrap_extend buffer.home_wrap_extend(buffer)\nLike `buffer:home_wrap()`, but extends the selection to the new position.\n@param buffer The global buffer. +home_wrap_extend buffer.home_wrap_extend(buffer)\nLike `buffer:home_wrap()`, but extends the selected text to the new position.\n@param buffer The global buffer. hotspot_active_underline buffer.hotspot_active_underline (bool)\nUnderline active hotspots.\nThe default value is `true`. hotspot_single_line buffer.hotspot_single_line (bool)\nLimit hotspots to a single line.\nThe default value is `true`. huge math.huge (number)\nThe value `HUGE_VAL`, a value larger than or equal to any other numerical\nvalue. @@ -1171,17 +1183,17 @@ line_count buffer.line_count (number, Read-only)\nThe number of lines in the buf line_cut buffer.line_cut(buffer)\nCuts the current line to the clipboard.\n@param buffer The global buffer. line_delete buffer.line_delete(buffer)\nDeletes the current line.\n@param buffer The global buffer. line_down buffer.line_down(buffer)\nMoves the caret down one line.\n@param buffer The global buffer. -line_down_extend buffer.line_down_extend(buffer)\nMoves the caret down one line, extending the selection to the new position.\n@param buffer The global buffer. +line_down_extend buffer.line_down_extend(buffer)\nMoves the caret down one line, extending the selected text to the new\nposition.\n@param buffer The global buffer. line_down_rect_extend buffer.line_down_rect_extend(buffer)\nMoves the caret down one line, extending the rectangular selection to the new\nposition.\n@param buffer The global buffer. line_duplicate buffer.line_duplicate(buffer)\nDuplicates the current line below the line.\n@param buffer The global buffer. line_end buffer.line_end(buffer)\nMoves the caret to the end of the current line.\n@param buffer The global buffer. line_end_display buffer.line_end_display(buffer)\nMoves the caret to the end of the current wrapped line.\n@param buffer The global buffer. -line_end_display_extend buffer.line_end_display_extend(buffer)\nMoves the caret to the end of the current wrapped line, extending the\nselection to the new position.\n@param buffer The global buffer. -line_end_extend buffer.line_end_extend(buffer)\nMoves the caret to the end of the current line, extending the selection to\nthe new position.\n@param buffer The global buffer. +line_end_display_extend buffer.line_end_display_extend(buffer)\nMoves the caret to the end of the current wrapped line, extending the\nselected text to the new position.\n@param buffer The global buffer. +line_end_extend buffer.line_end_extend(buffer)\nMoves the caret to the end of the current line, extending the selected text\nto the new position.\n@param buffer The global buffer. line_end_position buffer.line_end_position (table, Read-only)\nTable of positions at the ends of lines, but before any end of line\ncharacters, for line numbers starting from zero. line_end_rect_extend buffer.line_end_rect_extend(buffer)\nMoves the caret to the end of the current line, extending the rectangular\nselection to the new position.\n@param buffer The global buffer. line_end_wrap buffer.line_end_wrap(buffer)\nMoves the caret to the end of the current wrapped line, or if already there,\nto the end of the actual line.\n@param buffer The global buffer. -line_end_wrap_extend buffer.line_end_wrap_extend(buffer)\nLike `buffer:line_end_wrap()`, but extends the selection to the new position.\n@param buffer The global buffer. +line_end_wrap_extend buffer.line_end_wrap_extend(buffer)\nLike `buffer:line_end_wrap()`, but extends the selected text to the new\nposition.\n@param buffer The global buffer. line_from_position buffer.line_from_position(buffer, pos)\nReturns the line number containing position *pos*.\nReturns `0` if *pos* is less than 0 or `buffer.line_count` if *pos* is\ngreater than `buffer.length`.\n@param buffer The global buffer.\n@param pos The position in *buffer* to get the line number of.\n@return number line_indent_position buffer.line_indent_position (table, Read-only)\nTable of positions at the ends of line indentation for line numbers\nstarting from zero. line_indentation buffer.line_indentation (table)\nTable of line indentation amounts, measured in character columns, for line\nnumbers starting from zero. @@ -1192,7 +1204,7 @@ line_scroll_up buffer.line_scroll_up(buffer)\nScroll the buffer up one line, kee line_state buffer.line_state (table)\nTable of integer line states for line numbers starting from zero.\nLine states are used for storing longer lived parse states per line. They\nare available in addition to the 8 bits of styling information per\ncharacter. line_transpose buffer.line_transpose(buffer)\nSwitch the current line with the previous one.\n@param buffer The global buffer. line_up buffer.line_up(buffer)\nMoves the caret up one line.\n@param buffer The global buffer. -line_up_extend buffer.line_up_extend(buffer)\nMoves the caret up one line, extending the selection to the new position.\n@param buffer The global buffer. +line_up_extend buffer.line_up_extend(buffer)\nMoves the caret up one line, extending the selected text to the new position.\n@param buffer The global buffer. line_up_rect_extend buffer.line_up_rect_extend(buffer)\nMoves the caret up one line, extending the rectangular selection to the new\nposition.\n@param buffer The global buffer. line_visible buffer.line_visible (table, Read-only)\nTable of flags indicating whether or not lines are visible for line numbers\nstarting from zero. lines file:lines(···)\nReturns an iterator function that, each time it is called, reads the file\naccording to the given formats. When no format is given, uses "*l" as a\ndefault. As an example, the construction\n\n for c in file:lines(1) do <em>body</em> end\n\nwill iterate over all characters of the file, starting at the current\nposition. Unlike `io.lines`, this function does not close the file when the\nloop ends.\n\nIn case of errors this function raises the error, instead of returning an\nerror code. @@ -1300,16 +1312,16 @@ overtype buffer.overtype (bool)\nEnable overtype mode, where typed characters ov pack table.pack(···)\nReturns a new table with all parameters stored into keys 1, 2, etc. and with\na field "`n`" with the total number of parameters. Note that the resulting\ntable may not be a sequence. package _G.package (module)\nLua package module. page_down buffer.page_down(buffer)\nMoves the caret one page down.\n@param buffer The global buffer. -page_down_extend buffer.page_down_extend(buffer)\nMoves the caret one page down, extending the selection to the new position.\n@param buffer The global buffer. +page_down_extend buffer.page_down_extend(buffer)\nMoves the caret one page down, extending the selected text to the new\nposition.\n@param buffer The global buffer. page_down_rect_extend buffer.page_down_rect_extend(buffer)\nMoves the caret one page down, extending the rectangular selection to the new\nposition.\n@param buffer The global buffer. page_up buffer.page_up(buffer)\nMoves the caret one page up.\n@param buffer The global buffer. -page_up_extend buffer.page_up_extend(buffer)\nMoves the caret one page up, extending the selection to the new position.\n@param buffer The global buffer. +page_up_extend buffer.page_up_extend(buffer)\nMoves the caret one page up, extending the selected text to the new position.\n@param buffer The global buffer. page_up_rect_extend buffer.page_up_rect_extend(buffer)\nMoves the caret one page up, extending the rectangular selection to the new\nposition.\n@param buffer The global buffer. pairs _G.pairs(t)\nIf `t` has a metamethod `__pairs`, calls it with `t` as argument and returns\nthe first three results from the call.\n\nOtherwise, returns three values: the `next` function, the table `t`, and nil,\nso that the construction\n\n for k,v in pairs(t) do *body* end\n\nwill iterate over all key–value pairs of table `t`.\n\nSee function `next` for the caveats of modifying the table during its\ntraversal. para_down buffer.para_down(buffer)\nMoves the caret one paragraph down.\nParagraphs are surrounded by one or more blank lines.\n@param buffer The global buffer. -para_down_extend buffer.para_down_extend(buffer)\nMoves the caret one paragraph down, extending the selection to the new\nposition.\nParagraphs are surrounded by one or more blank lines.\n@param buffer The global buffer. +para_down_extend buffer.para_down_extend(buffer)\nMoves the caret one paragraph down, extending the selected text to the new\nposition.\nParagraphs are surrounded by one or more blank lines.\n@param buffer The global buffer. para_up buffer.para_up(buffer)\nMoves the caret one paragraph up.\nParagraphs are surrounded by one or more blank lines.\n@param buffer The global buffer. -para_up_extend buffer.para_up_extend(buffer)\nMoves the caret one paragraph up, extending the selection to the new\nposition.\nParagraphs are surrounded by one or more blank lines.\n@param buffer The global buffer. +para_up_extend buffer.para_up_extend(buffer)\nMoves the caret one paragraph up, extending the selected text to the new\nposition.\nParagraphs are surrounded by one or more blank lines.\n@param buffer The global buffer. paste buffer.paste(buffer)\nPastes the contents of the clipboard into the buffer, replacing the selected\ntext depending on `buffer.multi_paste`.\n@param buffer The global buffer. path package.path (string)\nThe path used by `require` to search for a Lua loader.\nAt start-up, Lua initializes this variable with the value of the\nenvironment variable `LUA_PATH_5_2` or the environment variable `LUA_PATH`\nor with a default path defined in `luaconf.h`, if those environment\nvariables are not defined. Any "`;;`" in the value of the environment\nvariable is replaced by the default path. patterns _M.textadept.mime_types.patterns (table)\nMap of first-line patterns to their associated lexers.\nIf a file type is not recognized by shebang words, each pattern is matched\nagainst the first line in the file. @@ -1390,7 +1402,7 @@ resume coroutine.resume(co [, val1, ···])\nStarts or continues the execution reverse string.reverse(s)\nReturns a string that is the string `s` reversed. rgba_image_height buffer.rgba_image_height (number)\nThe height for an RGBA image to be defined using\n`buffer:marker_define_rgba_image()`. rgba_image_scale buffer.rgba_image_scale (number)\nThe scale factor in percent for an RGBA image to be defined using\n`buffer:marker_define_rgba_image()`.\nThis is useful on OSX with a retina display where each display unit is 2\npixels: use a factor of `200` so that each image pixel is dsplayed using a\nscreen pixel. The default scale, `100`, will stretch each image pixel to\ncover 4 screen pixels on a retina display. -rgba_image_width buffer.rgba_image_width (number)\nThe width for an RGBA image to be defined using\n`buffer:marker_define_rgba_image()`. +rgba_image_width buffer.rgba_image_width (number)\nThe width for an RGBA image to be defined using\n`buffer:marker_define_rgba_image()` and\n`buffer:register_rgba_image()`. rhtml _G.keys.rhtml (table)\nContainer for RHTML-specific key bindings. rhtml _G.snippets.rhtml (table)\nContainer for RHTML-specific snippets. rhtml _M.rhtml (module)\nThe RHTML module.\nIt provides utilities for editing RHTML. @@ -1415,8 +1427,8 @@ scroll_to_start buffer.scroll_to_start(buffer)\nScroll to the beginning of the b scroll_width buffer.scroll_width (number)\nThe assumed buffer width for horizontal scrolling purposes.\nFor performance, the view does not measure the display width of the buffer\nto determine the properties of the horizontal scroll bar, but uses an\nassumed width instead. To ensure the width of the currently visible lines\ncan be scrolled use\n`buffer.scroll_width_tracking`.\nThe default value is `2000`. scroll_width_tracking buffer.scroll_width_tracking (bool)\nSet the scroll width to the maximum width of a displayed line beyond\n`buffer.scroll_width`.\nThe default value is `false`. search_anchor buffer.search_anchor(buffer)\nSets the current position to anchor subsequent searches with\n`buffer:search_next()` and `buffer:search_prev()`.\n@param buffer The global buffer. -search_flags buffer.search_flags (number)\nThe bit-mask of search flags used by\n`buffer:search_in_target()`.\n\n* `_SCINTILLA.constants.SCFIND_WHOLEWORD` (2)\n Match text surrounded by non-word characters.\n* `_SCINTILLA.constants.SCFIND_MATCHCASE` (4)\n Match text case sensitively.\n* `_SCINTILLA.constants.SCFIND_WORDSTART` (0x00100000)\n Match text when the previous character is a non-word character.\n* `_SCINTILLA.constants.SCFIND_REGEXP` (0x00200000)\n Interpret the search string as a regular expression.\n* `_SCINTILLA.constants.SCFIND_POSIX` (0x00400000)\n Interpret '(' and ')' as tags instead of "\\(" and "\\)" in a regular\n expression.\n\nThe default value is `0`. -search_in_target buffer.search_in_target(buffer, text)\nSearches for the first occurrence of string *text* in the target range\nbounded by `buffer.target_start` and `buffer.target_end` using search flags\n`buffer.search_flags` and, if found, sets the new target range to that\noccurrence, returning its position or `-1` otherwise.\n@param buffer The global buffer.\n@param text The text to search the target range for.\n@return number +search_flags buffer.search_flags (number)\nThe bit-mask of search flags used by\n`buffer:search_in_target()`.\n\n* `_SCINTILLA.constants.SCFIND_WHOLEWORD` (2)\n Match text surrounded by non-word characters.\n* `_SCINTILLA.constants.SCFIND_MATCHCASE` (4)\n Match text case sensitively.\n* `_SCINTILLA.constants.SCFIND_WORDSTART` (0x00100000)\n Match text when the previous character is a non-word character.\n* `_SCINTILLA.constants.SCFIND_REGEXP` (0x00200000)\n Interpret the search string as a regular expression.\n* `_SCINTILLA.constants.SCFIND_POSIX` (0x00400000)\n Interpret '(' and ')' as tags instead of "\\(" and "\\)" in a regular\n expression.\n\nThe default value is `0`.\n\nRegular expression characters recognized are:\n\n* `.`\n Matches any character.\n* `[set]`\n Matches any character in *set*, including ranges (e.g. `[A-Za-z]`).\n* `[^set]`\n Matches the complement of *set*.\n* `*`\n Matches zero or more of the previous match.\n* `+`\n Matches one or more of the previous match.\n* `\<`\n Matches the beginning of a word.\n `buffer.word_chars` defines word characters.\n* `\>`\n Matches the end of a word.\n `buffer.word_chars` defines word characters.\n* `^`\n Matches the start of a line unless inside a set.\n* `$`\n Matches the end of a line unless inside a set.\n* `\(`\n The beginning of a tagged matching region.\n* `\)`\n The end of a tagged matching region.\n* `\n`\n The matched text of the *n*th tagged region. In replacement text, "\0" is\n all matched text.\n* `\x`\n Represents character *x*, ignoring any special meaning it may have by\n itself. +search_in_target buffer.search_in_target(buffer, text)\nSearches for the first occurrence of string *text* in the target range\nbounded by `buffer.target_start` and `buffer.target_end` using search flags\n`buffer.search_flags` and, if found, sets the new target range to that\noccurrence, returning its position or `-1` otherwise.\n@param buffer The global buffer.\n@param text The text to search the target range for.\n@return number\n@see search_flags search_next buffer.search_next(buffer, flags, text)\nSearches for and selects the first occurrence of string *text* starting at\nthe search anchor using search flags *flags*, returning the position of the\noccurrence or `-1`.\nSelected text is not scrolled into view.\n@param buffer The global buffer.\n@param flags The search flags to use. See `buffer.search_flags`.\n@param text The text to search for.\n@return number\n@see search_flags search_prev buffer.search_prev(buffer, flags, text)\nSearches for and selects the last occurrence of string *text* before the\nsearch anchor using search flags *flags*, returning the position of the\noccurrence or `-1`.\n@param buffer The global buffer.\n@param flags The search flags to use. See `buffer.search_flags`.\n@param text The text to search for.\n@return number\n@see search_flags searchers package.searchers (table)\nA table used by `require` to control how to load modules.\nEach entry in this table is a *searcher function*. When looking for a\nmodule, `require` calls each of these searchers in ascending order, with\nthe module name (the argument given to `require`) as its sole parameter.\nThe function can return another function (the module *loader*) plus an\nextra value that will be passed to that loader, or a string explaining why\nit did not find that module (or nil if it has nothing to say).\nLua initializes this table with four functions.\nThe first searcher simply looks for a loader in the `package.preload`\ntable.\nThe second searcher looks for a loader as a Lua library, using the path\nstored at `package.path`. The search is done as described in function\n`package.searchpath`.\nThe third searcher looks for a loader as a C library, using the path given\nby the variable `package.cpath`. Again, the search is done as described in\nfunction `package.searchpath`. For instance, if the C path is the string\n "./?.so;./?.dll;/usr/local/?/init.so"\nthe searcher for module `foo` will try to open the files `./foo.so`,\n`./foo.dll`, and `/usr/local/foo/init.so`, in that order. Once it finds\na C library, this searcher first uses a dynamic link facility to link the\napplication with the library. Then it tries to find a C function inside the\nlibrary to be used as the loader. The name of this C function is the string\n"`luaopen_`" concatenated with a copy of the module name where each dot\nis replaced by an underscore. Moreover, if the module name has a hyphen,\nits prefix up to (and including) the first hyphen is removed. For instance,\nif the module name is `a.v1-b.c`, the function name will be `luaopen_b_c`.\nThe fourth searcher tries an *all-in-one loader*. It searches the C\npath for a library for the root name of the given module. For instance,\nwhen requiring `a.b.c`, it will search for a C library for `a`. If found,\nit looks into it for an open function for the submodule; in our example,\nthat would be `luaopen_a_b_c`. With this facility, a package can pack\nseveral C submodules into one single library, with each submodule keeping\nits original open function.\nAll searchers except the first one (preload) return as the extra value the\nfile name where the module was found, as returned by `package.searchpath`.\nThe first searcher returns no extra value. @@ -1526,9 +1538,9 @@ stdin io.stdin (file)\nStandard in. stdout io.stdout (file)\nStandard out. string _G.string (module)\nLua string module. stuttered_page_down buffer.stuttered_page_down(buffer)\nMoves the caret to the bottom of the page, or if already there, one page\ndown.\n@param buffer The global buffer. -stuttered_page_down_extend buffer.stuttered_page_down_extend(buffer)\nLike `buffer:stuttered_page_down()`, but extends the selection to the new\nposition.\n@param buffer The global buffer. +stuttered_page_down_extend buffer.stuttered_page_down_extend(buffer)\nLike `buffer:stuttered_page_down()`, but extends the selected text to the new\nposition.\n@param buffer The global buffer. stuttered_page_up buffer.stuttered_page_up(buffer)\nMoves the caret to the top of the page, or if already there, one page up.\n@param buffer The global buffer. -stuttered_page_up_extend buffer.stuttered_page_up_extend(buffer)\nLike `buffer:stuttered_page_up()`, but extends the selection to the new\nposition.\n@param buffer The global buffer. +stuttered_page_up_extend buffer.stuttered_page_up_extend(buffer)\nLike `buffer:stuttered_page_up()`, but extends the selected text to the new\nposition.\n@param buffer The global buffer. style lexer.style(style_table)\nCreates and returns a Scintilla style from the given table of style\nproperties.\n@param style_table A table of style properties:\n * `font` (string) The name of the font the style uses.\n * `size` (number) The size of the font the style uses.\n * `bold` (bool) Whether or not the font face is bold.\n * `italic` (bool) Whether or not the font face is italic.\n * `underline` (bool) Whether or not the font face is underlined.\n * `fore` (number) The foreground `color` of the font face.\n * `back` (number) The background `color` of the font face.\n * `eolfilled` (bool) Whether or not the background color extends to the end\n of the line.\n * `case` (number) The case of the font (1 = upper, 2 = lower, 0 = normal).\n * `visible` (bool) Whether or not the text is visible.\n * `changeable` (bool) Whether the text changable or read-only.\n * `hotspot` (bool) Whether or not the text is clickable.\n@usage local style_bold_italic = style{bold = true, italic = true}\n@usage local style_grey = style{fore = l.colors.grey}\n@return style table\n@see color style_at buffer.style_at (table, Read-only)\nTable of style bytes at positions in the buffer starting from zero. style_back buffer.style_back (table)\nTable of background colors, in "0xBBGGRR" format, for style numbers from\n`0` to `255`. @@ -1640,11 +1652,11 @@ user_list_show buffer.user_list_show(buffer, list_type, item_list)\nDisplays a l v_scroll_bar buffer.v_scroll_bar (bool)\nDisplay the vertical scroll bar.\nThe default value is `true`. vc_home buffer.vc_home(buffer)\nMoves the caret to the first visible character on the current line, or if\nalready there, to the beginning of the current line.\n@param buffer The global buffer. vc_home_display buffer.vc_home_display(buffer)\nMoves the caret to the first visible character on the current wrapped line,\nor if already there, to the beginning of the current wrapped line.\n@param buffer The global buffer. -vc_home_display_extend buffer.vc_home_display_extend(buffer)\nLike `buffer:vc_home_display()`, but extends the selection to the new\nposition.\n@param buffer The global buffer. -vc_home_extend buffer.vc_home_extend(buffer)\nLike `buffer:vc_home()`, but extends the selection to the new position.\n@param buffer The global buffer. +vc_home_display_extend buffer.vc_home_display_extend(buffer)\nLike `buffer:vc_home_display()`, but extends the selected text to the new\nposition.\n@param buffer The global buffer. +vc_home_extend buffer.vc_home_extend(buffer)\nLike `buffer:vc_home()`, but extends the selected text to the new position.\n@param buffer The global buffer. vc_home_rect_extend buffer.vc_home_rect_extend(buffer)\nLike `buffer:vc_home()`, but extends the rectangular selection to the new\nposition.\n@param buffer The global buffer. vc_home_wrap buffer.vc_home_wrap(buffer)\nMoves the caret to the first visible character on the wrapped line, or if\nalready there, to the beginning of the actual line.\n@param buffer The global buffer. -vc_home_wrap_extend buffer.vc_home_wrap_extend(buffer)\nLike `buffer:vc_home_wrap()`, but extends the selection to the new position.\n@param buffer The global buffer. +vc_home_wrap_extend buffer.vc_home_wrap_extend(buffer)\nLike `buffer:vc_home_wrap()`, but extends the selected text to the new\nposition.\n@param buffer The global buffer. version lpeg.version()\nReturns a string with the running version of LPeg. vertical_centre_caret buffer.vertical_centre_caret(buffer)\nCenters current line in the view.\n@param buffer The global buffer. view _G.view (module)\nA Textadept view object. @@ -1663,17 +1675,17 @@ word_chars buffer.word_chars (string)\nThe set of characters considered to be wo word_end_position buffer.word_end_position(buffer, pos, only_word_chars)\nReturns the position of the end of the word at position *pos*.\n`buffer.word_chars` contains word characters. If *pos* has a non-word\ncharacter to its right and *only_word_chars* is `false`, returns the position\nof the first 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. word_left buffer.word_left(buffer)\nMoves the caret left one word.\n`buffer.word_chars` contains word characters.\n@param buffer The global buffer. word_left_end buffer.word_left_end(buffer)\nMoves the caret left one word, positioning the caret at the end of the\nprevious word.\n`buffer.word_chars` contains word characters.\n@param buffer The global buffer. -word_left_end_extend buffer.word_left_end_extend(buffer)\nLike `buffer:word_left_end()`, but extends the selection to the new position.\n@param buffer The global buffer. -word_left_extend buffer.word_left_extend(buffer)\nMoves the caret left one word, extending the selection to the new position.\n`buffer.word_chars` contains word characters.\n@param buffer The global buffer. +word_left_end_extend buffer.word_left_end_extend(buffer)\nLike `buffer:word_left_end()`, but extends the selected text to the new\nposition.\n@param buffer The global buffer. +word_left_extend buffer.word_left_extend(buffer)\nMoves the caret left one word, extending the selected text to the new\nposition.\n`buffer.word_chars` contains word characters.\n@param buffer The global buffer. word_match lexer.word_match(words, word_chars, case_insensitive)\nCreates and returns a pattern that matches any word in the set *words*\ncase-sensitively, unless *case_insensitive* is `true`, with the set of word\ncharacters being alphanumerics, underscores, and all of the characters in\n*word_chars*.\nThis is a convenience function for simplifying a set of ordered choice word\npatterns.\n@param words A table of words.\n@param word_chars Optional string of additional characters considered to be\n part of a word. By default, word characters are alphanumerics and\n underscores ("%w_" in Lua). This parameter may be `nil` or the empty string\n to indicate no additional word characters.\n@param case_insensitive Optional boolean flag indicating whether or not the\n word match is case-insensitive. The default is `false`.\n@usage local keyword = token(l.KEYWORD, word_match{'foo', 'bar', 'baz'})\n@usage local keyword = token(l.KEYWORD, word_match({'foo-bar', 'foo-baz',\n 'bar-foo', 'bar-baz', 'baz-foo', 'baz-bar'}, '-', true))\n@return pattern word_part_left buffer.word_part_left(buffer)\nMoves to the previous underscore or change in capitalization within the\ncurrent word.\n`buffer.word_chars` contains word characters.\n@param buffer The global buffer. -word_part_left_extend buffer.word_part_left_extend(buffer)\nMoves to the previous underscore or change in capitalization within the\ncurrent word, extending the selection to the new position.\n`buffer.word_chars` contains word characters.\n@param buffer The global buffer. +word_part_left_extend buffer.word_part_left_extend(buffer)\nMoves to the previous underscore or change in capitalization within the\ncurrent word, extending the selected text to the new position.\n`buffer.word_chars` contains word characters.\n@param buffer The global buffer. word_part_right buffer.word_part_right(buffer)\nMoves to the next underscore or change in capitalization within the current\nword.\n`buffer.word_chars` contains word characters.\n@param buffer The global buffer. -word_part_right_extend buffer.word_part_right_extend(buffer)\nMoves to the next underscore or change in capitalization within the current\nword, extending the selection to the new position.\n`buffer.word_chars` contains word characters.\n@param buffer The global buffer. +word_part_right_extend buffer.word_part_right_extend(buffer)\nMoves to the next underscore or change in capitalization within the current\nword, extending the selected text to the new position.\n`buffer.word_chars` contains word characters.\n@param buffer The global buffer. word_right buffer.word_right(buffer)\nMoves the caret right one word.\n`buffer.word_chars` contains word characters.\n@param buffer The global buffer. word_right_end buffer.word_right_end(buffer)\nMoves the caret right one word, positioning the cursor at the end of the\ncurrent word.\n`buffer.word_chars` contains word characters.\n@param buffer The global buffer. -word_right_end_extend buffer.word_right_end_extend(buffer)\nLike `buffer:word_right_end()`, but extends the selection to the new\nposition.\n@param buffer The global buffer. -word_right_extend buffer.word_right_extend(buffer)\nMoves the caret right one word, extending the selection to the new position.\n`buffer.word_chars` contains word characters.\n@param buffer The global buffer. +word_right_end_extend buffer.word_right_end_extend(buffer)\nLike `buffer:word_right_end()`, but extends the selected text to the new\nposition.\n@param buffer The global buffer. +word_right_extend buffer.word_right_extend(buffer)\nMoves the caret right one word, extending the selected text to the new\nposition.\n`buffer.word_chars` contains word characters.\n@param buffer The global buffer. 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 diff --git a/modules/lua/tags b/modules/lua/tags index 09da49d6..e2bb0b0e 100644 --- a/modules/lua/tags +++ b/modules/lua/tags @@ -163,6 +163,7 @@ SCI_CALLTIPSETFORE _ 0;" F class:_SCINTILLA.constants SCI_CALLTIPSETFOREHLT _ 0;" F class:_SCINTILLA.constants SCI_CALLTIPSETPOSITION _ 0;" F class:_SCINTILLA.constants SCI_CALLTIPUSESTYLE _ 0;" F class:_SCINTILLA.constants +SCI_DISTANCETOSECONDARYSTYLES _ 0;" F class:_SCINTILLA.constants SCI_GETADDITIONALCARETFORE _ 0;" F class:_SCINTILLA.constants SCI_GETADDITIONALCARETSBLINK _ 0;" F class:_SCINTILLA.constants SCI_GETADDITIONALCARETSVISIBLE _ 0;" F class:_SCINTILLA.constants @@ -222,6 +223,9 @@ SCI_GETLEXER _ 0;" F class:_SCINTILLA.constants SCI_GETLEXERLANGUAGE _ 0;" F class:_SCINTILLA.constants SCI_GETLINECOUNT _ 0;" F class:_SCINTILLA.constants SCI_GETLINEENDPOSITION _ 0;" F class:_SCINTILLA.constants +SCI_GETLINEENDTYPESACTIVE _ 0;" F class:_SCINTILLA.constants +SCI_GETLINEENDTYPESALLOWED _ 0;" F class:_SCINTILLA.constants +SCI_GETLINEENDTYPESSUPPORTED _ 0;" F class:_SCINTILLA.constants SCI_GETLINEINDENTATION _ 0;" F class:_SCINTILLA.constants SCI_GETLINEINDENTPOSITION _ 0;" F class:_SCINTILLA.constants SCI_GETLINESTATE _ 0;" F class:_SCINTILLA.constants @@ -278,6 +282,9 @@ SCI_GETSTATUS _ 0;" F class:_SCINTILLA.constants SCI_GETSTYLEAT _ 0;" F class:_SCINTILLA.constants SCI_GETSTYLEBITS _ 0;" F class:_SCINTILLA.constants SCI_GETSTYLEBITSNEEDED _ 0;" F class:_SCINTILLA.constants +SCI_GETSUBSTYLEBASES _ 0;" F class:_SCINTILLA.constants +SCI_GETSUBSTYLESLENGTH _ 0;" F class:_SCINTILLA.constants +SCI_GETSUBSTYLESSTART _ 0;" F class:_SCINTILLA.constants SCI_GETTABINDENTS _ 0;" F class:_SCINTILLA.constants SCI_GETTABWIDTH _ 0;" F class:_SCINTILLA.constants SCI_GETTAG _ 0;" F class:_SCINTILLA.constants @@ -373,6 +380,7 @@ SCI_SETHOTSPOTACTIVEUNDERLINE _ 0;" F class:_SCINTILLA.constants SCI_SETHOTSPOTSINGLELINE _ 0;" F class:_SCINTILLA.constants SCI_SETHSCROLLBAR _ 0;" F class:_SCINTILLA.constants SCI_SETIDENTIFIER _ 0;" F class:_SCINTILLA.constants +SCI_SETIDENTIFIERS _ 0;" F class:_SCINTILLA.constants SCI_SETINDENT _ 0;" F class:_SCINTILLA.constants SCI_SETINDENTATIONGUIDES _ 0;" F class:_SCINTILLA.constants SCI_SETINDICATORCURRENT _ 0;" F class:_SCINTILLA.constants @@ -382,6 +390,7 @@ SCI_SETKEYWORDS _ 0;" F class:_SCINTILLA.constants SCI_SETLAYOUTCACHE _ 0;" F class:_SCINTILLA.constants SCI_SETLEXER _ 0;" F class:_SCINTILLA.constants SCI_SETLEXERLANGUAGE _ 0;" F class:_SCINTILLA.constants +SCI_SETLINEENDTYPESALLOWED _ 0;" F class:_SCINTILLA.constants SCI_SETLINEINDENTATION _ 0;" F class:_SCINTILLA.constants SCI_SETLINESTATE _ 0;" F class:_SCINTILLA.constants SCI_SETMAINSELECTION _ 0;" F class:_SCINTILLA.constants @@ -611,6 +620,8 @@ SC_IV_LOOKFORWARD _ 0;" F class:_SCINTILLA.constants SC_IV_NONE _ 0;" F class:_SCINTILLA.constants SC_IV_REAL _ 0;" F class:_SCINTILLA.constants SC_LASTSTEPINUNDOREDO _ 0;" F class:_SCINTILLA.constants +SC_LINE_END_TYPE_DEFAULT _ 0;" F class:_SCINTILLA.constants +SC_LINE_END_TYPE_UNICODE _ 0;" F class:_SCINTILLA.constants SC_MARGINOPTION_NONE _ 0;" F class:_SCINTILLA.constants SC_MARGINOPTION_SUBLINESELECT _ 0;" F class:_SCINTILLA.constants SC_MARGIN_BACK _ 0;" F class:_SCINTILLA.constants @@ -659,6 +670,7 @@ SC_MARK_TCORNERCURVE _ 0;" F class:_SCINTILLA.constants SC_MARK_UNDERLINE _ 0;" F class:_SCINTILLA.constants SC_MARK_VLINE _ 0;" F class:_SCINTILLA.constants SC_MASK_FOLDERS _ 0;" F class:_SCINTILLA.constants +SC_MAX_MARGIN _ 0;" F class:_SCINTILLA.constants SC_MODEVENTMASKALL _ 0;" F class:_SCINTILLA.constants SC_MOD_BEFOREDELETE _ 0;" F class:_SCINTILLA.constants SC_MOD_BEFOREINSERT _ 0;" F class:_SCINTILLA.constants |