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

Function start

static/editor.md/lib/codemirror/mode/http/http.js:21–31  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

19 }
20
21 function start(stream, state) {
22 if (stream.match(/^HTTP\/\d\.\d/)) {
23 state.cur = responseStatusCode;
24 return "keyword";
25 } else if (stream.match(/^[A-Z]+/) && /[ \t]/.test(stream.peek())) {
26 state.cur = requestPath;
27 return "keyword";
28 } else {
29 return failFirstLine(stream, state);
30 }
31 }
32
33 function responseStatusCode(stream, state) {
34 var code = stream.match(/^\d+/);

Callers

nothing calls this directly

Calls 1

failFirstLineFunction · 0.85

Tested by

no test coverage detected