Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function readSnippet(path, name) {
if (name)
path += name
console.log(name)
if (!/\.(tmSnippet|sublime-snippet|plist)$/i.test(path))
return
console.log(name)
var plistString = fs.readFileSync(path, "utf8");
plist.parseString(plistString, function(_, plist){
snippets.push(plist)
})
}
function readSnippet(path, name) {
if (name)
path += name
console.log(name)
if (!/\.(tmSnippet|sublime-snippet|plist)$/i.test(path))
return
console.log(name)
var plistString = fs.readFileSync(path, "utf8");
plist.parseString(plistString, function(_, plist){
snippets.push(plist)
})
}
function parseTheme(themeXml, callback) {
parseString(themeXml, function(_, theme) {
callback(theme[0])
});
}
function parseTheme(themeXml, callback) {
parseString(themeXml, function(_, theme) {
callback(theme[0])
});
}