完成世界书、骰子、apiconfig页面处理
This commit is contained in:
24
frontend/node_modules/refractor/lang/properties.js
generated
vendored
Normal file
24
frontend/node_modules/refractor/lang/properties.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
// @ts-nocheck
|
||||
/**
|
||||
* @import {Refractor} from '../lib/core.js'
|
||||
*/
|
||||
properties.displayName = 'properties'
|
||||
properties.aliases = []
|
||||
|
||||
/** @param {Refractor} Prism */
|
||||
export default function properties(Prism) {
|
||||
Prism.languages.properties = {
|
||||
comment: /^[ \t]*[#!].*$/m,
|
||||
value: {
|
||||
pattern:
|
||||
/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,
|
||||
lookbehind: true,
|
||||
alias: 'attr-value'
|
||||
},
|
||||
key: {
|
||||
pattern: /^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,
|
||||
alias: 'attr-name'
|
||||
},
|
||||
punctuation: /[=:]/
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user