MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / twTokenCode

Function twTokenCode

lib/web/CodeMirror/mode/tiddlywiki/tiddlywiki.js:206–225  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

204
205 // tw code
206 function twTokenCode(stream, state) {
207 var sb = state.block;
208
209 if (sb && stream.current()) {
210 return "comment";
211 }
212
213 if (!sb && stream.match(reUntilCodeStop)) {
214 state.tokenize = tokenBase;
215 return "comment";
216 }
217
218 if (sb && stream.sol() && stream.match(reCodeBlockStop)) {
219 state.tokenize = tokenBase;
220 return "comment";
221 }
222
223 stream.next();
224 return "comment";
225 }
226
227 // tw em / italic
228 function twTokenEm(stream, state) {

Callers

nothing calls this directly

Calls 4

currentMethod · 0.80
solMethod · 0.80
nextMethod · 0.65
matchMethod · 0.45

Tested by

no test coverage detected