Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

60 lines
2.1 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
* Module id: 677116
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, i) => {
"use strict";
function r(e) {
(e.languages.antlr4 = {
comment: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
string: { pattern: /'(?:\\.|[^\\'\r\n])*'/, greedy: !0 },
"character-class": {
pattern: /\[(?:\\.|[^\\\]\r\n])*\]/,
greedy: !0,
alias: "regex",
inside: {
range: {
pattern: /([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,
lookbehind: !0,
alias: "punctuation",
},
escape:
/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,
punctuation: /[\[\]]/,
},
},
action: {
pattern: /\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,
greedy: !0,
inside: {
content: { pattern: /(\{)[\s\S]+(?=\})/, lookbehind: !0 },
punctuation: /[{}]/,
},
},
command: {
pattern:
/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,
lookbehind: !0,
inside: { function: /\b\w+(?=\s*(?:[,(]|$))/, punctuation: /[,()]/ },
},
annotation: { pattern: /@\w+(?:::\w+)*/, alias: "keyword" },
label: { pattern: /#[ \t]*\w+/, alias: "punctuation" },
keyword:
/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,
definition: [
{ pattern: /\b[a-z]\w*(?=\s*:)/, alias: ["rule", "class-name"] },
{ pattern: /\b[A-Z]\w*(?=\s*:)/, alias: ["token", "constant"] },
],
constant: /\b[A-Z][A-Z_]*\b/,
operator: /\.\.|->|[|~]|[*+?]\??/,
punctuation: /[;:()=]/,
}),
(e.languages.g4 = e.languages.antlr4);
}
(t.exports = r), (r.displayName = "antlr4"), (r.aliases = ["g4"]);
};
export default moduleFactory;