We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0ff6c1 commit 603946cCopy full SHA for 603946c
build.rs
@@ -191,6 +191,16 @@ fn compile_syntax(out_dir: &Path) -> Result<()> {
191
parsing::{SyntaxDefinition, SyntaxSetBuilder},
192
};
193
194
+ if std::fs::metadata("assets/syntaxes").is_err() {
195
+ let status = std::process::Command::new("git")
196
+ .args(["submodule", "update", "--init"])
197
+ .status()
198
+ .context("attempting to initialize submodules")?;
199
+ if !status.success() {
200
+ return Err(anyhow::anyhow!("initializing submodules failed"));
201
+ }
202
203
+
204
fn tracked_add_from_folder(
205
builder: &mut SyntaxSetBuilder,
206
path: impl AsRef<Path>,
0 commit comments