aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-11-11 23:09:00 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2010-11-11 23:09:00 -0500
commitd4b489621375b6e8867f02cb474864a3ac41c581 (patch)
treeea33ceb677b358e61cdcccc8bffe9e7741bbdb53 /modules/textadept
parent4f82876510f76025c1e9c24d2b69d0822e4fec42 (diff)
downloadtextadept-d4b489621375b6e8867f02cb474864a3ac41c581.tar.gz
textadept-d4b489621375b6e8867f02cb474864a3ac41c581.zip
Code cleanup.
Diffstat (limited to 'modules/textadept')
-rwxr-xr-xmodules/textadept/snippets.lua12
1 files changed, 7 insertions, 5 deletions
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