fix snippet file parsing

This commit is contained in:
nightwing 2013-09-05 00:28:42 +04:00
commit 62c514135d
4 changed files with 13 additions and 10 deletions

View file

@ -600,7 +600,7 @@ env.editSnippets = function() {
editor.on("blur", function() {
m.snippetText = editor.getValue();
snippetManager.unregister(m.snippets);
m.snippets = snippetManager.parseSnippetFile(m.snippetText);
m.snippets = snippetManager.parseSnippetFile(m.snippetText, m.scope);
snippetManager.register(m.snippets);
})
sp.$editors[0].once("changeMode", function() {