Skip to content

Commit b7cc366

Browse files
committed
fix py/python normalization
1 parent b1411e9 commit b7cc366

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/runtime/stdlib/highlight.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async function getParser(language: string): Promise<Parser | undefined> {
5858
case "ts":
5959
case "jsx":
6060
return (await import("@lezer/javascript")).parser.configure({dialect: language});
61-
case "py":
61+
case "python":
6262
return (await import("@lezer/python")).parser;
6363
case "html":
6464
return (await import("@lezer/html")).parser;
@@ -80,8 +80,8 @@ function getLanguage(code: HTMLElement): string | undefined {
8080
return "js";
8181
case "typescript":
8282
return "ts";
83-
case "python":
84-
return "py";
83+
case "py":
84+
return "python";
8585
case "markdown":
8686
return "md";
8787
}

0 commit comments

Comments
 (0)