Snippet placeholder trouble


#1

I’m trying to write a snippet for def in Scala:

'method':
  'prefix': 'def'
  'body': 'def ${1:method}${2:(${3:arg}: ${4:Type})} = {\n\t$0\n}'

After typing in the method name and hitting tab, the parentheses and arguments should be highlighted, but Atom highlights the most of the method name I typed too (everything but the first character). Am I doing something wrong or is this a bug?


#2

This is a probably a bug in the snippets package, can you open an issue there?


#3

Issue opened. Thanks.


#4

Pull Request: https://github.com/atom/snippets/pull/16