diff options
-rw-r--r-- | core/.buffer.luadoc | 2 | ||||
-rw-r--r-- | modules/textadept/snippets.lua | 5 |
2 files changed, 6 insertions, 1 deletions
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) |