Improve syntax highlight injection logic

This commit is contained in:
2025-12-25 04:55:56 +00:00
parent 659628835d
commit 69b981097e
5 changed files with 42 additions and 48 deletions

View File

@@ -121,7 +121,6 @@ struct VAI {
struct TSSetBase {
std::string lang;
TSTree *tree;
TSParser *parser;
std::string query_file;
TSQuery *query;
@@ -135,7 +134,8 @@ struct TSSet : TSSetBase {
};
struct TSSetMain : TSSetBase {
std::vector<TSSet> injections;
TSTree *tree;
std::unordered_map<std::string, TSSet> injections;
};
struct Editor {