sass-formatter
Version:
TypeScript Sass formatter
11 lines (10 loc) • 506 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormatHandleBlockComment = FormatHandleBlockComment;
const utility_1 = require("../utility");
function FormatHandleBlockComment(text, STATE) {
if (/^[\t ]*\/\*/.test(text)) {
return (0, utility_1.replaceSpacesOrTabs)(text, STATE);
}
return (0, utility_1.replaceWithOffset)(text, (0, utility_1.getIndentationOffset)(text, STATE.CONTEXT.blockCommentDistance + 1, STATE.CONFIG.tabSize).offset, STATE);
}