prism-react-editor
Version:
Lightweight, extensible code editor component for React apps
23 lines (22 loc) • 591 B
JavaScript
import { l as languages } from "../../index-k28m3HFc.js";
import { d as boolean, a as clikeComment } from "../../patterns-Cp3h1ylA-DIMdJT1M.js";
languages.webmanifest = languages.json = {
"property": {
pattern: /"(?:\\.|[^\\\n"])*"(?=\s*:)/g,
greedy: true
},
"string": {
pattern: /"(?:\\.|[^\\\n"])*"/g,
greedy: true
},
"comment": clikeComment(),
"number": /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
"operator": /:/,
"punctuation": /[[\]{},]/,
"boolean": boolean,
"null": {
pattern: /\bnull\b/,
alias: "keyword"
}
};
//# sourceMappingURL=json.js.map