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

Function tokenString

static/editor.md/lib/codemirror/mode/modelica/modelica.js:48–60  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

46 }
47
48 function tokenString(stream, state) {
49 var escaped = false, ch;
50 while ((ch = stream.next()) != null) {
51 if (ch == '"' && !escaped) {
52 state.tokenize = null;
53 state.sol = false;
54 break;
55 }
56 escaped = !escaped && ch == "\\";
57 }
58
59 return "string";
60 }
61
62 function tokenIdent(stream, state) {
63 stream.eatWhile(isDigit);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected