mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 19:07:44 +03:00
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>
This commit is contained in:
parent
4b85aeb2b6
commit
79ef39ab3a
2 changed files with 17 additions and 13 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue