ISO-Share/node_modules/prismjs/components/prism-properties.js

14 lines
356 B
JavaScript
Raw Normal View History

2024-11-26 21:16:11 +01:00
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': /[=:]/
};