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

Function tokenString

static/editor.md/lib/codemirror/mode/css/css.js:90–103  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

88 }
89
90 function tokenString(quote) {
91 return function(stream, state) {
92 var escaped = false, ch;
93 while ((ch = stream.next()) != null) {
94 if (ch == quote && !escaped) {
95 if (quote == ")") stream.backUp(1);
96 break;
97 }
98 escaped = !escaped && ch == "\\";
99 }
100 if (ch == quote || !escaped && quote != ")") state.tokenize = null;
101 return ret("string", "string");
102 };
103 }
104
105 function tokenParenthesized(stream, state) {
106 stream.next(); // Must be '('

Callers 2

tokenBaseFunction · 0.70
tokenParenthesizedFunction · 0.70

Calls 1

retFunction · 0.70

Tested by

no test coverage detected