aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2011-03-23 00:06:27 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2011-03-23 00:06:27 -0400
commitce617fad92178e4293e010fc5b427262f5976912 (patch)
tree32255fca95bb4e62c720c7dfa11f53d6ff01127e /modules/lua
parent2bb67ed5f4b61f80c8575b7bd335b4d764f67a3f (diff)
Rewrote _m.textadept.snippets module.
Snippet syntax has changed; see LuaDoc for details.
Diffstat (limited to 'modules/lua')
-rw-r--r--modules/lua/api9
-rw-r--r--modules/lua/tags5
2 files changed, 6 insertions, 8 deletions
diff --git a/modules/lua/api b/modules/lua/api
index ff570dcd..153bd037 100644
--- a/modules/lua/api
+++ b/modules/lua/api
@@ -136,11 +136,10 @@ open _m.textadept.snapopen.open(utf8_paths, filter, exclusive, depth)\nQuickly o
PATHS _m.textadept.snapopen.PATHS\nTable of default UTF-8 paths to search.\n
DEFAULT_DEPTH _m.textadept.snapopen.DEFAULT_DEPTH\nMaximum directory depth to search (defaults to 4).\n
MAX _m.textadept.snapopen.MAX\nMaximum number of files to list (defaults to 1000).\n
-_cancel_current _m.textadept.snippets._cancel_current()\nCancels the active snippet, reverting to the state before its activation,\nand restores the previous running snippet (if any).\n
-_insert _m.textadept.snippets._insert(s_text)\nBegins expansion of a snippet. The text inserted has escape sequences handled.\n@param Optional snippet to expand. If none is specified, the snippet is\ndetermined from the trigger word (left of the caret), lexer, and style.\n@return false if no snippet was expanded; true otherwise.\n
-_list _m.textadept.snippets._list()\nLists available snippets in an autocompletion list. Global snippets and\nsnippets in the current lexer and style are used.\n
-_prev _m.textadept.snippets._prev()\nGoes back to the previous placeholder or tab stop, reverting changes made\nto subsequent ones.\n@return false if no snippet is active; nil otherwise\n
-_show_style _m.textadept.snippets._show_style()\nShows the style at the current caret position in a call tip.\n
+_cancel_current _m.textadept.snippets._cancel_current()\nCancels the active snippet, reverting to the state before its activation,\nand restores the previously running snippet (if any).\n
+_insert _m.textadept.snippets._insert(text)\nInserts a snippet.\n@param Optional snippet text. If none is specified, the snippet text is\ndetermined from the trigger and lexer.\n@return false if no snippet was expanded; true otherwise.\n
+_previous _m.textadept.snippets._previous()\nGoes back to the previous placeholder or tab stop, reverting any changes\nfrom the current placeholder or tab stop.\n@return false if no snippet is active; nil otherwise.\n
+_select _m.textadept.snippets._select()\nPrompts the user to select a snippet to insert from a filtered list\ndialog. Global snippets and snippets in the current lexer are shown.\n
MARK_SNIPPET _m.textadept.snippets.MARK_SNIPPET\nThe unique integer mark used to identify the line that\n marks the end of a snippet.\n\n
MARK_SNIPPET_COLOR _m.textadept.snippets.MARK_SNIPPET_COLOR\nThe Scintilla color used for the line that marks the end of the snippet.\n
process args.process()\nProcesses command line arguments. Add command line switches with\nargs.register(). Any unrecognized arguments are treated as filepaths and\nopened. Generates an 'arg_none' event when no args are present.\n@see register\n
diff --git a/modules/lua/tags b/modules/lua/tags
index 4e7786c3..a9db6c44 100644
--- a/modules/lua/tags
+++ b/modules/lua/tags
@@ -280,9 +280,8 @@ _m.textadept.snippets _ 0;" m
snippets _ 0;" t class:_m.textadept
_cancel_current _ 0;" f class:_m.textadept.snippets
_insert _ 0;" f class:_m.textadept.snippets
-_list _ 0;" f class:_m.textadept.snippets
-_prev _ 0;" f class:_m.textadept.snippets
-_show_style _ 0;" f class:_m.textadept.snippets
+_previous _ 0;" f class:_m.textadept.snippets
+_select _ 0;" f class:_m.textadept.snippets
_G.snippets _ 0;" t class:_m.textadept.snippets
MARK_SNIPPET _ 0;" F class:_m.textadept.snippets
MARK_SNIPPET_COLOR _ 0;" F class:_m.textadept.snippets