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

Function tokenComment

static/editor.md/lib/codemirror/mode/pascal/pascal.js:77–87  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

75 }
76
77 function tokenComment(stream, state) {
78 var maybeEnd = false, ch;
79 while (ch = stream.next()) {
80 if (ch == ")" && maybeEnd) {
81 state.tokenize = null;
82 break;
83 }
84 maybeEnd = (ch == "*");
85 }
86 return "comment";
87 }
88
89 // Interface
90

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected