LibSyntax: Add common_language_extension() function

The main motivation for this is to prefill an extension for user when
saving a new file.
This commit is contained in:
Karol Kosek 2022-12-06 19:32:17 +01:00 committed by Tim Flynn
commit c75bfa9cda
Notes: sideshowbarker 2024-07-17 09:47:09 +09:00
2 changed files with 28 additions and 0 deletions

View file

@ -33,6 +33,7 @@ struct TextStyle {
};
StringView language_to_string(Language);
StringView common_language_extension(Language);
class Highlighter {
AK_MAKE_NONCOPYABLE(Highlighter);