Debian Codegraph @

inst/lib/prism-code-editor/prism/languages/ini.js

raw
1 import { l as languages } from "../../index-C1_GGQ8y.js";
2 languages.ini = {
3 /**
4 * The component mimics the behavior of the Win32 API parser.
5 *
6 * @see {@link https://github.com/PrismJS/prism/issues/2775#issuecomment-787477723}
7 */
8 "comment": {
9 pattern: /(^[ \f \v]*)[#;].*/m,
10 lookbehind: true
11 },
12 "section": {
13 pattern: /(^[ \f \v]*)\[[^\n\]]*\]?/m,
14 lookbehind: true,
15 inside: {
16 "section-name": {
17 pattern: /(^\[[ \f \v]*)[^ \f \v\]]+(?:[ \f \v]+[^ \f \v\]]+)*/,
18 lookbehind: true,
19 alias: "selector"
20 },
21 "punctuation": /[[\]]/
22 }
23 },
24 "key": {
25 pattern: /(^[ \f \v]*)[^ \f\n \v=]+(?:[ \f \v]+[^ \f\n \v=]+)*(?=[ \f \v]*=)/m,
26 lookbehind: true,
27 alias: "attr-name"
28 },
29 "value": {
30 pattern: /(=[ \f \v]*)[^ \f\n \v]+(?:[ \f \v]+[^ \f\n \v]+)*/,
31 lookbehind: true,
32 alias: "attr-value",
33 inside: {
34 "inner-value": {
35 pattern: /^(["']).+(?=\1$)/,
36 lookbehind: true
37 }
38 }
39 },
40 "punctuation": /=/
41 };
42 //# sourceMappingURL=ini.js.map