ladybird/Userland/Libraries/LibSyntax/Language.h
Maciej cf52542fcf LibMarkdown+LibSyntax: Add a Markdown syntax highlighter
It currently supports only headers and code blocks.
2023-05-05 17:08:40 +01:00

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