You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
356 B
14 lines
356 B
|
2 years ago
|
Prism.languages.properties = {
|
||
|
|
'comment': /^[ \t]*[#!].*$/m,
|
||
|
|
'value': {
|
||
|
|
pattern: /(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,
|
||
|
|
lookbehind: true,
|
||
|
|
alias: 'attr-value'
|
||
|
|
},
|
||
|
|
'key': {
|
||
|
|
pattern: /^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,
|
||
|
|
alias: 'attr-name'
|
||
|
|
},
|
||
|
|
'punctuation': /[=:]/
|
||
|
|
};
|