aboutsummaryrefslogtreecommitdiff
path: root/modules/cpp/snippets.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-04-08 20:01:44 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-04-08 20:01:44 -0400
commitd7d389404806cf9a512cbe2b7d9700fe983a40d6 (patch)
tree86201ce2d93ca01e8d236cd2f41c250ea8d483c9 /modules/cpp/snippets.lua
parent9999a72d673df993948216b7ed79f9f77fc53f9d (diff)
downloadtextadept-d7d389404806cf9a512cbe2b7d9700fe983a40d6.tar.gz
textadept-d7d389404806cf9a512cbe2b7d9700fe983a40d6.zip
Respect tab settings for snippets.
Thanks to Rob Gieseke.
Diffstat (limited to 'modules/cpp/snippets.lua')
-rw-r--r--modules/cpp/snippets.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/cpp/snippets.lua b/modules/cpp/snippets.lua
index 98eab9b0..1b91157d 100644
--- a/modules/cpp/snippets.lua
+++ b/modules/cpp/snippets.lua
@@ -13,8 +13,8 @@ if type(snippets) == 'table' then
cc = 'const_cast<%1>(%2(%(selected_text)))',
-- Lua snippets
- lf = 'static int %1(function)(lua_State *%2(lua)) {\n %0\n return 0;\n}',
- lff = 'LF %1(function)(lua_State *%2(lua)) {\n %0\n return 0;\n}',
+ lf = 'static int %1(function)(lua_State *%2(lua)) {\n\t%0\n\treturn 0;\n}',
+ lff = 'LF %1(function)(lua_State *%2(lua)) {\n\t%0\n\treturn 0;\n}',
ls = 'lua_State',
lgf = 'lua_getfield(%1(lua), %2(-1), %3(field));',
lgg = 'lua_getglobal(%1(lua), %2(global));',