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

Function tokenBase

static/editor.md/lib/codemirror/mode/django/django.js:24–33  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

inTagFunction · 0.70

Tested by

no test coverage detected