Use embedded mruby for portablity
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include "syntax/decl.h"
|
||||
#include "utils/utils.h"
|
||||
|
||||
extern std::unordered_map<std::string, std::pair<VALUE, VALUE>>
|
||||
extern std::unordered_map<std::string, std::pair<mrb_value, mrb_value>>
|
||||
custom_highlighters;
|
||||
|
||||
void ruby_start();
|
||||
@@ -14,9 +14,9 @@ void load_theme();
|
||||
void load_languages_info();
|
||||
uint8_t 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,
|
||||
uint32_t line_num);
|
||||
bool custom_compare(VALUE match_block, VALUE state1, VALUE state2);
|
||||
mrb_value parse_custom(std::vector<Token> *tokens, mrb_value parser_block,
|
||||
const char *line, uint32_t len, mrb_value state,
|
||||
uint32_t c_line);
|
||||
bool custom_compare(mrb_value match_block, mrb_value state1, mrb_value state2);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user