mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-09 02:08:16 +08:00
18 lines
471 B
JavaScript
18 lines
471 B
JavaScript
'use strict'
|
|
|
|
module.exports = properties
|
|
properties.displayName = 'properties'
|
|
properties.aliases = []
|
|
function properties(Prism) {
|
|
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: /[=:]/
|
|
}
|
|
}
|