prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
19 lines (18 loc) • 543 B
JavaScript
import { a as languages } from "../../core-8vQkh0Rd.js";
import { n as clikeComment, t as boolean } from "../../patterns-C0vJBvXO.js";
//#region src/prism/languages/json.js
languages.webmanifest = languages.json = {
"property": /"(?:\\.|[^\\\n"])*"(?=\s*:)/g,
"string": /"(?:\\.|[^\\\n"])*"/g,
"comment": clikeComment,
"number": /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
"operator": /:/,
"punctuation": /[[\]{},]/,
"boolean": boolean,
"null": {
pattern: /\bnull\b/,
alias: "keyword"
}
};
//#endregion
//# sourceMappingURL=json.js.map