From 05b38425364dbc4c8c99dffc48dd7d85f7df69c8 Mon Sep 17 00:00:00 2001 From: vinland100 Date: Thu, 25 Dec 2025 15:31:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=20Tree-sitter=20C#=20?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E5=99=A8=E7=9A=84=E8=AF=AD=E8=A8=80=E6=A0=87?= =?UTF-8?q?=E8=AF=86=E7=AC=A6=E5=91=BD=E5=90=8D=E4=BB=A5=E6=B6=88=E9=99=A4?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/services/rag/splitter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/services/rag/splitter.py b/backend/app/services/rag/splitter.py index 184db35..65d4f16 100644 --- a/backend/app/services/rag/splitter.py +++ b/backend/app/services/rag/splitter.py @@ -154,7 +154,7 @@ class TreeSitterParser: ".c": "c", ".h": "c", ".hpp": "cpp", - ".cs": "c_sharp", + ".cs": "csharp", ".php": "php", ".rb": "ruby", ".kt": "kotlin", @@ -197,7 +197,7 @@ class TreeSitterParser: # tree-sitter-languages 支持的语言列表 SUPPORTED_LANGUAGES = { "python", "javascript", "typescript", "tsx", "java", "go", "rust", - "c", "cpp", "c_sharp", "php", "ruby", "kotlin", "swift", "bash", + "c", "cpp", "csharp", "php", "ruby", "kotlin", "swift", "bash", "json", "yaml", "html", "css", "sql", "markdown", }