!function(){for(var e=["clike","css","javascript"],n=0;n<e.length;++n)CodeMirror.extendMode(e[n],{blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * "});CodeMirror.commands.newlineAndIndentContinueComment=function(e){var n,t=e.getCursor(),o=e.getTokenAt(t),i=CodeMirror.innerMode(e.getMode(),o.state).mode;if("comment"==o.type&&i.blockCommentStart){var l,m=o.string.indexOf(i.blockCommentEnd),r=e.getRange({line:t.line,ch:0},{line:t.line,ch:o.end});if(-1!=m&&m==o.string.length-i.blockCommentEnd.length);else if(0==o.string.indexOf(i.blockCommentStart)){if(n=r.slice(0,o.start),!/^\s*$/.test(n)){n="";for(var c=0;c<o.start;++c)n+=" "}}else-1!=(l=r.indexOf(i.blockCommentContinue))&&l+i.blockCommentContinue.length>o.start&&/^\s*$/.test(r.slice(0,l))&&(n=r.slice(0,l))}null!=n?e.replaceSelection("\n"+n+i.blockCommentContinue,"end"):e.execCommand("newlineAndIndent")}}();