1 parent 061a6bc commit 2dc334bCopy full SHA for 2dc334b
1 file changed
src/scan.rs
@@ -135,12 +135,12 @@ pub fn parse(lang: Language, content: &str) -> Result<Tree> {
135
Language::Rust => ts_lang_rust(),
136
};
137
parser.set_language(&ts_lang).context("set language")?;
138
-
+
139
// Allow deprecated method for now - the new API is more complex
140
// and the current method works fine for our needs
141
#[allow(deprecated)]
142
parser.set_timeout_micros(5_000_000); // 5 second timeout
143
144
parser.parse(content, None).context("parse")
145
}
146
0 commit comments