Allow ruby based configs and custom syntax parsers
This commit is contained in:
@@ -1,12 +1,21 @@
|
||||
#ifndef SCRIPTING_DECL_H
|
||||
#define SCRIPTING_DECL_H
|
||||
|
||||
#include "syntax/decl.h"
|
||||
#include "utils/utils.h"
|
||||
|
||||
extern std::unordered_map<std::string, std::pair<VALUE, VALUE>>
|
||||
custom_highlighters;
|
||||
|
||||
void ruby_start(const char *main_file);
|
||||
void ruby_shutdown();
|
||||
void ruby_log(std::string msg);
|
||||
void load_theme();
|
||||
std::string read_line_endings();
|
||||
std::string read_utf_mode();
|
||||
void load_languages_info();
|
||||
bool read_line_endings();
|
||||
void load_custom_highlighters();
|
||||
VALUE parse_custom(std::vector<Token> *tokens, VALUE parser_block,
|
||||
const char *line, uint32_t len, VALUE state);
|
||||
bool custom_compare(VALUE match_block, VALUE state1, VALUE state2);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user