mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 06:32:24 +00:00
Document $> and fix escaping
* doc/snippet-development.org: New "Indentation markers" section. * yasnippet-tests.el (indentation-markers): New test. * yasnippet.el (yas--indent-markers): New variable. (yas--indent): Use it instead of searching for $> directly. (yas--indent-parse-create): New function, records occurences of $> into `yas--indent-markers'. (yas--snippet-parse-create): Call it.
This commit is contained in:
@@ -422,3 +422,9 @@ the exit marker.
|
||||
By the way, =C-d= will only clear the field if you cursor is at the
|
||||
beginning of the field /and/ it hasn't been changed yet. Otherwise, it
|
||||
performs the normal Emacs =delete-char= command.
|
||||
|
||||
** Indentation markers
|
||||
|
||||
If [[sym:yas-indent-line][=yas-indent-line=]] is *not* set to '=auto=, it's still possible to
|
||||
indent specific lines by adding an indentation marker, =$>=, somewhere
|
||||
on the line.
|
||||
|
||||
Reference in New Issue
Block a user