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

Function inTag

static/editor.md/lib/codemirror/mode/django/django.js:34–49  ·  view source on GitHub ↗
(close)

Source from the content-addressed store, hash-verified

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

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected