It is not possible to have a literal backslash in front of Tabstops

Bug #746446 reported by SirVer
8
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

SirVer (sirver)
Changed in ultisnips:
status: New → Confirmed
importance: Undecided → High
milestone: none → 1.4
Revision history for this message
SirVer (sirver) wrote :

Fixed in r280.

Changed in ultisnips:
status: Confirmed → Fix Committed
Revision history for this message
SirVer (sirver) wrote :

Release in 1.4.

Changed in ultisnips:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.