Skip to content

Commit d2f629a

Browse files
committed
feat(tree-sitter-solidity): support Solidity in SplitRecursively
1 parent 52f9e71 commit d2f629a

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

Cargo.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ tree-sitter-toml-ng = "0.7.0"
9898
tree-sitter-typescript = "0.23.2"
9999
tree-sitter-xml = "0.7.0"
100100
tree-sitter-yaml = "0.7.1"
101+
tree-sitter-solidity = "1.2.13"
101102

102103
globset = "0.4.16"
103104
unicase = "2.8.1"

docs/docs/ops/functions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ Currently, `SplitRecursively` supports the following languages:
102102
| Ruby | | `.rb` |
103103
| Rust | RS | `.rs` |
104104
| Scala | | `.scala` |
105+
| Solidity | | `.sol` |
105106
| SQL | | `.sql` |
106107
| Swift | | `.swift` |
107108
| TOML | | `.toml` |

src/ops/functions/split_recursively.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,13 @@ static TREE_SITTER_LANGUAGE_BY_LANG: LazyLock<
234234
tree_sitter_yaml::LANGUAGE,
235235
[],
236236
);
237+
add_treesitter_language(
238+
&mut map,
239+
"Solidity",
240+
[".sol"],
241+
tree_sitter_solidity::LANGUAGE,
242+
[],
243+
);
237244
map
238245
});
239246

0 commit comments

Comments
 (0)