Files
crib/include/ts.h

17 lines
359 B
C++

#ifndef TS_H
#define TS_H
#include "./editor.h"
#include "./pch.h"
#include "./utils.h"
#define HEX(s) (static_cast<uint32_t>(std::stoul(s, nullptr, 16)))
extern std::unordered_map<std::string, pcre2_code *> regex_cache;
TSQuery *load_query(const char *query_path, TSSetBase *set);
void ts_collect_spans(Editor *editor);
void clear_regex_cache();
#endif