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

Function tokenCComment

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

Source from the content-addressed store, hash-verified

95 }
96
97 function tokenCComment(stream, state) {
98 var maybeEnd = false, ch;
99 while ((ch = stream.next()) != null) {
100 if (maybeEnd && ch == "/") {
101 state.tokenize = tokenBase;
102 break;
103 }
104 maybeEnd = (ch == "*");
105 }
106 return ret("comment", "comment");
107 }
108
109 function tokenSGMLComment(stream, state) {
110 var dashes = 0, ch;

Callers 1

tokenBaseFunction · 0.70

Calls 1

retFunction · 0.70

Tested by

no test coverage detected