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. --- core/.buffer.luadoc | 2 +- modules/textadept/snippets.lua | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/.buffer.luadoc b/core/.buffer.luadoc index 415c41ce..a0e73409 100644 --- a/core/.buffer.luadoc +++ b/core/.buffer.luadoc @@ -617,7 +617,7 @@ -- @field property (table) -- Map of key-value string pairs used by lexers. -- @field property_expanded (table, Read-only) --- Map of key-value string pairs used by lexers with `%()` variable +-- Map of key-value string pairs used by lexers with `$()` and `%()` variable -- replacement performed in values. -- @field property_int (table, Read-only) -- Map of key-value pairs used by lexers with values interpreted as numbers, 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