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

Function tagNameState

static/editor.md/lib/codemirror/mode/xml/xml.js:221–230  ·  view source on GitHub ↗
(type, stream, state)

Source from the content-addressed store, hash-verified

219 }
220 }
221 function tagNameState(type, stream, state) {
222 if (type == "word") {
223 state.tagName = stream.current();
224 setStyle = "tag";
225 return attrState;
226 } else {
227 setStyle = "error";
228 return tagNameState;
229 }
230 }
231 function closeTagNameState(type, stream, state) {
232 if (type == "word") {
233 var tagName = stream.current();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected