Allow whitespace after last snippet declaration

This commit is contained in:
Nathan Sobo
2012-06-20 21:53:06 -06:00
parent 4590321f0a
commit c276a4029e

View File

@@ -1,4 +1,4 @@
snippets = snippets:snippet+ {
snippets = snippets:snippet+ ws? {
var snippetsByPrefix = {};
snippets.forEach(function(snippet) {
snippetsByPrefix[snippet.prefix] = snippet