aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/snippets.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-04-29 17:49:58 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-04-29 17:49:58 -0400
commit3665e0faa9691e9add52e36f12c5c5c8277ebbf5 (patch)
treecc5f9109f90739935bfd696373348cf2fa8523b5 /modules/textadept/snippets.lua
parentde3968039e6e4af50bc4cff38a563598585bd5ca (diff)
downloadtextadept-3665e0faa9691e9add52e36f12c5c5c8277ebbf5.tar.gz
textadept-3665e0faa9691e9add52e36f12c5c5c8277ebbf5.zip
Added note to use tabs in snippets; modules/textadept/snippets.lua
Diffstat (limited to 'modules/textadept/snippets.lua')
-rw-r--r--modules/textadept/snippets.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua
index 5b7e348a..3fff2de2 100644
--- a/modules/textadept/snippets.lua
+++ b/modules/textadept/snippets.lua
@@ -112,12 +112,15 @@ module('_m.textadept.snippets', package.seeall)
-- _G.snippets.snippet = '_G.snippets.%1 = \'%0\''
-- _G.snippets.file = '%<buffer.filename>'
-- _G.snippets.lua = {
--- f = 'function %1(name)(%2(args))\n %0\nend'
+-- f = 'function %1(name)(%2(args))\n\t%0\nend'
-- }
--
-- The first two snippets are global. The first is quite simple to understand.
-- The second runs Lua code to determine the current buffer's filename and
-- inserts it. The last snippet expands only when editing Lua code.
+--
+-- 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