MCPcopy Create free account
hub / github.com/TruthHun/BookStack / indent

Function indent

static/editor.md/lib/codemirror/mode/sass/sass.js:105–112  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

103 }
104
105 function indent(state) {
106 if (state.indentCount == 0) {
107 state.indentCount++;
108 var lastScopeOffset = state.scopes[0].offset;
109 var currentOffset = lastScopeOffset + config.indentUnit;
110 state.scopes.unshift({ offset:currentOffset });
111 }
112 }
113
114 function dedent(state) {
115 if (state.scopes.length == 1) return;

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected