prism-properties.js 304 B

123456789
  1. Prism.languages.properties = {
  2. 'comment': /^[ \t]*[#!].*$/m,
  3. 'attr-value': {
  4. pattern: /(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+?(?: *[=:] *| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,
  5. lookbehind: true
  6. },
  7. 'attr-name': /^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+?(?= *[=:] *| )/m,
  8. 'punctuation': /[=:]/
  9. };