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

Function tokenSGMLComment

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

Source from the content-addressed store, hash-verified

107 }
108
109 function tokenSGMLComment(stream, state) {
110 var dashes = 0, ch;
111 while ((ch = stream.next()) != null) {
112 if (dashes >= 2 && ch == ">") {
113 state.tokenize = tokenBase;
114 break;
115 }
116 dashes = (ch == "-") ? dashes + 1 : 0;
117 }
118 return ret("comment", "comment");
119 }
120
121 function tokenString(quote) {
122 return function(stream, state) {

Callers 1

tokenBaseFunction · 0.70

Calls 1

retFunction · 0.70

Tested by

no test coverage detected