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:
parent
1edaefca3a
commit
ba6cbf160b
4 changed files with 68 additions and 12 deletions
|
@ -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&);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue