diff --git a/lib/figlet.coffee b/lib/figlet.coffee index 1b9499a..c7f14f6 100644 --- a/lib/figlet.coffee +++ b/lib/figlet.coffee @@ -65,7 +65,11 @@ module.exports = # Then, for the remaining string, we'll check whether there's a comment # or not scope = editor.scopeDescriptorForBufferPosition([start.row, 0]) - {commentStartString, commentEndString} = editor.languageMode.commentStartAndEndStringsForScope?(scope) ? editor.getCommentStrings(scope) + {commentStartString, commentEndString} = ( + editor.languageMode.commentStartAndEndStringsForScope?(scope) ? + editor.getCommentStrings?(scope) ? + editor.getScopedSettingsDelegate().getCommentStrings(scope) + ) if commentStartString? commentStartRegexString = escapeRegExp(commentStartString).replace(/(\s+)$/, '')