diff options
author | 2015-01-20 23:02:57 -0500 | |
---|---|---|
committer | 2015-01-20 23:02:57 -0500 | |
commit | e98ebc0455850212919b1db20270fc1d4a759608 (patch) | |
tree | d41c31c2b2d125018f3ddcef45cbc2beba288e43 /modules/lua | |
parent | 251e1935d5bd5f356f53f3ae5a40a35f62ca420f (diff) | |
download | textadept-e98ebc0455850212919b1db20270fc1d4a759608.tar.gz textadept-e98ebc0455850212919b1db20270fc1d4a759608.zip |
Updated Lua autocompletion and documentation.
Diffstat (limited to 'modules/lua')
-rw-r--r-- | modules/lua/api | 10 | ||||
-rw-r--r-- | modules/lua/tags | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/modules/lua/api b/modules/lua/api index eb343182..ab4421c9 100644 --- a/modules/lua/api +++ b/modules/lua/api @@ -107,9 +107,9 @@ 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. FUNCTION lexer.FUNCTION (string)\nThe token name for function tokens. -HOTSPOT_CLICK events.HOTSPOT_CLICK (string)\nEmitted when clicking on text that is in a style that has the hotspot\nattribute set.\nArguments:\n\n* _`position`_: The clicked text's position.\n* _`modifiers`_: A bit-mask of any modifier keys used: `buffer.MOD_CTRL`,\n `buffer.MOD_SHIFT`, `buffer.MOD_ALT`, and `buffer.MOD_META`.\n Note: If you set `buffer.rectangular_selection_modifier` to\n `buffer.MOD_CTRL`, the "Control" modifier is reported as *both* "Control"\n and "Alt" due to a Scintilla limitation with GTK+. -HOTSPOT_DOUBLE_CLICK events.HOTSPOT_DOUBLE_CLICK (string)\nEmitted when double-clicking on text that is in a style that has the\nhotspot attribute set.\nArguments:\n\n* _`position`_: The double-clicked text's position.\n* _`modifiers`_: A bit-mask of any modifier keys used: `buffer.MOD_CTRL`,\n `buffer.MOD_SHIFT`, `buffer.MOD_ALT`, and `buffer.MOD_META`.\n Note: If you set `buffer.rectangular_selection_modifier` to\n `buffer.MOD_CTRL`, the "Control" modifier is reported as *both* "Control"\n and "Alt" due to a Scintilla limitation with GTK+. -HOTSPOT_RELEASE_CLICK events.HOTSPOT_RELEASE_CLICK (string)\nEmitted when releasing the mouse after clicking on text that is in a style\nthat has the hotspot attribute set.\nArguments:\n\n* _`position`_: The clicked text's position. +HOTSPOT_CLICK events.HOTSPOT_CLICK (string)\nEmitted when clicking on text that is in a style that has the hotspot\nattribute set.\nEvent handlers should avoid calling any function that modifies the current\nselection or caret position.\nArguments:\n\n* _`position`_: The clicked text's position.\n* _`modifiers`_: A bit-mask of any modifier keys used: `buffer.MOD_CTRL`,\n `buffer.MOD_SHIFT`, `buffer.MOD_ALT`, and `buffer.MOD_META`.\n Note: If you set `buffer.rectangular_selection_modifier` to\n `buffer.MOD_CTRL`, the "Control" modifier is reported as *both* "Control"\n and "Alt" due to a Scintilla limitation with GTK+. +HOTSPOT_DOUBLE_CLICK events.HOTSPOT_DOUBLE_CLICK (string)\nEmitted when double-clicking on text that is in a style that has the\nhotspot attribute set.\nEvent handlers should avoid calling any function that modifies the current\nselection or caret position.\nArguments:\n\n* _`position`_: The double-clicked text's position.\n* _`modifiers`_: A bit-mask of any modifier keys used: `buffer.MOD_CTRL`,\n `buffer.MOD_SHIFT`, `buffer.MOD_ALT`, and `buffer.MOD_META`.\n Note: If you set `buffer.rectangular_selection_modifier` to\n `buffer.MOD_CTRL`, the "Control" modifier is reported as *both* "Control"\n and "Alt" due to a Scintilla limitation with GTK+. +HOTSPOT_RELEASE_CLICK events.HOTSPOT_RELEASE_CLICK (string)\nEmitted when releasing the mouse after clicking on text that is in a style\nthat has the hotspot attribute set.\nEvent handlers should avoid calling any function that modifies the current\nselection or caret position.\nArguments:\n\n* _`position`_: The clicked text's position. IDENTIFIER lexer.IDENTIFIER (string)\nThe token name for identifier tokens. INDICATOR_CLICK events.INDICATOR_CLICK (string)\nEmitted when clicking the mouse on text that has an indicator present.\nArguments:\n\n* _`position`_: The clicked text's position.\n* _`modifiers`_: A bit-mask of any modifier keys used: `buffer.MOD_CTRL`,\n `buffer.MOD_SHIFT`, `buffer.MOD_ALT`, and `buffer.MOD_META`.\n Note: If you set `buffer.rectangular_selection_modifier` to\n `buffer.MOD_CTRL`, the "Control" modifier is reported as *both* "Control"\n and "Alt" due to a Scintilla limitation with GTK+. INDICATOR_RELEASE events.INDICATOR_RELEASE (string)\nEmitted when releasing the mouse after clicking on text that has an\nindicator present.\nArguments:\n\n* _`position`_: The clicked text's position. @@ -231,6 +231,7 @@ REPLACE events.REPLACE (string)\nEmitted to replace selected (found) text.\nArgu REPLACE_ALL events.REPLACE_ALL (string)\nEmitted to replace all occurrences of found text.\nArguments:\n\n* _`find_text`_: The text to search for.\n* _`repl_text`_: The replacement text. 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()`. +RESUME events.RESUME (string)\nEmitted when resuming Textadept from a suspended state.\nThis event is only emitted by the terminal version. RUN_OUTPUT events.RUN_OUTPUT (string)\nEmitted when executing a language's run shell 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 language's lexer name.\n* `output`: A line of 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 textadept.session.SAVE_ON_QUIT (bool)\nSave the session when quitting.\nThe session file saved is always `textadept.session.DEFAULT_SESSION`, even\nif a different session was loaded with `textadept.session.load()`.\nThe default value is `true` unless the user passed the command line switch\n`-n` or `--nosession` to Textadept. @@ -279,6 +280,7 @@ STYLE_STRING lexer.STYLE_STRING (string)\nThe style typically used for strings. STYLE_TYPE lexer.STYLE_TYPE (string)\nThe style typically used for static types. STYLE_VARIABLE lexer.STYLE_VARIABLE (string)\nThe style typically used for variables. STYLE_WHITESPACE lexer.STYLE_WHITESPACE (string)\nThe style typically used for whitespace. +SUSPEND events.SUSPEND (string)\nEmitted when suspending Textadept. If a handler returns `true`, Textadept\ndoes not suspend.\nThis event is only emitted by the terminal version. TIME_FOREVER buffer.TIME_FOREVER (number, Read-only)\n TYPE lexer.TYPE (string)\nThe token name for type tokens. TYPEDEF textadept.editing.XPM_IMAGES.TYPEDEF (table)\nThe image number for type definitions. @@ -373,7 +375,7 @@ ansi_c _G.keys.ansi_c (table)\nTable of C-specific key bindings. ansi_c _G.snippets.ansi_c (table)\nTable of C-specific snippets. ansi_c _M.ansi_c (module)\nThe ansi_c module.\nIt provides utilities for editing C code. any lexer.any (pattern)\nA pattern that matches any single character. -api_files textadept.editing.api_files (table)\nMap of lexer names to API documentation file tables.\nEach line in an API file consists of the name of a symbol (not the full\nsymbol), a space character, and that symbol's documentation. '\n' represents\na newline character.\n@see show_documentation +api_files textadept.editing.api_files (table)\nMap of lexer names to API documentation file tables.\nEach line in an API file consists of a symbol name (not a fully qualified\nsymbol name), a space character, and that symbol's documentation. '\n'\nrepresents a newline character.\n@see show_documentation append_text buffer.append_text(buffer, text)\nAppends string *text* to the end of the buffer without modifying any existing\nselections or scrolling the text into view.\n@param buffer A buffer.\n@param text The text to append. arg _G.arg (table)\nTable of command line parameters passed to Textadept.\n@see args args _G.args (module)\nProcesses command line arguments for Textadept. diff --git a/modules/lua/tags b/modules/lua/tags index dd9e14ca..fb02dfa5 100644 --- a/modules/lua/tags +++ b/modules/lua/tags @@ -231,6 +231,7 @@ REPLACE _ 0;" F class:events REPLACE_ALL _ 0;" F class:events RESET_AFTER _ 0;" F class:events RESET_BEFORE _ 0;" F class:events +RESUME _ 0;" F class:events RUN_OUTPUT _ 0;" F class:events S _ 0;" f class:lpeg SAVE_ON_QUIT _ 0;" F class:textadept.session @@ -279,6 +280,7 @@ STYLE_STRING _ 0;" F class:lexer STYLE_TYPE _ 0;" F class:lexer STYLE_VARIABLE _ 0;" F class:lexer STYLE_WHITESPACE _ 0;" F class:lexer +SUSPEND _ 0;" F class:events TIME_FOREVER _ 0;" F class:buffer TYPE _ 0;" F class:lexer TYPEDEF _ 0;" F class:textadept.editing.XPM_IMAGES |