It is not possible to have a literal backslash in front of Tabstops
Bug #746446 reported by
SirVer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UltiSnips |
Fix Released
|
High
|
Unassigned |
Bug Description
The following should work
snippet c "\command{}"
\\$1{$2}
endsnippet
but doesn't. The $1 is not interpreted as a placeholder. This is likely due to a bug in the parsing regular expression.
A work around is to use a trivial python interpolation:
snippet c "command"
`!p snip.rv='\\'`$1{$2}
endsnippet
Related branches
Changed in ultisnips: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → 1.4 |
To post a comment you must log in.
Fixed in r280.