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

Function tokenBase

static/editor.md/lib/codemirror/mode/tornado/tornado.js:25–34  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

23 keywords = new RegExp("^((" + keywords.join(")|(") + "))\\b");
24
25 function tokenBase (stream, state) {
26 stream.eatWhile(/[^\{]/);
27 var ch = stream.next();
28 if (ch == "{") {
29 if (ch = stream.eat(/\{|%|#/)) {
30 state.tokenize = inTag(ch);
31 return "tag";
32 }
33 }
34 }
35 function inTag (close) {
36 if (close == "{") {
37 close = "}";

Callers

nothing calls this directly

Calls 1

inTagFunction · 0.70

Tested by

no test coverage detected