]> code.delx.au - gnu-emacs-elpa/commit
Ignore trailing spaces in snippet definitions
authorSharif Nassar <sharif@mrwacky.com>
Sun, 8 Nov 2015 18:28:16 +0000 (10:28 -0800)
committerNoam Postavsky <npostavs@users.sourceforge.net>
Sun, 8 Nov 2015 23:05:09 +0000 (18:05 -0500)
commit1cf723a408800b489a5f74bd14219a74b665a7f3
tree26d5f14c9770a9f4ea45a5664144e8760db9bf0e
parent3aa7cb29d49b7d6af37f1c32340ca24b9f0d77de
Ignore trailing spaces in snippet definitions

Probably nobody wants a snippet `key` with a trailing space. It can
be hard to differentiate from a `key` without trailing space. The
default `<TAB>` behavior of yasnippet will never expand these.

* yasnippet.el (yas--parse-template): Ignore trailing spaces in snippet
  definitions.
* yasnippet-tests.el (deftest ignore-trailing-whitespace): New test for
  new behavior.

Copyright-paperwork-exempt: yes
yasnippet-tests.el
yasnippet.el