aboutsummaryrefslogtreecommitdiff
path: root/modules/cpp/init.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-03-23 18:55:39 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-03-23 18:55:39 -0400
commit7574f919fe853343be78f88a1b8594c72e5ef28d (patch)
tree4d4aef6532c3d8487d6e15ef4b871ffd1c4828de /modules/cpp/init.lua
parentdf3c07f9708affb1313bb528e684d73ec18c3bbd (diff)
downloadtextadept-7574f919fe853343be78f88a1b8594c72e5ef28d.tar.gz
textadept-7574f919fe853343be78f88a1b8594c72e5ef28d.zip
Updated language modules to use new snippet syntax.
Diffstat (limited to 'modules/cpp/init.lua')
-rw-r--r--modules/cpp/init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/cpp/init.lua b/modules/cpp/init.lua
index 8f661fe0..7c27a54a 100644
--- a/modules/cpp/init.lua
+++ b/modules/cpp/init.lua
@@ -103,9 +103,9 @@ _G.keys.cpp = {
-- @name _G.snippets.cpp
if type(_G.snippets) == 'table' then
_G.snippets.cpp = {
- rc = 'reinterpret_cast<%1>(%2(%(selected_text)))',
- sc = 'static_cast<%1>(%2(%(selected_text)))',
- cc = 'const_cast<%1>(%2(%(selected_text)))',
+ rc = 'reinterpret_cast<%1>(%2(%<selected_text>))',
+ sc = 'static_cast<%1>(%2(%<selected_text>))',
+ cc = 'const_cast<%1>(%2(%<selected_text>))',
-- Lua snippets
lf = 'static int %1(function)(lua_State *%2(lua)) {\n\t%0\n\treturn 0;\n}',