1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:47:35 +00:00

HackStudio: Create Language enum from file extension or language name

This commit is contained in:
Itamar 2021-03-05 17:18:22 +02:00 committed by Andreas Kling
parent 1edaefca3a
commit ba6cbf160b
4 changed files with 68 additions and 12 deletions

View file

@ -26,6 +26,8 @@
#pragma once
#include <AK/String.h>
namespace HackStudio {
enum class Language {
Unknown,
@ -35,4 +37,8 @@ enum class Language {
Ini,
Shell,
};
Language language_from_file_extension(const String&);
Language language_from_name(const String&);
}