mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
cf52542fcf
It currently supports only headers and code blocks.
35 lines
578 B
C++
35 lines
578 B
C++
/*
|
|
* Copyright (c) 2020-2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Forward.h>
|
|
#include <AK/StringView.h>
|
|
|
|
namespace Syntax {
|
|
|
|
enum class Language {
|
|
CMake,
|
|
CMakeCache,
|
|
Cpp,
|
|
CSS,
|
|
GitCommit,
|
|
GML,
|
|
HTML,
|
|
INI,
|
|
JavaScript,
|
|
Markdown,
|
|
PlainText,
|
|
Shell,
|
|
SQL,
|
|
};
|
|
|
|
StringView language_to_string(Language);
|
|
StringView common_language_extension(Language);
|
|
Optional<Language> language_from_name(StringView);
|
|
Optional<Language> language_from_filename(LexicalPath const&);
|
|
|
|
}
|