summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-01 23:47:52 -0500
committerpommicket <pommicket@gmail.com>2023-01-01 23:47:52 -0500
commit20ac640a6d0b8eb6343709ae6ef921b41a31a726 (patch)
tree32165e91d2851b35cae59691b84dfaf4aecc7b4d /ted.h
parent8c16344d5279eef6ed6ad18d4de7e8a2a5bf2f98 (diff)
restructure syntax.c
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index 448b0b1..9c115b4 100644
--- a/ted.h
+++ b/ted.h
@@ -616,6 +616,15 @@ void gl_geometry_rect(Rect r, u32 color_rgba);
void gl_geometry_rect_border(Rect r, float border_thickness, u32 color);
void gl_geometry_draw(void);
GLuint gl_load_texture_from_image(const char *path);
+// === syntax.c ===
+Language language_from_str(const char *str);
+const char *language_to_str(Language language);
+const char *language_comment_start(Language l);
+const char *language_comment_end(Language l);
+ColorSetting syntax_char_type_to_color_setting(SyntaxCharType t);
+char32_t syntax_matching_bracket(Language lang, char32_t c);
+bool syntax_is_opening_bracket(Language lang, char32_t c);
+void syntax_highlight(SyntaxState *state, Language lang, const char32_t *line, u32 line_len, SyntaxCharType *char_types);
char *buffer_contents_utf8_alloc(TextBuffer *buffer);