prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
28 lines (27 loc) • 595 B
JavaScript
import { a as languages } from "../../core-8vQkh0Rd.js";
//#region src/prism/languages/editorconfig.js
languages.editorconfig = {
"comment": /[;#].*/,
"section": {
pattern: /(^[ ]*)\[.+\]/m,
lookbehind: true,
alias: "selector",
inside: {
"regex": /\\\\[[\]{}.,?!*]/,
"operator": /[!?]|\.\.|\*\*?/,
"punctuation": /[[\]{},]/
}
},
"key": {
pattern: /(^[ ]*)[^\s=]+(?=[ ]*=)/m,
lookbehind: true,
alias: "attr-name"
},
"value": {
pattern: /=.*/,
alias: "attr-value",
inside: { "punctuation": /^=/ }
}
};
//#endregion
//# sourceMappingURL=editorconfig.js.map