1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

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
parent fb61b3d41d
commit c75bfa9cda
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);