Skip to content

Commit de1728e

Browse files
committed
Enable python in the extension
1 parent c918770 commit de1728e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vscode/extension.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,17 @@ const supportedLanguages: SupportedLanguage[] = [
2424
language: "Go" as Language,
2525
parserName: "tree-sitter-go.wasm",
2626
},
27+
{
28+
languageId: "python",
29+
language: "Python" as Language,
30+
parserName: "tree-sitter-python.wasm",
31+
},
2732
];
2833

2934
const functionNodeTypes: { [key: string]: string[] } = {
3035
go: ["function_declaration", "method_declaration", "func_literal"],
3136
c: ["function_definition"],
37+
python: ["function_definition"],
3238
};
3339

3440
const supportedLanguageIds = supportedLanguages.map((lang) => lang.languageId);

0 commit comments

Comments
 (0)