prism-react-editor
Version:
Lightweight, extensible code editor component for React apps
30 lines (29 loc) • 685 B
JavaScript
import { l as languages } from "../../index-k28m3HFc.js";
languages.editorconfig = {
// https://editorconfig-specification.readthedocs.io
"comment": /[;#].*/,
"section": {
pattern: /(^[ ]*)\[.+\]/m,
lookbehind: true,
alias: "selector",
inside: {
"regex": /\\\\[[\]{}.,?!*]/,
// Escape special characters with '\\'
"operator": /[!?]|\.\.|\*\*?/,
"punctuation": /[[\]{},]/
}
},
"key": {
pattern: /(^[ ]*)[^\s=]+(?=[ ]*=)/m,
lookbehind: true,
alias: "attr-name"
},
"value": {
pattern: /=.*/,
alias: "attr-value",
inside: {
"punctuation": /^=/
}
}
};
//# sourceMappingURL=editorconfig.js.map