aboutsummaryrefslogtreecommitdiff
path: root/textproc/tree-sitter-grammars/files/patch-src_main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/tree-sitter-grammars/files/patch-src_main.rs')
-rw-r--r--textproc/tree-sitter-grammars/files/patch-src_main.rs33
1 files changed, 33 insertions, 0 deletions
diff --git a/textproc/tree-sitter-grammars/files/patch-src_main.rs b/textproc/tree-sitter-grammars/files/patch-src_main.rs
new file mode 100644
index 000000000000..4197c86a3f26
--- /dev/null
+++ b/textproc/tree-sitter-grammars/files/patch-src_main.rs
@@ -0,0 +1,33 @@
+--- src/main.rs.orig 2025-08-19 16:12:37 UTC
++++ src/main.rs
+@@ -88,14 +88,14 @@ fn main() -> Result<()> {
+ }
+ };
+
+- let helix_dir = tmp_dir.join("helix");
+- checkout_repo(
+- &helix_dir,
+- "https://github.com/helix-editor/helix",
+- "0a4432b104099534f7a25b8ea4148234db146ab6",
+- )?;
++// let helix_dir = tmp_dir.join("helix");
++// checkout_repo(
++// &helix_dir,
++// "https://github.com/helix-editor/helix",
++// "0a4432b104099534f7a25b8ea4148234db146ab6",
++// )?;
+
+- let Ok(languages_config) = &fs::read_to_string(helix_dir.join("languages.toml"))
++ let Ok(languages_config) = &fs::read_to_string("languages.toml")
+ else {
+ error!("Failed to read grammars config");
+ bail!("Failed to read grammars config");
+@@ -158,7 +158,7 @@ fn build_grammar(
+ tmp_dir: &Path,
+ ) -> Result<()> {
+ let path = tmp_dir.join(format! {"tree-sitter-{}",grammar.name});
+- checkout_repo(&path, &grammar.source.git, &grammar.source.rev)?;
++// checkout_repo(&path, &grammar.source.git, &grammar.source.rev)?;
+ let path = if let Some(subpath) = grammar.source.subpath.as_ref() {
+ path.join(subpath)
+ } else {