main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
471 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict'
|
---|
| 2 |
|
---|
| 3 | module.exports = properties
|
---|
| 4 | properties.displayName = 'properties'
|
---|
| 5 | properties.aliases = []
|
---|
| 6 | function 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.