diff options
author | 2010-11-11 23:09:00 -0500 | |
---|---|---|
committer | 2010-11-11 23:09:00 -0500 | |
commit | d4b489621375b6e8867f02cb474864a3ac41c581 (patch) | |
tree | ea33ceb677b358e61cdcccc8bffe9e7741bbdb53 /modules/textadept | |
parent | 4f82876510f76025c1e9c24d2b69d0822e4fec42 (diff) | |
download | textadept-d4b489621375b6e8867f02cb474864a3ac41c581.tar.gz textadept-d4b489621375b6e8867f02cb474864a3ac41c581.zip |
Code cleanup.
Diffstat (limited to 'modules/textadept')
-rwxr-xr-x | modules/textadept/snippets.lua | 12 |
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 |