diff options
author | 2012-05-31 22:20:53 -0400 | |
---|---|---|
committer | 2012-05-31 22:20:53 -0400 | |
commit | 4edc74c329d67aed690ba2a6f703982abb1356c4 (patch) | |
tree | 7a10b6b109acb5afd113f59144df43b91cf05302 /modules/lua | |
parent | ad97778e47af4eb09225c7768ebb076d74850792 (diff) | |
download | textadept-4edc74c329d67aed690ba2a6f703982abb1356c4.tar.gz textadept-4edc74c329d67aed690ba2a6f703982abb1356c4.zip |
Updated Lua Adeptsense.
Diffstat (limited to 'modules/lua')
-rw-r--r-- | modules/lua/api | 5 | ||||
-rw-r--r-- | modules/lua/tags | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/modules/lua/api b/modules/lua/api index 3db1f00d..5fb80a4d 100644 --- a/modules/lua/api +++ b/modules/lua/api @@ -201,6 +201,7 @@ SCI_GETFOLDEXPANDED _SCINTILLA.constants.SCI_GETFOLDEXPANDED\n2230 SCI_GETFOLDLEVEL _SCINTILLA.constants.SCI_GETFOLDLEVEL\n2223 SCI_GETFOLDPARENT _SCINTILLA.constants.SCI_GETFOLDPARENT\n2225 SCI_GETFONTQUALITY _SCINTILLA.constants.SCI_GETFONTQUALITY\n2612 +SCI_GETGAPPOSITION _SCINTILLA.constants.SCI_GETGAPPOSITION\n2644 SCI_GETHIGHLIGHTGUIDE _SCINTILLA.constants.SCI_GETHIGHLIGHTGUIDE\n2135 SCI_GETHOTSPOTACTIVEUNDERLINE _SCINTILLA.constants.SCI_GETHOTSPOTACTIVEUNDERLINE\n2496 SCI_GETHOTSPOTSINGLELINE _SCINTILLA.constants.SCI_GETHOTSPOTSINGLELINE\n2497 @@ -686,6 +687,7 @@ SC_WRAPVISUALFLAGLOC_DEFAULT _SCINTILLA.constants.SC_WRAPVISUALFLAGLOC_DEFAULT\n SC_WRAPVISUALFLAGLOC_END_BY_TEXT _SCINTILLA.constants.SC_WRAPVISUALFLAGLOC_END_BY_TEXT\n1 SC_WRAPVISUALFLAGLOC_START_BY_TEXT _SCINTILLA.constants.SC_WRAPVISUALFLAGLOC_START_BY_TEXT\n2 SC_WRAPVISUALFLAG_END _SCINTILLA.constants.SC_WRAPVISUALFLAG_END\n1 +SC_WRAPVISUALFLAG_MARGIN _SCINTILLA.constants.SC_WRAPVISUALFLAG_MARGIN\n4 SC_WRAPVISUALFLAG_NONE _SCINTILLA.constants.SC_WRAPVISUALFLAG_NONE\n0 SC_WRAPVISUALFLAG_START _SCINTILLA.constants.SC_WRAPVISUALFLAG_START\n2 SC_WRAP_CHAR _SCINTILLA.constants.SC_WRAP_CHAR\n2 @@ -930,6 +932,7 @@ del_word_right_end buffer.del_word_right_end(buffer)\nDelete the word to the rig delete buffer.delete(buffer)\nDeletes the current buffer.\nWARNING: this function should NOT be called via scripts. Use `buffer:close()`\ninstead, which prompts for confirmation if necessary. Generates a\n`BUFFER_DELETED` event.\n@param buffer The global buffer. delete_back buffer.delete_back(buffer)\nDelete the selection or if no selection, the character before the caret.\n@param buffer The global buffer. delete_back_not_line buffer.delete_back_not_line(buffer)\nDelete the selection or if no selection, the character before the caret.\nWill not delete the character before at the start of a line. +delete_range buffer.delete_range(buffer, pos, length)\nDelete a range of text in the document.\n@param pos The start position of the range to delete.\n@param length The length of the range to delete. delimited_range lexer.delimited_range(chars, escape, end_optional, balanced, forbidden)\nCreates an LPeg pattern that matches a range of characters delimitted by a\nspecific character(s).\nThis can be used to match a string, parenthesis, etc.\n@param chars The character(s) that bound the matched range.\n@param escape Optional escape character. This parameter may be omitted, nil,\n or the empty string.\n@param end_optional Optional flag indicating whether or not an ending\n delimiter is optional or not. If true, the range begun by the start\n delimiter matches until an end delimiter or the end of the input is\n reached.\n@param balanced Optional flag indicating whether or not a balanced range is\n matched, like `%b` in Lua's `string.find`. This flag only applies if\n `chars` consists of two different characters (e.g. '()').\n@param forbidden Optional string of characters forbidden in a delimited\n range. Each character is part of the set.\n@usage local sq_str_noescapes = delimited_range("'")\n@usage local sq_str_escapes = delimited_range("'", '\\', true)\n@usage local unbalanced_parens = delimited_range('()', '\\', true)\n@usage local balanced_parens = delimited_range('()', '\\', true, true) dialog gui.dialog(kind, ...)\nDisplays a gcocoadialog of a specified type with the given string arguments.\nEach argument is like a string in Lua's `arg` table. Tables of strings are\nallowed as arguments and are expanded in place. This is useful for\nfilteredlist dialogs with many items.\n@param kind The kind of gcocoadialog.\n@param ... Parameters to the gcocoadialog.\n@return string gcocoadialog result. difftime os.difftime(t2, t1)\nReturns the number of seconds from time `t1` to time `t2`. In POSIX,\nWindows, and some other systems, this value is exactly `t2`*-*`t1`. @@ -1012,6 +1015,7 @@ form_feed buffer.form_feed(buffer)\nInsert a Form Feed character.\n@param buffer format string.format(formatstring, ยทยทยท)\nReturns a formatted version of its variable number of arguments following the\ndescription given in its first argument (which must be a string). The format\nstring follows the same rules as the C function `sprintf`. The only\ndifferences are that the options/modifiers `*`, `h`, `L`, `l`, `n`, and `p`\nare not supported and that there is an extra option, `q`. The `q` option\nformats a string between double quotes, using escape sequences when necessary\nto ensure that it can safely be read back by the Lua interpreter. For\ninstance, the call\n\n string.format('%q', 'a string with "quotes" and \\n new line')\n\nmay produce the string:\n\n "a string with \"quotes\" and \\n new line"\n\nOptions `A` and `a` (when available), `E`, `e`, `f`, `G`, and `g` all expect\na number as argument. Options `c`, `d`, `i`, `o`, `u`, `X`, and `x` also\nexpect a number, but the range of that number may be limited by the\nunderlying C implementation. For options `o`, `u`, `X`, and `x`, the number\ncannot be negative. Option `q` expects a string; option `s` expects a string\nwithout embedded zeros. If the argument to option `s` is not a string, it is\nconverted to one following the same rules of `tostring`. frexp math.frexp(x)\nReturns `m` and `e` such that 'x = m2^e', `e` is an integer and the\nabsolute value of `m` is in the range *[0.5, 1)* (or zero when `x` is zero). functions _SCINTILLA.functions (table)\nScintilla functions. +gap_position buffer.gap_position (number, Read-only)\nA position which, to avoid performance costs, should not be within the\nrange of a call to `buffer:get_range_pointer()`. get_apidoc _M.textadept.adeptsense.get_apidoc(sense, symbol)\nReturns a list of apidocs for the given symbol.\nIf there are multiple apidocs, the index of one to display is the value of\nthe `pos` key in the returned list.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param symbol The symbol to get apidocs for.\n@return apidoc_list or `nil` get_class _M.textadept.adeptsense.get_class(sense, symbol)\nReturns the class name for a given symbol.\nIf the symbol is `sense.syntax.self` and a class definition using the\n`sense.syntax.class_definition` keyword is found, that class is returned.\nOtherwise the buffer is searched backwards for a type declaration of the\nsymbol according to the patterns in `sense.syntax.type_declarations`.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param symbol The symbol to get the class of.\n@return class or `nil`\n@see syntax get_completions _M.textadept.adeptsense.get_completions(sense, symbol, only_fields, only_functions)\nReturns a list of completions for the given symbol.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param symbol The symbol to get completions for.\n@param only_fields If `true`, returns list of only fields. The default value\n is `false`.\n@param only_functions If `true`, returns list of only functions. The default\n value is `false`.\n@return completion_list or `nil` @@ -1029,6 +1033,7 @@ get_line_sel_start_position buffer.get_line_sel_start_position(buffer, line)\nRe get_property buffer.get_property(buffer, key)\nRetrieve a `property` value previously set with `buffer.property`.\n@param buffer The global buffer.\n@param key Keyword.\n@return string get_property lexer.get_property(key, default)\nReturns an integer property value for a given key.\n@param key The property key.\n@param default Optional integer value to return if key is not set. get_property_expanded buffer.get_property_expanded(buffer, key)\nRetrieve a `property` value previously set with `buffer.property`, with `$()`\nvariable replacement on returned buffer.\n@param buffer The global buffer.\n@param key Keyword.\n@return string +get_range_pointer buffer.get_range_pointer(buffer, position, range_length)\nReturn a read-only pointer to a range of characters in the document.\nMay move the gap so that the range is contiguous, but will only move up to\nrange_length bytes.\nThe gap is not moved unless it is within the requested range so this call can\nbe faster than `SCI_GETCHARACTERPOINTER`. This can be used by application\ncode that is able to act on blocks of text or ranges of lines. get_sel_text buffer.get_sel_text(buffer)\nRetrieve the selected text.\nAlso returns the length of the text.\n@param buffer The global buffer.\n@return string, number get_split_table gui.get_split_table()\nGets the current split view structure.\n@return table of split views. Each split view entry is a table with 4\n fields: `1`, `2`, `vertical`, and `size`. `1` and `2` have values of either\n nested split view entries or the views themselves; `vertical` is a flag\n indicating if the split is vertical or not; and `size` is the integer\n position of the split resizer. get_style_at lexer.get_style_at(pos)\nReturns the string style name and style number at a given position.\n@param pos The position to get the style for. diff --git a/modules/lua/tags b/modules/lua/tags index 4cce8c35..f41e9848 100644 --- a/modules/lua/tags +++ b/modules/lua/tags @@ -201,6 +201,7 @@ SCI_GETFOLDEXPANDED _ 0;" F class:_SCINTILLA.constants SCI_GETFOLDLEVEL _ 0;" F class:_SCINTILLA.constants SCI_GETFOLDPARENT _ 0;" F class:_SCINTILLA.constants SCI_GETFONTQUALITY _ 0;" F class:_SCINTILLA.constants +SCI_GETGAPPOSITION _ 0;" F class:_SCINTILLA.constants SCI_GETHIGHLIGHTGUIDE _ 0;" F class:_SCINTILLA.constants SCI_GETHOTSPOTACTIVEUNDERLINE _ 0;" F class:_SCINTILLA.constants SCI_GETHOTSPOTSINGLELINE _ 0;" F class:_SCINTILLA.constants @@ -686,6 +687,7 @@ SC_WRAPVISUALFLAGLOC_DEFAULT _ 0;" F class:_SCINTILLA.constants SC_WRAPVISUALFLAGLOC_END_BY_TEXT _ 0;" F class:_SCINTILLA.constants SC_WRAPVISUALFLAGLOC_START_BY_TEXT _ 0;" F class:_SCINTILLA.constants SC_WRAPVISUALFLAG_END _ 0;" F class:_SCINTILLA.constants +SC_WRAPVISUALFLAG_MARGIN _ 0;" F class:_SCINTILLA.constants SC_WRAPVISUALFLAG_NONE _ 0;" F class:_SCINTILLA.constants SC_WRAPVISUALFLAG_START _ 0;" F class:_SCINTILLA.constants SC_WRAP_CHAR _ 0;" F class:_SCINTILLA.constants @@ -959,6 +961,7 @@ del_word_right_end _ 0;" f class:buffer delete _ 0;" f class:buffer delete_back _ 0;" f class:buffer delete_back_not_line _ 0;" f class:buffer +delete_range _ 0;" f class:buffer delimited_range _ 0;" f class:lexer dialog _ 0;" f class:gui difftime _ 0;" f class:os @@ -1042,6 +1045,7 @@ form_feed _ 0;" f class:buffer format _ 0;" f class:string frexp _ 0;" f class:math functions _ 0;" t class:_SCINTILLA +gap_position _ 0;" F class:buffer get_apidoc _ 0;" f class:_M.textadept.adeptsense get_class _ 0;" f class:_M.textadept.adeptsense get_completions _ 0;" f class:_M.textadept.adeptsense @@ -1059,6 +1063,7 @@ get_line_sel_start_position _ 0;" f class:buffer get_property _ 0;" f class:buffer get_property _ 0;" f class:lexer get_property_expanded _ 0;" f class:buffer +get_range_pointer _ 0;" f class:buffer get_sel_text _ 0;" f class:buffer get_split_table _ 0;" f class:gui get_style_at _ 0;" f class:lexer |