aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-02-19 22:17:05 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2020-02-19 22:17:05 -0500
commit7b36c0c020506c6572e3d53e89aceb4dab02cbf8 (patch)
tree6feeb2ca61928b4372cf0687b7f6868c64443928 /modules/textadept
parent2318f9773a62cc459ed46876c19c9c4754e3424a (diff)
downloadtextadept-7b36c0c020506c6572e3d53e89aceb4dab02cbf8.tar.gz
textadept-7b36c0c020506c6572e3d53e89aceb4dab02cbf8.zip
Updated LuaDoc.
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/snippets.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua
index 46a97dd6..598e603a 100644
--- a/modules/textadept/snippets.lua
+++ b/modules/textadept/snippets.lua
@@ -104,6 +104,8 @@ local M = {}
--
-- @field INDIC_PLACEHOLDER (number)
-- The snippet placeholder indicator number.
+-- @field _G.textadept.editing.autocompleters.snippet (function)
+-- Autocompleter function for snippet trigger words.
module('textadept.snippets')]=]
M.INDIC_PLACEHOLDER = _SCINTILLA.next_indic_number()
@@ -640,6 +642,9 @@ events.connect(events.VIEW_NEW, function()
buffer.indic_style[INDIC_CURRENTPLACEHOLDER] = buffer.INDIC_HIDDEN
end)
+-- Returns for the word behind the caret a list of snippet trigger word
+-- completions.
+-- @see textadept.editing.autocomplete
textadept.editing.autocompleters.snippet = function()
local list = {}
local trigger, snippets = find_snippet(true)