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

Function readBracket

mini-code-edit/cm/mode/lua/lua.js:57–62  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

55 var dedentPartial = prefixRE(["end", "until", "\\)", "}", "else", "elseif"]);
56
57 function readBracket(stream) {
58 var level = 0;
59 while (stream.eat("=")) ++level;
60 stream.eat("[");
61 return level;
62 }
63
64 function normal(stream, state) {
65 var ch = stream.next();

Callers 1

normalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected