MCPcopy Create free account
hub / github.com/sql-js/sql.js / tokenLiteral

Function tokenLiteral

GUI/codemirror/mode/sql/sql.js:117–129  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

115
116 // 'string', with char specified in quote escaped by '\'
117 function tokenLiteral(quote) {
118 return function(stream, state) {
119 var escaped = false, ch;
120 while ((ch = stream.next()) != null) {
121 if (ch == quote && !escaped) {
122 state.tokenize = tokenBase;
123 break;
124 }
125 escaped = !escaped && ch == "\\";
126 }
127 return "string";
128 };
129 }
130 function tokenComment(stream, state) {
131 while (true) {
132 if (stream.skipTo("*")) {

Callers 1

tokenBaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…