prism-properties.js 356 B

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