2023-10-03 11:14:36 +08:00
|
|
|
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*\()/
|
|
|
|
});
|