import {
  a as t,
  c as a
} from "./chunk-IO47FP3U.js";

// ../node_modules/refractor/lang/go-module.js
var n = a((u, r) => {
  r.exports = e;
  e.displayName = "goModule";
  e.aliases = [];
  function e(o) {
    o.languages["go-mod"] = o.languages["go-module"] = {
      comment: {
        pattern: /\/\/.*/,
        greedy: !0
      },
      version: {
        pattern: /(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,
        lookbehind: !0,
        alias: "number"
      },
      "go-version": {
        pattern: /((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,
        lookbehind: !0,
        alias: "number"
      },
      keyword: {
        pattern: /^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,
        lookbehind: !0
      },
      operator: /=>/,
      punctuation: /[()[\],]/
    };
  }
  t(e, "goModule");
});

export {
  n as a
};
