source: node_modules/refractor/lang/properties.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 471 bytes
Line 
1'use strict'
2
3module.exports = properties
4properties.displayName = 'properties'
5properties.aliases = []
6function properties(Prism) {
7 Prism.languages.properties = {
8 comment: /^[ \t]*[#!].*$/m,
9 'attr-value': {
10 pattern:
11 /(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,
12 lookbehind: true
13 },
14 'attr-name': /^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,
15 punctuation: /[=:]/
16 }
17}
Note: See TracBrowser for help on using the repository browser.