MCPcopy Create free account
hub / github.com/existentialmutt/lt-ruby / tokenBaseUntilBrace

Function tokenBaseUntilBrace

codemirror/ruby.js:123–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 }
122
123 function tokenBaseUntilBrace() {
124 var depth = 1;
125 return function(stream, state) {
126 if (stream.peek() == "}") {
127 depth--;
128 if (depth == 0) {
129 state.tokenize.pop();
130 return state.tokenize[state.tokenize.length-1](stream, state);
131 }
132 } else if (stream.peek() == "{") {
133 depth++;
134 }
135 return tokenBase(stream, state);
136 };
137 }
138 function tokenBaseOnce() {
139 var alreadyCalled = false;
140 return function(stream, state) {

Callers 1

readQuotedFunction · 0.85

Calls 1

tokenBaseFunction · 0.85

Tested by

no test coverage detected