manual-language-selection #296

Closed
mathstuf wants to merge 5 commits from mathstuf/mergiraf:manual-language-selection into main

5 commits

Author SHA1 Message Date
Ben Boeckel
6bf6706c2e feat(lang_profile): support case-insensitive language matching
All checks were successful
/ test (pull_request) Successful in 55s
2025-03-30 16:29:05 +02:00
Ben Boeckel
c6c21ea6d7 feat(lang_profile): support alternate names for languages
Some of the language names are a bit clunky, so offer alternative names
for manual selection to use.
2025-03-30 16:29:05 +02:00
Ben Boeckel
1b944630e4 feat(mergiraf merge,solve): support language overrides
If the extension is not recognized or incorrect, allow the user to
override the language in use.

Fixes: #34
2025-03-30 16:29:05 +02:00
Ben Boeckel
bf086a7a91 feat(lang_profile): support loading a language profile by name
If autodetection is not accurate, allow an override.
2025-03-28 21:06:31 +01:00
Ben Boeckel
c9cf6122f6 fix: explicitly declare that LangProfile is 'static
Lifetime elision otherwise ties the lifetime to the input `filename`
lifetime which is not true.
2025-03-28 21:05:18 +01:00