"{" snippet doesn't work

1 view
Skip to first unread message

Chris

unread,
Dec 12, 2009, 8:24:43 AM12/12/09
to smart-snippet and YASnippet
Hi,
I define a snippet called "{" in cc-mode:

# -*- mode: snippet -*-
# name: {
# --
{
$0
}


I want to use it when I define a function :

int foo()
{ //I press tab here, but no effect.

I wan't to know how should I write this snippet.

DominikH

unread,
Jan 2, 2010, 5:42:07 PM1/2/10
to smart-snippet and YASnippet
I got the same problem with a snippet called "#".

I've tried both using the filename as the trigger and also using the
"# key:" way, to no avail.
I am using YASnippert from SVN. when olding an older version (can't
exactly say which one, but it had a different file structure as well),
the # snippet worked.

capitaomorte

unread,
Jan 3, 2010, 8:33:23 PM1/3/10
to smart-snippet and YASnippet
happy new year
feliz ano novo

back again to my adopted chinese kitten yasnippet :-)

will look into this now. glad you're using the SVN, keep bug reports
and any observations/feedback coming. Try not to open any issues,
unless they're improvements over 0.6.1

j

Reply all
Reply to author
Forward
0 new messages