diff --git a/lib/atom-underscore.js b/lib/atom-underscore.js index 868dfca..4b59ace 100644 --- a/lib/atom-underscore.js +++ b/lib/atom-underscore.js @@ -183,7 +183,12 @@ module.exports = { if (errorLineNumber === 1) { atom.notifications.addWarning('Your Underscore template has errors.'); } else { - if (error.toString().substring(30) !== '<' && error.toString().substring(30) !== '>') { + if (error.toString().substring(30) !== '<' + && error.toString().substring(30) !== '>' + && error.toString().substring(30) !== ')' + && error.toString().substring(30) !== '(' + && error.toString().substring(30) !== '{' + && error.toString().substring(30) !== '}') { atom.notifications.addWarning('Your Underscore template has an error at line ' + errorLineNumber); } else { atom.notifications.addWarning('Your Underscore template has errors.');