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