prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
18 lines (17 loc) • 736 B
JavaScript
import { a as languages } from "../../core-8vQkh0Rd.js";
import { a as clikeString, i as clikePunctuation, n as clikeComment, r as clikeNumber, t as boolean } from "../../patterns-C0vJBvXO.js";
import { t as clikeClass } from "../../clike-class-BalLuLgx.js";
//#region src/prism/languages/clike.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
};
//#endregion
//# sourceMappingURL=clike.js.map