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

Function inTag

static/editor.md/lib/codemirror/mode/tornado/tornado.js:35–50  ·  view source on GitHub ↗
(close)

Source from the content-addressed store, hash-verified

33 }
34 }
35 function inTag (close) {
36 if (close == "{") {
37 close = "}";
38 }
39 return function (stream, state) {
40 var ch = stream.next();
41 if ((ch == close) && stream.eat("}")) {
42 state.tokenize = tokenBase;
43 return "tag";
44 }
45 if (stream.match(keywords)) {
46 return "keyword";
47 }
48 return close == "#" ? "comment" : "string";
49 };
50 }
51 return {
52 startState: function () {
53 return {tokenize: tokenBase};

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected