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

Function string

mini-code-edit/cm/mode/lua/lua.js:100–110  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

98 }
99
100 function string(quote) {
101 return function(stream, state) {
102 var escaped = false, ch;
103 while ((ch = stream.next()) != null) {
104 if (ch == quote && !escaped) break;
105 escaped = !escaped && ch == "\\";
106 }
107 if (!escaped) state.cur = normal;
108 return "string";
109 };
110 }
111
112 return {
113 startState: function(basecol) {

Callers 1

normalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected