Fix dependancies and precompile ruby module
This commit is contained in:
@@ -26,21 +26,6 @@ const std::unordered_map<std::string, TokenKind> kind_map = {
|
||||
#undef ADD
|
||||
};
|
||||
|
||||
constexpr const char tokens_def[] = "module Tokens\n"
|
||||
#define STRINGIFY_HELPER(x) #x
|
||||
#define STRINGIFY(x) STRINGIFY_HELPER(x)
|
||||
#define ADD(name) " " #name " = " STRINGIFY(__COUNTER__) "\n"
|
||||
#include "syntax/tokens.def"
|
||||
#undef ADD
|
||||
#undef STRINGIFY
|
||||
#undef STRINGIFY_HELPER
|
||||
" freeze\n"
|
||||
"end";
|
||||
|
||||
constexpr const char crib_module[] = {
|
||||
#embed "libcrib.rb"
|
||||
, '\0'};
|
||||
|
||||
extern std::array<Highlight, TOKEN_KIND_COUNT> highlights;
|
||||
|
||||
struct Token {
|
||||
|
||||
Reference in New Issue
Block a user