You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@karangb Yes that seems to be expected behavior. The snipmate docs mentions the second case but does not specify what should happen when the $ is not escaped:
Anywhere in a snippet, a backslash escapes the character following it,
regardless of whether that character is special or not. That is, '\a' will
always result in an 'a' in the output. A single backslash can be output by
using '\\'.
I'm using neovim, if that's important. I'm also only talking about the SnipMate snippets.
The $ symbols which are intended to be inserted into the text need to be escaped in the snippet definitions for sh snippets.
For example in the getopt snippet, the line
echo "Usage : $${0:0} [options] [--]
should be
echo "Usage : \$${0:0} [options] [--]
and even those $ symbols which don't precede a tab stop require this also.
The text was updated successfully, but these errors were encountered: