MCPcopy
hub / github.com/feiyu563/PrometheusAlert / pushPyScope

Function pushPyScope

static/plugins/codemirror/mode/python/python.js:277–282  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

275 }
276
277 function pushPyScope(state) {
278 while (top(state).type != "py") state.scopes.pop()
279 state.scopes.push({offset: top(state).offset + conf.indentUnit,
280 type: "py",
281 align: null})
282 }
283
284 function pushBracketScope(stream, state, type) {
285 var align = stream.match(/^[\s\[\{\(]*(?:#|$)/, false) ? null : stream.column() + 1

Callers 2

tokenBaseFunction · 0.85
tokenLexerFunction · 0.85

Calls 1

topFunction · 0.85

Tested by

no test coverage detected