import c from './c.mjs';

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

/** @param {Refractor} Prism */
function cilkc(Prism) {
  Prism.register(c);
  Prism.languages.cilkc = Prism.languages.insertBefore('c', 'function', {
    'parallel-keyword': {
      pattern: /\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,
      alias: 'keyword'
    }
  });
  Prism.languages['cilk-c'] = Prism.languages['cilkc'];
}

export { cilkc as default };
