diff options
author | 2011-02-28 23:34:58 -0500 | |
---|---|---|
committer | 2011-02-28 23:34:58 -0500 | |
commit | 415b9c4817acdcfc53598c08af20db575a1cd553 (patch) | |
tree | c1fd29565d38d634f3fa931d9324e9c7d9aa5d39 | |
parent | 3b023ec79dcf01e92b97beb0d6dbd8cbf7ff92fb (diff) | |
download | textadept-415b9c4817acdcfc53598c08af20db575a1cd553.tar.gz textadept-415b9c4817acdcfc53598c08af20db575a1cd553.zip |
Updated lua module.
-rw-r--r-- | modules/lua/api | 14 | ||||
-rw-r--r-- | modules/lua/init.lua | 1 | ||||
-rw-r--r-- | modules/lua/tags | 236 |
3 files changed, 139 insertions, 112 deletions
diff --git a/modules/lua/api b/modules/lua/api index fc975bdd..ad5c0683 100644 --- a/modules/lua/api +++ b/modules/lua/api @@ -37,13 +37,21 @@ tostring _G.tostring(e)\nReceives an argument of any type and converts it to a s type _G.type(v)\nReturns the type of its only argument, coded as a string. The possible results\nof this function are " `nil`" (a string, not the value nil), "`number`",\n"`string`", "`boolean`", "`table`", "`function`", "`thread`", and "`userdata`".\n unpack _G.unpack(list [, i [, j]])\nReturns the elements from the given table. This function is equivalent to\nreturn list[i], list[i+1], ···, list[j] except that the above code can\nbe written only for a fixed number of elements. By default, `i` is 1 and\n`j` is the length of the list, as defined by the length operator (see §2.5.5).\n xpcall _G.xpcall(f, err)\nThis function is similar to `pcall`, except that you can set a new error\nhandler. `xpcall` calls function `f` in protected mode, using `err` as the\nerror handler. Any error inside `f` is not propagated; instead, `xpcall`\ncatches the error, calls the `err` function with the original error object,\nand returns a status code. Its first result is the status code (a boolean),\nwhich is true if the call succeeds without errors. In this case, `xpcall`\nalso returns all results from the call, after this first result. In case of\nany error, `xpcall` returns false plus the result from `err`.\n -goto_required _m.lua.commands.goto_required()\nDetermines the Lua file being 'require'd, searches through package.path for\nthat file, and opens it in Textadept.\n -try_to_autocomplete_end _m.lua.commands.try_to_autocomplete_end()\nTries to autocomplete Lua's 'end' keyword for control structures like 'if',\n'while', 'for', etc.\n@see control_structure_patterns\n +set_buffer_properties _m.cpp.set_buffer_properties()\nSets default buffer properties for C/C++ files.\n +set_buffer_properties _m.css.set_buffer_properties()\nSets default buffer properties for CSS files.\n +set_buffer_properties _m.hypertext.set_buffer_properties()\nSets default buffer properties for HTML files.\n +set_buffer_properties _m.java.set_buffer_properties()\nSets default buffer properties for Java files.\n +goto_required _m.lua.goto_required()\nDetermines the Lua file being 'require'd, searches through package.path for\nthat file, and opens it in Textadept.\n +set_buffer_properties _m.lua.set_buffer_properties()\nSets default buffer properties for Lua files.\n +try_to_autocomplete_end _m.lua.try_to_autocomplete_end()\nTries to autocomplete Lua's 'end' keyword for control structures like 'if',\n'while', 'for', etc.\n@see control_structure_patterns\n +goto_required _m.ruby.goto_required()\nDetermine the Ruby file being 'require'd, and search through the RUBYPATH\nfor that file and open it in Textadept.\n +set_buffer_properties _m.ruby.set_buffer_properties()\nSets default buffer properties for Ruby files.\n +try_to_autocomplete_end _m.ruby.try_to_autocomplete_end()\nTries to autocomplete Ruby's 'end' keyword for control structures like 'if',\n'while', 'for', etc.\n@see control_structure_patterns\n add_trigger _m.textadept.adeptsense.add_trigger(sense, c, only_fields, only_functions)\nSets the trigger for autocompletion.\n@param The adeptsense returned by adeptsense.new().\n@param The character(s) that triggers the autocompletion. You can have up\nto two characters.\n@param If true, this trigger only completes fields. Defaults to false.\n@param If true, this trigger only completes functions. Defaults to false.\n@usage sense:add_trigger('.')\n@usage sense:add_trigger(':', false, true) -- only functions\n@usage sense:add_trigger('->')\n clear _m.textadept.adeptsense.clear(sense)\nClears an adeptsense. This is necessary for loading a new ctags file or\ncompletions from a different project.\n@param The adeptsense returned by adeptsense.new().\n complete _m.textadept.adeptsense.complete(sense, only_fields, only_functions)\nShows an autocompletion list for the symbol behind the caret.\n@param The adeptsense returned by adeptsense.new().\n@param If true, returns list of only fields; defaults to false.\n@param If true, returns list of only functions; defaults to false.\n@return true on success or false.\n@see get_symbol\n@see get_completions\n get_apidoc _m.textadept.adeptsense.get_apidoc(sense, symbol)\nReturns a list of apidocs for the given symbol. If there are multiple apidocs,\nthe index of one to display is the value of the 'pos' key in the returned list.\n@param The adeptsense returned by adeptsense.new().\n@param The symbol to get apidocs for.\n@return apidoc_list or nil\n -get_class _m.textadept.adeptsense.get_class(sense, symbol)\nReturns the class name for a given symbol. If the symbol is sense.syntax.self\nand a class definition using the sense.syntax.class keyword is found,\nthat class is returned. Otherwise the buffer is searched backwards\nfor a type declaration of the symbol according to the patterns in\nsense.syntax.type_declarations.\n@param The adeptsense returned by adeptsense.new().\n@param The symbol to get the class of.\n@return class or nil\n@see syntax\n +get_class _m.textadept.adeptsense.get_class(sense, symbol)\nReturns the class name for a given symbol. If the symbol is sense.syntax.self\nand a class definition using the sense.syntax.class_definition keyword\nis found, that class is returned. Otherwise the buffer is searched\nbackwards for a type declaration of the symbol according to the patterns\nin sense.syntax.type_declarations.\n@param The adeptsense returned by adeptsense.new().\n@param The symbol to get the class of.\n@return class or nil\n@see syntax\n get_completions _m.textadept.adeptsense.get_completions(sense, symbol, only_fields,\nonly_functions)\nReturns a list of completions for the given symbol.\n@param The adeptsense returned by adeptsense.new().\n@param The symbol to get completions for.\n@param If true, returns list of only fields; defaults to false.\n@param If true, returns list of only functions; defaults to false.\n@return completion_list or nil\n get_symbol _m.textadept.adeptsense.get_symbol(sense)\nReturns a full symbol (if any) and current symbol part (if any) behind the\ncaret. For example: buffer.cur would return 'buffer' and 'cur'.\n@param The adeptsense returned by adeptsense.new().\n@return symbol or '', part or ''.\n goto_ctag _m.textadept.adeptsense.goto_ctag(sense, k, title)\nDisplays a filteredlist of all known symbols of the given kind (classes,\nfunctions, fields, etc.) and jumps to the source of the selected one.\n@param The adeptsense returned by adeptsense.new().\n@param The ctag character kind (e.g. 'f' for a Lua function).\n@param The title for the filteredlist dialog.\n diff --git a/modules/lua/init.lua b/modules/lua/init.lua index 5ec8d005..b1d6a357 100644 --- a/modules/lua/init.lua +++ b/modules/lua/init.lua @@ -67,7 +67,6 @@ sense.ctags_kinds = { } sense:load_ctags(_HOME..'/modules/lua/tags', true) ---- -- Shows an autocompletion list for the symbol behind the caret. -- If the symbol contains a ':', only display functions. Otherwise, display -- both functions and fields. diff --git a/modules/lua/tags b/modules/lua/tags index 087822ad..0f5fa2fb 100644 --- a/modules/lua/tags +++ b/modules/lua/tags @@ -116,27 +116,46 @@ _m _ 0;" t class:_G _m _ 0;" t _m.cpp _ 0;" m cpp _ 0;" t class:_m -keys.cpp _ 0;" t class:_m.cpp -snippets.cpp _ 0;" t class:_m.cpp -_m.cpp.adeptsense _ 0;" m -adeptsense _ 0;" t class:_m.cpp -_m.cpp.commands _ 0;" m -commands _ 0;" t class:_m.cpp -_m.cpp.snippets _ 0;" m -snippets _ 0;" t class:_m.cpp +set_buffer_properties _ 0;" f class:_m.cpp +_G.keys.cpp _ 0;" t class:_m.cpp +_G.snippets.cpp _ 0;" t class:_m.cpp +sense _ 0;" F class:_m.cpp +_m.css _ 0;" m +css _ 0;" t class:_m +set_buffer_properties _ 0;" f class:_m.css +_G.keys.css _ 0;" t class:_m.css +_G.snippets.css _ 0;" t class:_m.css +sense _ 0;" F class:_m.css +_m.hypertext _ 0;" m +hypertext _ 0;" t class:_m +set_buffer_properties _ 0;" f class:_m.hypertext +_G.keys.hypertext _ 0;" t class:_m.hypertext +_G.snippets.hypertext _ 0;" t class:_m.hypertext +sense _ 0;" F class:_m.hypertext +_m.java _ 0;" m +java _ 0;" t class:_m +set_buffer_properties _ 0;" f class:_m.java +_G.keys.java _ 0;" t class:_m.java +_G.snippets.java _ 0;" t class:_m.java +sense _ 0;" F class:_m.java _m.lua _ 0;" m lua _ 0;" t class:_m -keys.lua _ 0;" t class:_m.lua -snippets.lua _ 0;" t class:_m.lua -_m.lua.adeptsense _ 0;" m -adeptsense _ 0;" t class:_m.lua -_m.lua.commands _ 0;" m -commands _ 0;" t class:_m.lua -goto_required _ 0;" f class:_m.lua.commands -try_to_autocomplete_end _ 0;" f class:_m.lua.commands -control_structure_patterns _ 0;" t class:_m.lua.commands -_m.lua.snippets _ 0;" m -snippets _ 0;" t class:_m.lua +goto_required _ 0;" f class:_m.lua +set_buffer_properties _ 0;" f class:_m.lua +try_to_autocomplete_end _ 0;" f class:_m.lua +_G.keys.lua _ 0;" t class:_m.lua +_G.snippets.lua _ 0;" t class:_m.lua +control_structure_patterns _ 0;" t class:_m.lua +sense _ 0;" F class:_m.lua +_m.ruby _ 0;" m +ruby _ 0;" t class:_m +goto_required _ 0;" f class:_m.ruby +set_buffer_properties _ 0;" f class:_m.ruby +try_to_autocomplete_end _ 0;" f class:_m.ruby +_G.keys.ruby _ 0;" t class:_m.ruby +_G.snippets.ruby _ 0;" t class:_m.ruby +control_structure_patterns _ 0;" t class:_m.ruby +sense _ 0;" F class:_m.ruby _m.textadept _ 0;" m textadept _ 0;" t class:_m _m.textadept.adeptsense _ 0;" m @@ -155,11 +174,12 @@ load_ctags _ 0;" f class:_m.textadept.adeptsense new _ 0;" f class:_m.textadept.adeptsense show_apidoc _ 0;" f class:_m.textadept.adeptsense api_files _ 0;" t class:_m.textadept.adeptsense -class_list _ 0;" t class:_m.textadept.adeptsense completions _ 0;" t class:_m.textadept.adeptsense ctags_kinds _ 0;" t class:_m.textadept.adeptsense +inherited_classes _ 0;" t class:_m.textadept.adeptsense locations _ 0;" t class:_m.textadept.adeptsense syntax _ 0;" t class:_m.textadept.adeptsense +always_show_globals _ 0;" F class:_m.textadept.adeptsense FUNCTIONS _ 0;" F class:_m.textadept.adeptsense FIELDS _ 0;" F class:_m.textadept.adeptsense _m.textadept.bookmarks _ 0;" m @@ -791,93 +811,93 @@ ADD _ 0;" F class:keys lexer _ 0;" m lexer _ 0;" t class:_G lexer _ 0;" t -color _ 0;" f class:l -delimited_range _ 0;" f class:l -embed_lexer _ 0;" f class:l -fold _ 0;" f class:l -get_fold_level _ 0;" f class:l -get_indent_amount _ 0;" f class:l -get_property _ 0;" f class:l -get_style_at _ 0;" f class:l -lex _ 0;" f class:l -load _ 0;" f class:l -nested_pair _ 0;" f class:l -starts_line _ 0;" f class:l -style _ 0;" f class:l -token _ 0;" f class:l -word_match _ 0;" f class:l -_EMBEDDEDRULES _ 0;" t class:l -_RULES _ 0;" t class:l -DEFAULT _ 0;" F class:l -WHITESPACE _ 0;" F class:l -COMMENT _ 0;" F class:l -STRING _ 0;" F class:l -NUMBER _ 0;" F class:l -KEYWORD _ 0;" F class:l -IDENTIFIER _ 0;" F class:l -OPERATOR _ 0;" F class:l -ERROR _ 0;" F class:l -PREPROCESSOR _ 0;" F class:l -CONSTANT _ 0;" F class:l -VARIABLE _ 0;" F class:l -FUNCTION _ 0;" F class:l -CLASS _ 0;" F class:l -TYPE _ 0;" F class:l -any _ 0;" F class:l -ascii _ 0;" F class:l -extend _ 0;" F class:l -alpha _ 0;" F class:l -digit _ 0;" F class:l -alnum _ 0;" F class:l -lower _ 0;" F class:l -upper _ 0;" F class:l -xdigit _ 0;" F class:l -cntrl _ 0;" F class:l -graph _ 0;" F class:l -print _ 0;" F class:l -punct _ 0;" F class:l -space _ 0;" F class:l -newline _ 0;" F class:l -nonnewline _ 0;" F class:l -nonnewline_esc _ 0;" F class:l -dec_num _ 0;" F class:l -hex_num _ 0;" F class:l -oct_num _ 0;" F class:l -integer _ 0;" F class:l -float _ 0;" F class:l -word _ 0;" F class:l -style_nothing _ 0;" F class:l -style_char _ 0;" F class:l -style_class _ 0;" F class:l -style_comment _ 0;" F class:l -style_constant _ 0;" F class:l -style_definition _ 0;" F class:l -style_error _ 0;" F class:l -style_function _ 0;" F class:l -style_keyword _ 0;" F class:l -style_number _ 0;" F class:l -style_operator _ 0;" F class:l -style_string _ 0;" F class:l -style_preproc _ 0;" F class:l -style_tag _ 0;" F class:l -style_type _ 0;" F class:l -style_variable _ 0;" F class:l -style_embedded _ 0;" F class:l -style_identifier _ 0;" F class:l -green _ 0;" F class:l -blue _ 0;" F class:l -red _ 0;" F class:l -yellow _ 0;" F class:l -teal _ 0;" F class:l -white _ 0;" F class:l -black _ 0;" F class:l -grey _ 0;" F class:l -purple _ 0;" F class:l -orange _ 0;" F class:l -SC_FOLDLEVELBASE _ 0;" F class:l -SC_FOLDLEVELWHITEFLAG _ 0;" F class:l -SC_FOLDLEVELHEADERFLAG _ 0;" F class:l -SC_FOLDLEVELNUMBERMASK _ 0;" F class:l +color _ 0;" f class:lexer +delimited_range _ 0;" f class:lexer +embed_lexer _ 0;" f class:lexer +fold _ 0;" f class:lexer +get_fold_level _ 0;" f class:lexer +get_indent_amount _ 0;" f class:lexer +get_property _ 0;" f class:lexer +get_style_at _ 0;" f class:lexer +lex _ 0;" f class:lexer +load _ 0;" f class:lexer +nested_pair _ 0;" f class:lexer +starts_line _ 0;" f class:lexer +style _ 0;" f class:lexer +token _ 0;" f class:lexer +word_match _ 0;" f class:lexer +_EMBEDDEDRULES _ 0;" t class:lexer +_RULES _ 0;" t class:lexer +DEFAULT _ 0;" F class:lexer +WHITESPACE _ 0;" F class:lexer +COMMENT _ 0;" F class:lexer +STRING _ 0;" F class:lexer +NUMBER _ 0;" F class:lexer +KEYWORD _ 0;" F class:lexer +IDENTIFIER _ 0;" F class:lexer +OPERATOR _ 0;" F class:lexer +ERROR _ 0;" F class:lexer +PREPROCESSOR _ 0;" F class:lexer +CONSTANT _ 0;" F class:lexer +VARIABLE _ 0;" F class:lexer +FUNCTION _ 0;" F class:lexer +CLASS _ 0;" F class:lexer +TYPE _ 0;" F class:lexer +any _ 0;" F class:lexer +ascii _ 0;" F class:lexer +extend _ 0;" F class:lexer +alpha _ 0;" F class:lexer +digit _ 0;" F class:lexer +alnum _ 0;" F class:lexer +lower _ 0;" F class:lexer +upper _ 0;" F class:lexer +xdigit _ 0;" F class:lexer +cntrl _ 0;" F class:lexer +graph _ 0;" F class:lexer +print _ 0;" F class:lexer +punct _ 0;" F class:lexer +space _ 0;" F class:lexer +newline _ 0;" F class:lexer +nonnewline _ 0;" F class:lexer +nonnewline_esc _ 0;" F class:lexer +dec_num _ 0;" F class:lexer +hex_num _ 0;" F class:lexer +oct_num _ 0;" F class:lexer +integer _ 0;" F class:lexer +float _ 0;" F class:lexer +word _ 0;" F class:lexer +style_nothing _ 0;" F class:lexer +style_char _ 0;" F class:lexer +style_class _ 0;" F class:lexer +style_comment _ 0;" F class:lexer +style_constant _ 0;" F class:lexer +style_definition _ 0;" F class:lexer +style_error _ 0;" F class:lexer +style_function _ 0;" F class:lexer +style_keyword _ 0;" F class:lexer +style_number _ 0;" F class:lexer +style_operator _ 0;" F class:lexer +style_string _ 0;" F class:lexer +style_preproc _ 0;" F class:lexer +style_tag _ 0;" F class:lexer +style_type _ 0;" F class:lexer +style_variable _ 0;" F class:lexer +style_embedded _ 0;" F class:lexer +style_identifier _ 0;" F class:lexer +green _ 0;" F class:lexer +blue _ 0;" F class:lexer +red _ 0;" F class:lexer +yellow _ 0;" F class:lexer +teal _ 0;" F class:lexer +white _ 0;" F class:lexer +black _ 0;" F class:lexer +grey _ 0;" F class:lexer +purple _ 0;" F class:lexer +orange _ 0;" F class:lexer +SC_FOLDLEVELBASE _ 0;" F class:lexer +SC_FOLDLEVELWHITEFLAG _ 0;" F class:lexer +SC_FOLDLEVELHEADERFLAG _ 0;" F class:lexer +SC_FOLDLEVELNUMBERMASK _ 0;" F class:lexer locale _ 0;" m locale _ 0;" t class:_G locale _ 0;" t @@ -1035,4 +1055,4 @@ concat _ 0;" f class:table insert _ 0;" f class:table maxn _ 0;" f class:table remove _ 0;" f class:table -sort _ 0;" f class:table +sort _ 0;" f class:table
\ No newline at end of file |