Hash within double-quoted strings in Ruby package

Dayton Nolan 7 years ago 0

In the default Ruby package there is a completion for interpolation within double quoted strings which is handy but is annoying when attempting to insert a literal hash. The following is a way to accommodate both use-cases by allowing to delete the enclosing braces or tab into them:

"contents": "#${1:{${2:$SELECTION}\\}}"