Multiple snippets for same source?


#1

Hi,
when I have just one javascript snippet - it works fine.
When I try to add a second snippet - I keep getting error popups, saying things like “unexpected :” or “unexpected tab”

Here are my 2 snippets:

'.source.js':
   'JS Comment':
     'prefix': '//'
     'body': """
     // Comment goes here
       """
   'JS Block Comment':
     'prefix': '///'
     'body': """
     //-----------------
     // Comment goes here
     //-----------------
       """

Can anyone please tell me what I am doing wrong?
Thank you all in advance.

UPDATE
I managed to work out what was wrong - each snippet needs to be in line with the snippet above!
I would never have expected that :slight_smile: