diff options
Diffstat (limited to 'modules/lua')
-rw-r--r-- | modules/lua/api | 3 | ||||
-rw-r--r-- | modules/lua/lua.luadoc | 5 | ||||
-rw-r--r-- | modules/lua/tags | 1 |
3 files changed, 6 insertions, 3 deletions
diff --git a/modules/lua/api b/modules/lua/api index 55cb8b22..1ccacac3 100644 --- a/modules/lua/api +++ b/modules/lua/api @@ -95,6 +95,7 @@ MARKER_MAX _SCINTILLA.constants.MARKER_MAX\n31\n MARK_BOOKMARK_COLOR _m.textadept.bookmarks.MARK_BOOKMARK_COLOR [number]\nThe color used for a bookmarked line in 0xBBGGRR format.\n MARK_HIGHLIGHT_BACK _m.textadept.editing.MARK_HIGHLIGHT_BACK [number]\nThe background color used for a line containing a highlighted word in\n0xBBGGRR format.\n MAX _m.textadept.snapopen.MAX [number]\nMaximum number of files to list. The default value is 1000.\n +MAX_RECENT_FILES _m.textadept.session.MAX_RECENT_FILES [number]\nThe maximum number of files from the recent files list to save to the\nsession. The default is 10.\n MENU_CLICKED events.MENU_CLICKED\nCalled when a menu item is selected.\n * `menu_id`: The numeric ID of the menu item set in `gui.gtkmenu()`.\n\n NUMBER lexer.NUMBER\n\n OPERATOR lexer.OPERATOR\n\n @@ -1453,7 +1454,7 @@ size view.size [number]\nThe position of the split resizer (if this view is part snapopen _m.textadept.snapopen [module]\nSnapopen for the textadept module.\n snippets _G.snippets [table]\nProvides access to snippets from _G.\n snippets _m.textadept.snippets [module]\nProvides Lua-style snippets for Textadept.\n -sort table.sort(table [, comp])\nSorts table elements in a given order, *in-place*, from `table[1]` to\n`table[n]`, where `n` is the length of the table. If `comp` is given, then it\nmust be a function that receives two table elements, and returns true when\nthe first is less than the second (so that `not comp(a[i+1],a[i])` will be\ntrue after the sort). If `comp` is not given, then the standard Lua operator\n``io.lines`, this function does not close the file when the loop ends.)\n +sort table.sort(table [, comp])\nSorts table elements in a given order, *in-place*, from `table[1]` to\n`table[n]`, where `n` is the length of the table. If `comp` is given, then it\nmust be a function that receives two table elements, and returns true when the\nfirst is less than the second (so that `not comp(a[i+1],a[i])` will be true\nafter the sort). If `comp` is not given, then the standard Lua operator `<`\nis used instead. The sort algorithm is not stable; that is, elements considered\nequal by the given order may have their relative positions changed by the sort.\n space lexer.space\nMatches any whitespace character (`\t`, `\v`, `\f`, `\\n`, `\r`, space).\n split view:split(vertical)\nSplits the indexed view vertically or horizontally and focuses the new view.\n@param vertical Flag indicating a vertical split. False for horizontal.\n@return old view and new view tables.\n sqrt math.sqrt(x)\nReturns the square root of `x`. (You can also use the expression `x^0.5`\nto compute this value.)\n diff --git a/modules/lua/lua.luadoc b/modules/lua/lua.luadoc index b0602cc7..7990f6e1 100644 --- a/modules/lua/lua.luadoc +++ b/modules/lua/lua.luadoc @@ -579,8 +579,9 @@ function table.remove(table [, pos]) end -- table. If `comp` is given, then it must be a function that receives two -- table elements, and returns true when the first is less than the second -- (so that `not comp(a[i+1],a[i])` will be true after the sort). If `comp` --- is not given, then the standard Lua operator ``io.lines`, this function --- does not close the file when the loop ends.) +-- is not given, then the standard Lua operator `<` is used instead. +-- The sort algorithm is not stable; that is, elements considered equal by the +-- given order may have their relative positions changed by the sort. function table.sort(table [, comp]) end --- diff --git a/modules/lua/tags b/modules/lua/tags index acce66eb..2bb178b2 100644 --- a/modules/lua/tags +++ b/modules/lua/tags @@ -95,6 +95,7 @@ MARKER_MAX _ 0;" F class:_SCINTILLA.constants MARK_BOOKMARK_COLOR _ 0;" F class:_m.textadept.bookmarks MARK_HIGHLIGHT_BACK _ 0;" F class:_m.textadept.editing MAX _ 0;" F class:_m.textadept.snapopen +MAX_RECENT_FILES _ 0;" F class:_m.textadept.session MENU_CLICKED _ 0;" F class:events NUMBER _ 0;" F class:lexer OPERATOR _ 0;" F class:lexer |