MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / tokenString

Function tokenString

mini-code-edit/cm/mode/plsql/plsql.js:80–91  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

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

Callers 1

tokenBaseFunction · 0.70

Calls 1

retFunction · 0.70

Tested by

no test coverage detected