mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:07:36 +00:00
LibSyntax: Move Language enum into its own files
This commit is contained in:
parent
a1f2f08764
commit
8007c103dd
5 changed files with 108 additions and 80 deletions
31
Userland/Libraries/LibSyntax/Language.h
Normal file
31
Userland/Libraries/LibSyntax/Language.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Copyright (c) 2020-2022, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/StringView.h>
|
||||
|
||||
namespace Syntax {
|
||||
|
||||
enum class Language {
|
||||
CMake,
|
||||
CMakeCache,
|
||||
Cpp,
|
||||
CSS,
|
||||
GitCommit,
|
||||
GML,
|
||||
HTML,
|
||||
INI,
|
||||
JavaScript,
|
||||
PlainText,
|
||||
Shell,
|
||||
SQL,
|
||||
};
|
||||
|
||||
StringView language_to_string(Language);
|
||||
StringView common_language_extension(Language);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue