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

Function popContext

static/editor.md/lib/codemirror/mode/go/go.js:119–125  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

117 return state.context = new Context(state.indented, col, type, null, state.context);
118 }
119 function popContext(state) {
120 if (!state.context.prev) return;
121 var t = state.context.type;
122 if (t == ")" || t == "]" || t == "}")
123 state.indented = state.context.indented;
124 return state.context = state.context.prev;
125 }
126
127 // Interface
128

Callers 1

go.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected