From d4b489621375b6e8867f02cb474864a3ac41c581 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 11 Nov 2010 23:09:00 -0500 Subject: Code cleanup. --- modules/textadept/snippets.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'modules/textadept/snippets.lua') diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua index 6ea39563..4d426532 100755 --- a/modules/textadept/snippets.lua +++ b/modules/textadept/snippets.lua @@ -270,11 +270,13 @@ local function next_tab_stop() -- Place additional carets at mirrors. local _, _, text = snippet_info() text = text:gsub('(%%%d+%b())', - function(mirror) - -- Lua code in replacement mirrors may contain '%' sequences; do not - -- treat as mirrors - if mirror:find('|') then return string.rep('_', #mirror) end - end) + function(mirror) + -- Lua code in replacement mirrors may contain '%' + -- sequences; do not treat as mirrors + if mirror:find('|') then + return string.rep('_', #mirror) + end + end) for s, e in text:gmatch('()%%'..index..'()[^(]') do buffer:add_selection(s_start + s - 1, s_start + e - 1) end -- cgit v1.2.3