init project.

This commit is contained in:
ykiko
2024-06-30 14:08:54 +08:00
parent b8e2946fe6
commit c46ea4ac19
15 changed files with 753 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
namespace clice {
// https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_semanticTokens
// The protocol defines a set of token types and modifiers but clients are
// allowed to extend these and announce the values they support in the
// corresponding client capability.
enum class SemanticTokenTypes {
Namespace,
Type,
Class,
Enum,
Interface,
Struct,
TypeParameter,
Parameter,
Variable,
Property,
EnumMember,
Event,
Function,
Method,
Macro,
Keyword,
Modifier,
Comment,
String,
Number,
Regexp,
Operator,
Decorator // @since 3.17.0
};
enum SemanticTokenModifiers {
Declaration,
Definition,
Readonly,
Static,
Deprecated,
Abstract,
Async,
Modification,
Documentation,
DefaultLibrary
};
} // namespace clice

9
include/LSP/Server.h Normal file
View File

@@ -0,0 +1,9 @@
namespace clice {
/// core class responsible for starting the server
class Server {
public:
int run();
};
} // namespace clice