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

// ../node_modules/highlight.js/lib/languages/smalltalk.js
var E = l((c, i) => {
  function _(e) {
    let n = "[a-z][a-zA-Z0-9_]*", a = {
      className: "string",
      begin: "\\$.{1}"
    }, t = {
      className: "symbol",
      begin: "#" + e.UNDERSCORE_IDENT_RE
    };
    return {
      name: "Smalltalk",
      aliases: ["st"],
      keywords: "self super nil true false thisContext",
      // only 6
      contains: [
        e.COMMENT('"', '"'),
        e.APOS_STRING_MODE,
        {
          className: "type",
          begin: "\\b[A-Z][A-Za-z0-9_]*",
          relevance: 0
        },
        {
          begin: n + ":",
          relevance: 0
        },
        e.C_NUMBER_MODE,
        t,
        a,
        {
          // This looks more complicated than needed to avoid combinatorial
          // explosion under V8. It effectively means `| var1 var2 ... |` with
          // whitespace adjacent to `|` being optional.
          begin: "\\|[ ]*" + n + "([ ]+" + n + ")*[ ]*\\|",
          returnBegin: !0,
          end: /\|/,
          illegal: /\S/,
          contains: [{
            begin: "(\\|[ ]*)?" + n
          }]
        },
        {
          begin: "#\\(",
          end: "\\)",
          contains: [
            e.APOS_STRING_MODE,
            a,
            e.C_NUMBER_MODE,
            t
          ]
        }
      ]
    };
  }
  s(_, "smalltalk");
  i.exports = _;
});

export {
  E as a
};
