UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

16 lines (15 loc) 767 B
import { l as languageMap } from "../index-q0zRzWVD.js"; import { n as getClosestToken, o as voidTags } from "../index-CxiLA9IO.js"; import { h as htmlAutoIndent, c as clikeComment, f as autoCloseTags, x as xmlOpeningTag, e as markupComment } from "../index-Dd0LEIyM.js"; languageMap.php = { comments: clikeComment, getComments: (editor, position) => { if (getClosestToken(editor, ".php", 0, 0, position)) return clikeComment; return markupComment; }, autoIndent: htmlAutoIndent(xmlOpeningTag, voidTags), autoCloseTags: ([start, end], value, editor) => { return !value.includes("<?") || getClosestToken(editor, ".php", 0, 0, start) ? "" : autoCloseTags(editor, start, end, value, xmlOpeningTag, voidTags); } }; //# sourceMappingURL=php.js.map