prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
18 lines (17 loc) • 687 B
JavaScript
import { l as languages } from "../../index-DF54SWhA.js";
import { b as boolean } from "../../patterns-Jkz_nwNQ.js";
languages.jexl = {
"string": /(["'])(?:\\[^]|(?!\1)[^\\])*\1/,
"transform": {
pattern: /(\|\s*)[a-zA-Zа-яА-Я_\xc0-\xd6\xd8-\xf6\xf8-\xff$][\wа-яА-Я\xc0-\xd6\xd8-\xf6\xf8-\xff$]*/,
alias: "function",
lookbehind: true
},
"function": /[a-zA-Zа-яА-Я_\xc0-\xd6\xd8-\xf6\xf8-\xff$][\wа-яА-Я\xc0-\xd6\xd8-\xf6\xf8-\xff$]*\s*(?=\()/,
"number": /\b\d+(?:\.\d+)?\b|\B\.\d+\b/,
"operator": /[!<>]=?|&&|==|\|\||\/\/|[?:%|^/*+-]/,
"boolean": boolean,
"keyword": /\bin\b/,
"punctuation": /[()[\]{}.,]/
};
//# sourceMappingURL=jexl.js.map