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

// ../node_modules/refractor/lang/aspnet.js
var i = n((g, s) => {
  var p = r();
  s.exports = a;
  a.displayName = "aspnet";
  a.aliases = [];
  function a(e) {
    e.register(p), e.languages.aspnet = e.languages.extend("markup", {
      "page-directive": {
        pattern: /<%\s*@.*%>/,
        alias: "tag",
        inside: {
          "page-directive": {
            pattern: /<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,
            alias: "tag"
          },
          rest: e.languages.markup.tag.inside
        }
      },
      directive: {
        pattern: /<%.*%>/,
        alias: "tag",
        inside: {
          directive: {
            pattern: /<%\s*?[$=%#:]{0,2}|%>/,
            alias: "tag"
          },
          rest: e.languages.csharp
        }
      }
    }), e.languages.aspnet.tag.pattern = /<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/, e.languages.insertBefore(
      "inside",
      "punctuation",
      {
        directive: e.languages.aspnet.directive
      },
      e.languages.aspnet.tag.inside["attr-value"]
    ), e.languages.insertBefore("aspnet", "comment", {
      "asp-comment": {
        pattern: /<%--[\s\S]*?--%>/,
        alias: ["asp", "comment"]
      }
    }), e.languages.insertBefore(
      "aspnet",
      e.languages.javascript ? "script" : "tag",
      {
        "asp-script": {
          pattern: /(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,
          lookbehind: !0,
          alias: ["asp", "script"],
          inside: e.languages.csharp || {}
        }
      }
    );
  }
  t(a, "aspnet");
});

export {
  i as a
};
