From bab44ff37c248a593199d9b3e69700800a49fbd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 15 Sep 2014 15:06:59 +0200 Subject: More efficient syntax highlighting, first match wins --- editor.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'editor.h') diff --git a/editor.h b/editor.h index 6b9df05..bb20fdb 100644 --- a/editor.h +++ b/editor.h @@ -119,9 +119,7 @@ void editor_delete(Editor*, size_t pos, size_t len); /* load a set of syntax highlighting definitions which will be associated * to the underlying window based on the file type loaded. * - * both *syntaxes and *colors must point to a NULL terminated array. - * it the i-th syntax definition does not specifiy a fore ground color - * then the i-th entry of the color array will be used instead + * both *syntaxes and *colors must point to a NULL terminated arrays. */ bool editor_syntax_load(Editor*, Syntax *syntaxes, Color *colors); void editor_syntax_unload(Editor*); -- cgit v1.2.3