tree_sitter_language_pack 1.11.0 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/ext/ts_pack_core_rb/native/Cargo.lock +3 -3
- data/ext/ts_pack_core_rb/native/Cargo.toml +2 -2
- data/ext/ts_pack_core_rb/src/lib.rs +8 -50
- data/lib/tree_sitter_language_pack/native.rb +1 -1
- data/lib/tree_sitter_language_pack/version.rb +2 -2
- data/lib/tree_sitter_language_pack.rb +10 -1
- data/sig/types.rbs +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f63f07d96db4ce72e0c1480284b65a2bb86aa104cd38952afc527baac037abf
|
|
4
|
+
data.tar.gz: e4cd128d03d48e522cc6cadd08d1d3b4765178244f529b189a13e972bb4aa45b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b62d97b49a2186dc7bb1a1b93b4ef4f34134d7c290b5f699e0a8c6406478972890cee8a13b48013bff27b6b378133f456c88ab60f7d3ccfd822e94bdc800cd91
|
|
7
|
+
data.tar.gz: aa9bc6a0359e573856a7b021f3297991d03404870a991acdbd2a91d74b54b2be7187e2a160c53d45e7e55b08ff9bff164c333e1cbe5861760ad10fbce7d1b587
|
data/README.md
CHANGED
|
@@ -117,7 +117,7 @@ See the [language guide](https://docs.tree-sitter-language-pack.xberg.io) for `r
|
|
|
117
117
|
|
|
118
118
|
## Features
|
|
119
119
|
|
|
120
|
-
- **
|
|
120
|
+
- **306 languages** — pre-compiled tree-sitter grammars covering every major programming language and many minor ones.
|
|
121
121
|
- **On-demand download + cache** — parsers fetched at first use; subsequent runs hit the local cache.
|
|
122
122
|
- **Code intelligence** — extract functions, classes, imports, exports, symbols, docstrings, and diagnostics with one API.
|
|
123
123
|
- **Syntax-aware chunking** — semantic chunks for RAG/LLM pipelines.
|
|
@@ -1070,9 +1070,9 @@ checksum = "009994f150cc0cd50ff54917d5bc8bffe8cad10ca10d81c34da2ec421ae61782"
|
|
|
1070
1070
|
|
|
1071
1071
|
[[package]]
|
|
1072
1072
|
name = "tree-sitter-language-pack"
|
|
1073
|
-
version = "1.11.
|
|
1073
|
+
version = "1.11.1"
|
|
1074
1074
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1075
|
-
checksum = "
|
|
1075
|
+
checksum = "473673e93c1546c95a7ad550d8a2d1c3d4d74324996cb1c063404529ea8f25b8"
|
|
1076
1076
|
dependencies = [
|
|
1077
1077
|
"ahash",
|
|
1078
1078
|
"cc",
|
|
@@ -1093,7 +1093,7 @@ dependencies = [
|
|
|
1093
1093
|
|
|
1094
1094
|
[[package]]
|
|
1095
1095
|
name = "ts-pack-core-rb"
|
|
1096
|
-
version = "1.11.
|
|
1096
|
+
version = "1.11.1"
|
|
1097
1097
|
dependencies = [
|
|
1098
1098
|
"magnus",
|
|
1099
1099
|
"rb-sys",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "ts-pack-core-rb"
|
|
3
|
-
version = "1.11.
|
|
3
|
+
version = "1.11.1"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
license = "MIT"
|
|
6
6
|
description = "Pre-compiled tree-sitter grammars for 306 programming languages"
|
|
@@ -25,4 +25,4 @@ magnus = "0.8"
|
|
|
25
25
|
rb-sys = ">=0.9, <0.9.128"
|
|
26
26
|
serde = { version = "1", features = ["derive"] }
|
|
27
27
|
serde_json = "1"
|
|
28
|
-
tree-sitter-language-pack = { version = "1.11.
|
|
28
|
+
tree-sitter-language-pack = { version = "1.11.1", features = ["serde", "config", "download"] }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by alef. DO NOT EDIT.
|
|
2
|
-
// alef:hash:
|
|
2
|
+
// alef:hash:26c4710d296d1ec8b0c7d2d0f8c8d60306d8234c2519a3c0009269a2d04dfa30
|
|
3
3
|
// Re-generate with: alef generate
|
|
4
4
|
#![allow(dead_code, unused_imports, unused_variables)]
|
|
5
5
|
#![allow(
|
|
@@ -177,14 +177,7 @@ unsafe impl TryConvertOwned for DataNode {}
|
|
|
177
177
|
|
|
178
178
|
impl Default for DataNode {
|
|
179
179
|
fn default() -> Self {
|
|
180
|
-
|
|
181
|
-
kind: Default::default(),
|
|
182
|
-
key: None,
|
|
183
|
-
value: None,
|
|
184
|
-
attributes: vec![],
|
|
185
|
-
children: vec![],
|
|
186
|
-
span: Default::default(),
|
|
187
|
-
}
|
|
180
|
+
tree_sitter_language_pack::DataNode::default().into()
|
|
188
181
|
}
|
|
189
182
|
}
|
|
190
183
|
|
|
@@ -667,17 +660,7 @@ unsafe impl TryConvertOwned for StructureItem {}
|
|
|
667
660
|
|
|
668
661
|
impl Default for StructureItem {
|
|
669
662
|
fn default() -> Self {
|
|
670
|
-
|
|
671
|
-
kind: Default::default(),
|
|
672
|
-
name: None,
|
|
673
|
-
visibility: None,
|
|
674
|
-
span: Default::default(),
|
|
675
|
-
children: vec![],
|
|
676
|
-
decorators: vec![],
|
|
677
|
-
doc_comment: None,
|
|
678
|
-
signature: None,
|
|
679
|
-
body_span: None,
|
|
680
|
-
}
|
|
663
|
+
tree_sitter_language_pack::StructureItem::default().into()
|
|
681
664
|
}
|
|
682
665
|
}
|
|
683
666
|
|
|
@@ -799,12 +782,7 @@ unsafe impl TryConvertOwned for CommentInfo {}
|
|
|
799
782
|
|
|
800
783
|
impl Default for CommentInfo {
|
|
801
784
|
fn default() -> Self {
|
|
802
|
-
|
|
803
|
-
text: String::new(),
|
|
804
|
-
kind: Default::default(),
|
|
805
|
-
span: Default::default(),
|
|
806
|
-
associated_node: None,
|
|
807
|
-
}
|
|
785
|
+
tree_sitter_language_pack::CommentInfo::default().into()
|
|
808
786
|
}
|
|
809
787
|
}
|
|
810
788
|
|
|
@@ -891,13 +869,7 @@ unsafe impl TryConvertOwned for DocstringInfo {}
|
|
|
891
869
|
|
|
892
870
|
impl Default for DocstringInfo {
|
|
893
871
|
fn default() -> Self {
|
|
894
|
-
|
|
895
|
-
text: String::new(),
|
|
896
|
-
format: Default::default(),
|
|
897
|
-
span: Default::default(),
|
|
898
|
-
associated_item: None,
|
|
899
|
-
parsed_sections: vec![],
|
|
900
|
-
}
|
|
872
|
+
tree_sitter_language_pack::DocstringInfo::default().into()
|
|
901
873
|
}
|
|
902
874
|
}
|
|
903
875
|
|
|
@@ -1162,11 +1134,7 @@ unsafe impl TryConvertOwned for ExportInfo {}
|
|
|
1162
1134
|
|
|
1163
1135
|
impl Default for ExportInfo {
|
|
1164
1136
|
fn default() -> Self {
|
|
1165
|
-
|
|
1166
|
-
name: String::new(),
|
|
1167
|
-
kind: Default::default(),
|
|
1168
|
-
span: Default::default(),
|
|
1169
|
-
}
|
|
1137
|
+
tree_sitter_language_pack::ExportInfo::default().into()
|
|
1170
1138
|
}
|
|
1171
1139
|
}
|
|
1172
1140
|
|
|
@@ -1246,13 +1214,7 @@ unsafe impl TryConvertOwned for SymbolInfo {}
|
|
|
1246
1214
|
|
|
1247
1215
|
impl Default for SymbolInfo {
|
|
1248
1216
|
fn default() -> Self {
|
|
1249
|
-
|
|
1250
|
-
name: String::new(),
|
|
1251
|
-
kind: Default::default(),
|
|
1252
|
-
span: Default::default(),
|
|
1253
|
-
type_annotation: None,
|
|
1254
|
-
doc: None,
|
|
1255
|
-
}
|
|
1217
|
+
tree_sitter_language_pack::SymbolInfo::default().into()
|
|
1256
1218
|
}
|
|
1257
1219
|
}
|
|
1258
1220
|
|
|
@@ -1344,11 +1306,7 @@ unsafe impl TryConvertOwned for Diagnostic {}
|
|
|
1344
1306
|
|
|
1345
1307
|
impl Default for Diagnostic {
|
|
1346
1308
|
fn default() -> Self {
|
|
1347
|
-
|
|
1348
|
-
message: String::new(),
|
|
1349
|
-
severity: Default::default(),
|
|
1350
|
-
span: Default::default(),
|
|
1351
|
-
}
|
|
1309
|
+
tree_sitter_language_pack::Diagnostic::default().into()
|
|
1352
1310
|
}
|
|
1353
1311
|
}
|
|
1354
1312
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:26c4710d296d1ec8b0c7d2d0f8c8d60306d8234c2519a3c0009269a2d04dfa30
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# frozen_string_literal: true
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:26c4710d296d1ec8b0c7d2d0f8c8d60306d8234c2519a3c0009269a2d04dfa30
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
|
|
7
7
|
module TreeSitterLanguagePack
|
|
8
8
|
## The version string for this package.
|
|
9
|
-
VERSION = "1.11.
|
|
9
|
+
VERSION = "1.11.1"
|
|
10
10
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:26c4710d296d1ec8b0c7d2d0f8c8d60306d8234c2519a3c0009269a2d04dfa30
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# frozen_string_literal: true
|
|
@@ -16,3 +16,12 @@ require_relative "tree_sitter_language_pack/native"
|
|
|
16
16
|
module TreeSitterLanguagePack
|
|
17
17
|
# Re-export all types and functions from native extension
|
|
18
18
|
end
|
|
19
|
+
|
|
20
|
+
# Bring top-level TreeSitterLanguagePack classes into the global namespace so callers
|
|
21
|
+
# (and the generated e2e suite) can reference them unqualified. The native
|
|
22
|
+
# extension has already been required above, so every type constant is defined
|
|
23
|
+
# under TreeSitterLanguagePack by this point.
|
|
24
|
+
TreeSitterLanguagePack.constants.each do |const_name|
|
|
25
|
+
value = TreeSitterLanguagePack.const_get(const_name)
|
|
26
|
+
Object.const_set(const_name, value) if value.is_a?(Module) && !Object.const_defined?(const_name)
|
|
27
|
+
end
|
data/sig/types.rbs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:26c4710d296d1ec8b0c7d2d0f8c8d60306d8234c2519a3c0009269a2d04dfa30
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
|