From d9e6c648a8a33d82d7564a26e411fad3eb48a1f7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 26 Mar 2011 16:15:53 -0400 Subject: Updated snippets escape sequence documentation; modules/textadept/snippets.lua --- modules/textadept/snippets.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/textadept/snippets.lua') diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua index 0a69b42b..312cd5b5 100644 --- a/modules/textadept/snippets.lua +++ b/modules/textadept/snippets.lua @@ -101,11 +101,11 @@ module('_m.textadept.snippets', package.seeall) -- It is very important that any `%`, `(`, `)`, `>`, or `]` characters -- **within** placeholders be escaped with a `%` as necessary. Otherwise, -- unexpected results will occur. `%`s only need to be escaped if they are --- proceeded by a digit, `(`s and `)`s only need to be escaped inside default --- text placeholders **if and only if** there is no matching parenthesis (thus, --- nested parenthesis do not need to be escaped), `]`s only need to be escaped --- inside Shell code placeholders, and `>`s only need to be escaped inside Lua --- code placeholders. +-- proceeded by a digit, `(`s and `)`s only need to be escaped directly after a +-- %num sequence or inside default text placeholders **if and only if** there is +-- no matching parenthesis (thus, nested parentheses do not need to be escaped), +-- `]`s only need to be escaped inside Shell code placeholders, and `>`s only +-- need to be escaped inside Lua code placeholders. -- -- ## Example -- -- cgit v1.2.3