snippet ending with whitespace is not expanded
Bug #1204508 reported by
Rinat Shigapov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UltiSnips |
Confirmed
|
Low
|
Unassigned |
Bug Description
I want to add a snippet ending with whitespace:
snippet "# "
expanded snippet
endsnippet
But this snippet is not expanded. I use <c-j> as a keystroke.
python version 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC]
To post a comment you must log in.
Try using a regular expression trigger. While I agree that the documentation reads as if this should work, ultisnips always expects its trigger to be at the border of words. You can circumvent the problem using a tab trigger though.