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

Method constructor

static/katex/katex.mjs:12830–12843  ·  view source on GitHub ↗
(input, settings)

Source from the content-addressed store, hash-verified

12828class Lexer {
12829 // category codes, only supports comment characters (14) for now
12830 constructor(input, settings) {
12831 this.input = void 0;
12832 this.settings = void 0;
12833 this.tokenRegex = void 0;
12834 this.catcodes = void 0;
12835 // Separate accents from characters
12836 this.input = input;
12837 this.settings = settings;
12838 this.tokenRegex = new RegExp(tokenRegexString, 'g');
12839 this.catcodes = {
12840 "%": 14 // comment character
12841
12842 };
12843 }
12844
12845 setCatcode(char, code) {
12846 this.catcodes[char] = code;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected