aboutsummaryrefslogtreecommitdiff
path: root/helix-loader
diff options
context:
space:
mode:
authorChristian Speich2022-10-19 08:13:39 +0000
committerMichael Davis2022-10-21 13:11:25 +0000
commit4b85aeb2b68c0aaf2338d3e0d0ad4daff13a7baf (patch)
tree1e7cfa705a76795b241e13b316a8e567d421a6e9 /helix-loader
parent34389e1d5472f458934b0af2a15192e2b8d83e1e (diff)
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 <cspeich@emlix.com>
Diffstat (limited to 'helix-loader')
-rw-r--r--helix-loader/src/grammar.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs
index eb1895a5..a92cadb6 100644
--- a/helix-loader/src/grammar.rs
+++ b/helix-loader/src/grammar.rs
@@ -67,7 +67,6 @@ pub fn get_language(name: &str) -> Result<Language> {
#[cfg(not(target_arch = "wasm32"))]
pub fn get_language(name: &str) -> Result<Language> {
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);