Comment 0 for bug 1252188

Revision history for this message
Maxim Gonchar (gmaxfl) wrote :

Something wrong happens when I extend the default snippet for begin/end expansion:

snippet "b(egin)?" "begin{} / end{}" !br
\begin{${1:something}}$2
 ${0:${VISUAL}}
\end{$1}
endsnippet

Then I type:
begin<tab>test<C-j>{option}

and the output I get is the following:
\begin{test}{option}

\end{test}{option}

It's clear that the string '{option}' is not supposed to be at the end.

Py version:
2.7.5 (default, May 12 2013, 12:00:47)
[GCC 4.8.0 20130502 (prerelease)]