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

Function tokenLiteral

static/editor.md/lib/codemirror/mode/turtle/turtle.js:77–89  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

75 }
76
77 function tokenLiteral(quote) {
78 return function(stream, state) {
79 var escaped = false, ch;
80 while ((ch = stream.next()) != null) {
81 if (ch == quote && !escaped) {
82 state.tokenize = tokenBase;
83 break;
84 }
85 escaped = !escaped && ch == "\\";
86 }
87 return "string";
88 };
89 }
90
91 function pushContext(state, type, col) {
92 state.context = {prev: state.context, indent: state.indent, col: col, type: type};

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected