prism-code-editor-lightweight
Version:
Lightweight, extensible code editor component for the web using Prism
10 lines (9 loc) • 333 B
JavaScript
import { getClosestToken } from "../utils/index.js";
import { f as markupTemplateLang } from "../index-Fp08-m-Z.js";
markupTemplateLang("tt2", {
block: ["[%#", "%]"]
}).getComments = (editor, position) => ({
line: getClosestToken(editor, ".tt2", 0, 0, position) && "#",
block: ["[%#", "%]"]
});
//# sourceMappingURL=tt2.js.map