aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/snippets.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept/snippets.lua')
-rw-r--r--modules/textadept/snippets.lua11
1 files changed, 2 insertions, 9 deletions
diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua
index 988424b6..0f4369b3 100644
--- a/modules/textadept/snippets.lua
+++ b/modules/textadept/snippets.lua
@@ -26,11 +26,6 @@ module('_m.textadept.snippets', package.seeall)
-- while `Shift+Tab` tabs backwards through them. Snippets can also be expanded
-- inside one another.
--
--- ## Settings
---
--- * `INDIC_SNIPPET`: The unique integer indicator used to mark the end of a
--- snippet.
---
-- ## Snippet Precedence
--
-- When searching for a snippet to expand in the `snippets` table, snippets in
@@ -122,10 +117,6 @@ module('_m.textadept.snippets', package.seeall)
-- It is recommended to use tab characters instead of spaces like in the last
-- example. Tabs will be converted to spaces as necessary.
--- settings
-INDIC_SNIPPET = 9
--- end settings
-
-- The stack of currently running snippets.
local snippet_stack = {}
@@ -135,6 +126,8 @@ local snippet_stack = {}
-- @name newlines
local newlines = { [0] = '\r\n', '\r', '\n' }
+local INDIC_SNIPPET = _SCINTILLA.next_indic_number()
+
-- Inserts a new snippet.
-- @param text The new snippet to insert.
-- @param trigger The trigger text used to expand the snippet, if any.