Snippet placeholder trouble


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

  '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?


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


Issue opened. Thanks.


Pull Request: