summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-07-19 11:46:28 -0400
committerpommicket <pommicket@gmail.com>2023-07-19 19:03:22 -0400
commit4143734747b7b544daecdf1b8676838362c6cb59 (patch)
treee7c879967027f47b957c35e551b3e971a6aab924 /ted.h
parente5dc92fcd600b15977cad7c81de7b8c1cd11fb87 (diff)
fix memory leaks (not really leaky)
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index d67206f..ecd6e89 100644
--- a/ted.h
+++ b/ted.h
@@ -1603,6 +1603,8 @@ bool syntax_is_opening_bracket(Language lang, char32_t c);
/// To highlight multiple lines, start out with a zeroed SyntaxState, and pass a pointer to it each time.
/// You can set char_types to NULL if you just want to advance the state, and don't care about the character types.
void syntax_highlight(SyntaxState *state, Language lang, const char32_t *line, u32 line_len, SyntaxCharType *char_types);
+/// free up resources used by syntax.c
+void syntax_quit(void);
// === tags.c ===
void tags_generate(Ted *ted, bool run_in_build_window);