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

Function tokenNestedComment

static/editor.md/lib/codemirror/mode/d/d.js:102–112  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

100 }
101
102 function tokenNestedComment(stream, state) {
103 var maybeEnd = false, ch;
104 while (ch = stream.next()) {
105 if (ch == "/" && maybeEnd) {
106 state.tokenize = null;
107 break;
108 }
109 maybeEnd = (ch == "+");
110 }
111 return "comment";
112 }
113
114 function Context(indented, column, type, align, prev) {
115 this.indented = indented;

Callers 1

tokenBaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected