MCPcopy Create free account
hub / github.com/TruthHun/BookStack / dot

Function dot

static/editor.md/lib/codemirror/mode/jade/jade.js:459–470  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

457 }
458
459 function dot(stream, state) {
460 if (stream.eat('.')) {
461 var innerMode = null;
462 if (state.lastTag === 'script' && state.scriptType.toLowerCase().indexOf('javascript') != -1) {
463 innerMode = state.scriptType.toLowerCase().replace(/"|'/g, '');
464 } else if (state.lastTag === 'style') {
465 innerMode = 'css';
466 }
467 setInnerMode(stream, state, innerMode);
468 return 'dot';
469 }
470 }
471
472 function fail(stream) {
473 stream.next();

Callers 1

nextTokenFunction · 0.85

Calls 1

setInnerModeFunction · 0.85

Tested by

no test coverage detected