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

Function tokenComment

static/editor.md/lib/codemirror/mode/go/go.js:97–107  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

95 }
96
97 function tokenComment(stream, state) {
98 var maybeEnd = false, ch;
99 while (ch = stream.next()) {
100 if (ch == "/" && maybeEnd) {
101 state.tokenize = tokenBase;
102 break;
103 }
104 maybeEnd = (ch == "*");
105 }
106 return "comment";
107 }
108
109 function Context(indented, column, type, align, prev) {
110 this.indented = indented;

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected