diff options
author | Christian Speich | 2022-10-19 08:29:09 +0000 |
---|---|---|
committer | Michael Davis | 2022-10-21 13:11:25 +0000 |
commit | 79ef39ab3a41c32fcdcb660df6ee60aeb1eb80e6 (patch) | |
tree | 99d5a9dfdcd838d35fe72ba7801387ebe7be19e4 /xtask | |
parent | 4b85aeb2b68c0aaf2338d3e0d0ad4daff13a7baf (diff) |
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 <cspeich@emlix.com>
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/querycheck.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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); |