From 79ef39ab3a41c32fcdcb660df6ee60aeb1eb80e6 Mon Sep 17 00:00:00 2001 From: Christian Speich Date: Wed, 19 Oct 2022 10:29:09 +0200 Subject: syntax: Don't force lower-case for filenames (#4346) Just like for grammars we currently force a lower-case of the name for some actions (like filesystem lookup). To make this consistent and less surprising for users, we remove this lower-casing here. Note: it is still the preferred way to name both language and grammar in lower-case Signed-off-by: Christian Speich --- xtask/src/querycheck.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xtask') diff --git a/xtask/src/querycheck.rs b/xtask/src/querycheck.rs index 5595b8ec..7014c7d6 100644 --- a/xtask/src/querycheck.rs +++ b/xtask/src/querycheck.rs @@ -14,8 +14,8 @@ pub fn query_check() -> Result<(), DynError> { ]; for language in lang_config().language { - let language_name = language.language_id.to_ascii_lowercase(); - let grammar_name = language.grammar.unwrap_or(language.language_id); + let language_name = &language.language_id; + let grammar_name = language.grammar.as_ref().unwrap_or(language_name); for query_file in query_files { let language = get_language(&grammar_name); let query_text = read_query(&language_name, query_file); -- cgit v1.2.3-70-g09d2