prism-jsonp.js 231 B

1234567
  1. Prism.languages.jsonp = Prism.languages.extend('json', {
  2. 'punctuation': /[{}[\]();,.]/
  3. });
  4. Prism.languages.insertBefore('jsonp', 'punctuation', {
  5. 'function': /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/
  6. });