MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / pushBracketScope

Function pushBracketScope

lib/web/CodeMirror/mode/python/python.js:284–289  ·  view source on GitHub ↗
(stream, state, type)

Source from the content-addressed store, hash-verified

282 }
283
284 function pushBracketScope(stream, state, type) {
285 var align = stream.match(/^([\s\[\{\(]|#.*)*$/, false) ? null : stream.column() + 1
286 state.scopes.push({offset: state.indent + hangingIndent,
287 type: type,
288 align: align})
289 }
290
291 function dedent(stream, state) {
292 var indented = stream.indentation();

Callers 1

tokenLexerFunction · 0.85

Calls 3

columnMethod · 0.80
matchMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected