prismjs
Version:
Lightweight, robust, elegant syntax highlighting. A spin-off project from Dabblet.
10 lines (9 loc) • 306 B
JavaScript
Prism.languages.properties = {
'comment': /^[ \t]*[#!].*$/m,
'attr-value': {
pattern: /(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,
lookbehind: true
},
'attr-name': /^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,
'punctuation': /[=:]/
};