From f77d360e6ccfce7c829fcd9324a3d957c61a437b Mon Sep 17 00:00:00 2001 From: Christian Speich Date: Wed, 19 Oct 2022 10:13:39 +0200 Subject: [PATCH] grammar: Don't require lower-case (#4346) Currently we always lower-case the grammar name when loading it. While it is somewhat of an convention to name tree-sitter grammars in lowercase there is no rule to enforce it. This patch removes the lower-casing to allow all possible grammar names. Signed-off-by: Christian Speich --- helix-loader/src/grammar.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs index eb1895a554c68..a92cadb64b626 100644 --- a/helix-loader/src/grammar.rs +++ b/helix-loader/src/grammar.rs @@ -67,7 +67,6 @@ pub fn get_language(name: &str) -> Result { #[cfg(not(target_arch = "wasm32"))] pub fn get_language(name: &str) -> Result { use libloading::{Library, Symbol}; - let name = name.to_ascii_lowercase(); let mut library_path = crate::runtime_dir().join("grammars").join(&name); library_path.set_extension(DYLIB_EXTENSION);