prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
16 lines (15 loc) • 694 B
JavaScript
import { l as languages } from "../../index-DF54SWhA.js";
import { c as clikeClass } from "../../clike-class-B8-ApZOm.js";
import { e as clikePunctuation, f as clikeNumber, b as boolean, c as clikeString, a as clikeComment } from "../../patterns-Jkz_nwNQ.js";
languages.clike = {
"comment": clikeComment,
"string": clikeString,
"class-name": clikeClass(),
"keyword": /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
"boolean": boolean,
"function": /\b\w+(?=\()/,
"number": clikeNumber,
"operator": /[!=]==|[!=<>]=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
"punctuation": clikePunctuation
};
//# sourceMappingURL=clike.js.map