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

Function beginParams

static/editor.md/lib/codemirror/mode/stex/stex.js:205–222  ·  view source on GitHub ↗
(source, state)

Source from the content-addressed store, hash-verified

203 }
204
205 function beginParams(source, state) {
206 var ch = source.peek(), lastPlug;
207 if (ch == '{' || ch == '[') {
208 lastPlug = peekCommand(state);
209 lastPlug.openBracket(ch);
210 source.eat(ch);
211 setState(state, normal);
212 return "bracket";
213 }
214 if (/[ \t\r]/.test(ch)) {
215 source.eat(ch);
216 return null;
217 }
218 setState(state, normal);
219 popCommand(state);
220
221 return normal(source, state);
222 }
223
224 return {
225 startState: function() {

Callers

nothing calls this directly

Calls 4

peekCommandFunction · 0.85
setStateFunction · 0.85
popCommandFunction · 0.85
normalFunction · 0.70

Tested by

no test coverage detected