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-CKRNGLIi.js"; import { n as getClosestToken } from "../index-BvZmi6ce.js"; import { m as markupLanguage } from "../index-ByhqCQJ3.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