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

Function tokenComment

static/editor.md/lib/codemirror/mode/clike/clike.js:88–98  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

86 }
87
88 function tokenComment(stream, state) {
89 var maybeEnd = false, ch;
90 while (ch = stream.next()) {
91 if (ch == "/" && maybeEnd) {
92 state.tokenize = null;
93 break;
94 }
95 maybeEnd = (ch == "*");
96 }
97 return "comment";
98 }
99
100 function Context(indented, column, type, align, prev) {
101 this.indented = indented;

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected