'use strict';

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

/** @param {Refractor} Prism */
function csv(Prism) {
  // https://tools.ietf.org/html/rfc4180

  Prism.languages.csv = {
    value: /[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,
    punctuation: /,/
  };
}

module.exports = csv;
