MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / tokenString

Function tokenString

static/js/codemirror/mode/plsql/plsql.js:79–90  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

77 }
78
79 function tokenString(quote) {
80 return function(stream, state) {
81 var escaped = false, next, end = false;
82 while ((next = stream.next()) != null) {
83 if (next == quote && !escaped) {end = true; break;}
84 escaped = !escaped && next == "\\";
85 }
86 if (end || !(escaped || multiLineStrings))
87 state.tokenize = tokenBase;
88 return ret("string", "plsql-string");
89 };
90 }
91
92 function tokenComment(stream, state) {
93 var maybeEnd = false, ch;

Callers 1

tokenBaseFunction · 0.70

Calls 2

retFunction · 0.70
nextMethod · 0.45

Tested by

no test coverage detected