diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs
index 375846b02945..76bee1fde641 100644
--- a/helix-core/src/syntax.rs
+++ b/helix-core/src/syntax.rs
@@ -36,12 +36,12 @@ use helix_loader::grammar::{get_language, load_runtime_file};
pub use tree_cursor::TreeCursor;
-fn deserialize_regex<'de, D>(deserializer: D) -> Result