mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-09 03:18:15 +08:00
15 lines
420 B
JavaScript
15 lines
420 B
JavaScript
|
'use strict'
|
||
|
var refractorJson = require('./json.js')
|
||
|
module.exports = jsonp
|
||
|
jsonp.displayName = 'jsonp'
|
||
|
jsonp.aliases = []
|
||
|
function jsonp(Prism) {
|
||
|
Prism.register(refractorJson)
|
||
|
Prism.languages.jsonp = Prism.languages.extend('json', {
|
||
|
punctuation: /[{}[\]();,.]/
|
||
|
})
|
||
|
Prism.languages.insertBefore('jsonp', 'punctuation', {
|
||
|
function: /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/
|
||
|
})
|
||
|
}
|