summaryrefslogtreecommitdiff
path: root/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'syntax.c')
-rw-r--r--syntax.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/syntax.c b/syntax.c
index 308f39e..87d83cd 100644
--- a/syntax.c
+++ b/syntax.c
@@ -2214,3 +2214,11 @@ void syntax_register_language(const LanguageInfo *info) {
lsp_register_language(info->id, info->lsp_identifier);
}
+
+void syntax_quit(void) {
+ arr_foreach_ptr(language_names, LanguageName, lname) {
+ free(lname->name);
+ }
+ arr_clear(language_names);
+ arr_clear(syntax_highlighters);
+}