Last tabstop ends before the last symbol in cases with default text
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UltiSnips |
Fix Released
|
Critical
|
Unassigned |
Bug Description
I have a CSS snippet for the @font-face block:
snippet @f+
@font-face {
font-
src:
src:
url($2.ttf) format('truetype'),
}
endsnippet
So I want to have last tab stop right after the last bracket, but it starts producing actual tab symbols right before the last bracket. Removing third line of the snippet solve everything. The same problem with the following snippet:
snippet bd+
border:${1:1px} ${2:solid} ${3:#000};
endsnippet
Last tab stop should be after semicolon, but it starts producing tabs right before it. It could be solved by adding extra space at the end of the snippet, but I don't need it in my code.
The following snippet (without default text for the tab stops) works just fine:
snippet @f
@font-face {
font-family:$1;
src:local($2), url($3) format($4);
}
endsnippet
So the problem is obviously caused by ${1:blah} default value replacement.
- - -
plugins:
— pathogen
— solarized
— ultisnips
output:
2.6.6 (r266:84292, Jun 16 2011, 16:59:16)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]
I cannot reproduce this problem with current trunk version of UltiSnips. For me, all snippets seem to work fine. Could you please provide your .vimrc, especially the UltiSnips configuration variables?