UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

13 lines (12 loc) 602 B
import { l as languageMap } from "../index-Bb4AMnd0.js"; import { f as getClosestToken } from "../index-2teoWRgh.js"; import { m as markupLanguage } from "../index-BVM7eCVX.js"; const comment = ["(:", ":)"]; const xquery = languageMap.xquery = markupLanguage( { block: comment }, /<(?!!|\d)([^\s/=>$<%]+)(?:\s+[^\s/=>]+(?:\s*=\s*(["'])(?:\{\{|\{(?!\{)(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})*\}|(?!\2)[^{])*\2)?)*\s*>[ ]*$/ ); xquery.getComments = (editor, position) => ({ block: getClosestToken(editor, ".plain-text", 0, 0, position) ? ["{(:", ":)}"] : comment }); //# sourceMappingURL=xquery.js.map