import json from './json.mjs';

// @ts-nocheck
/**
 * @import {Refractor} from '../lib/core.js'
 */
jsonp.displayName = 'jsonp';
jsonp.aliases = [];

/** @param {Refractor} Prism */
function jsonp(Prism) {
  Prism.register(json);
  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*\()/
  });
}

export { jsonp as default };
