aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-10-12 22:31:09 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-10-12 22:31:09 -0400
commit658eeed0bc6a5dead1012affb6e69ab096c78571 (patch)
tree4419145919bd16c85b591709d83c3a517e854796 /modules/textadept
parent99aa80aa792a6ba73c987cd784be4ccf1da3324c (diff)
downloadtextadept-658eeed0bc6a5dead1012affb6e69ab096c78571.tar.gz
textadept-658eeed0bc6a5dead1012affb6e69ab096c78571.zip
Do not interpret `%n</...>` as transforms; modules/textadept/snippets.lua
They are often seen in XML snippets and escaping would be tedious.
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/snippets.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua
index 5c039d12..d5e2df70 100644
--- a/modules/textadept/snippets.lua
+++ b/modules/textadept/snippets.lua
@@ -177,8 +177,8 @@ local function new_snippet(text, trigger)
index = Cg(R('09') / tonumber, 'index'),
parens = '(' * Cg((1 - S('()') + V('parens'))^0, 'default') * ')',
simple = Cg(Cc(true), 'simple'), transform = Cg(Cc(true), 'transform'),
- angles = '<' * Cg((1 - S('<>') + V('angles'))^0, 'lua_code') * '>',
- brackets = '[' * Cg((1 - S('[]') + V('brackets'))^0, 'sh_code') * ']'
+ brackets = '[' * Cg((1 - S('[]') + V('brackets'))^0, 'sh_code') * ']',
+ angles = '<' * -P('/') * Cg((1 - S('<>') + V('angles'))^0, 'lua_code') * '>'
}
-- A snippet placeholder.
-- Each placeholder is stored in a snippet snapshot.