I have a snippet for C-like languages that looks like this:
snippet { "braces"
{
$0
}
endsnippet
I would like to restrict this snippet to expand only if the tab trigger occurs at the end of the line.
I tried to use a regex trigger instead ({$
) without success. To quote the documentation: "The snippet is expanded if the recently typed characters match the regular expression".
/{$/
even if it's in the middle of the line...