MCPcopy Index your code
hub / github.com/pandao/editor.md / dedent

Function dedent

lib/codemirror/mode/python/python.js:238–245  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

236 }
237
238 function dedent(stream, state) {
239 var indented = stream.indentation();
240 while (top(state).offset > indented) {
241 if (top(state).type != "py") return true;
242 state.scopes.pop();
243 }
244 return top(state).offset != indented;
245 }
246
247 function tokenLexer(stream, state) {
248 var style = state.tokenize(stream, state);

Callers 1

tokenBaseFunction · 0.70

Calls 1

topFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…