[textadept] Snippets Changes

From: mitchell <c....at.caladbolg.net>
Date: Thu, 24 Mar 2011 10:30:03 -0400 (Eastern Daylight Time)


I've completely refactored the snippets module. There have been some
syntactic changes:

`shell_code` has been changed to %[shell_code] or %d[shell_code] where d
is a number. If d is present, the code isn't run until the appropriate
placeholder is hit. Any ']'s in shell_code MUST be escaped (%]).

%(lua_code) has been changed to %<lua_code> or %d<lua_code>. The same
rules apply as shell code. Any '>'s in lua_code MUST be escaped (%>).

%d(pattern|replacement) has been deprecated. You can use %n<lua_code>
where n = d + 1 to achieve the same result.

There are examples in the new snippets.lua documentation. All snippets in
the language modules (including the modules repository) have been updated
appropriately as well for your reference.

Previously in snippets, escape sequences would be replaced by strange \ddd
sequences. That doesn't happen anymore.

Please report any bugs you find with the snippets that caused them so I
can add them to the test cases.

Received on Thu 24 Mar 2011 - 10:30:03 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:02:56 EST