1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 11:27:34 +00:00

LibSyntax: Move Language enum into its own files

This commit is contained in:
Sam Atkins 2023-03-08 16:10:16 +00:00 committed by Sam Atkins
parent a1f2f08764
commit 8007c103dd
5 changed files with 108 additions and 80 deletions

View 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);
}