1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Prism.languages.editorconfig = {
comment: /[;#].*/,
section: {
pattern: /(^[ \t]*)\[.+\]/m,
lookbehind: !0,
alias: 'keyword',
inside: {
regex: /\\\\[\[\]{},!?.*]/,
operator: /[!?]|\.\.|\*{1,2}/,
punctuation: /[\[\]{},]/,
},
},
key: {
pattern: /(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,
lookbehind: !0,
alias: 'attr-name',
},
value: { pattern: /=.*/, alias: 'attr-value', inside: { punctuation: /^=/ } },
};
|