Files
Deepak Bhagat 88eb71b11a feat(components): add missing languages to Code Text Splitter (#6290)
* feat(components): add missing languages to Code Text Splitter

The Code Text Splitter only exposed 16 languages natively supported
by @langchain/textsplitters. The Python LangChain library supports
many more. This adds 9 additional languages (c, csharp, cobol,
elixir, haskell, kotlin, lua, powershell, ts) with custom separators
ported from Python LangChain, while keeping existing languages on
the native fromLanguage() path.

* fix: address review feedback on language separators

C: replace class with struct/union/enum (C has no class keyword).
C#: remove implements (C# uses :), add namespace and struct.
Elixir: remove while (not a keyword in Elixir).
Kotlin: remove case (Kotlin uses when).
Fallback: return default splitter instead of calling fromLanguage
with an unsupported language.

* style: fix prettier formatting in CodeTextSplitter
2026-05-01 00:43:04 +01:00
..
2025-05-10 10:21:26 +08:00
2025-05-10 10:21:26 +08:00

Flowise Components

English | 中文

Apps integration for Flowise. Contain Nodes and Credentials.

Flowise

Install:

npm i flowise-components

License

Source code in this repository is made available under the Apache License Version 2.0.