From 7b36c0c020506c6572e3d53e89aceb4dab02cbf8 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 19 Feb 2020 22:17:05 -0500 Subject: Updated LuaDoc. --- modules/textadept/snippets.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/textadept') 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) -- cgit v1.2.3