summaryrefslogtreecommitdiff
path: root/syntax.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-01-17 10:39:21 -0700
committercflip <cflip@cflip.net>2023-01-17 10:39:21 -0700
commit1a416a917d74d956469e6e80cf4bb519e9474c91 (patch)
tree6e61b15d9cece1af0a64d3a9cd2a5d5dd73815b7 /syntax.h
parent8be3915417bcafdbf2a8752980db96e06df096aa (diff)
Rename 'rows' to 'lines' everywhere
For whatever reason lines were called rows in the code, so this refactor changes that name everywhere. The name 'row' is still used in some places to refer to the unit of height in the screen.
Diffstat (limited to 'syntax.h')
-rw-r--r--syntax.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/syntax.h b/syntax.h
index 9bf85a4..e78a4ab 100644
--- a/syntax.h
+++ b/syntax.h
@@ -4,7 +4,7 @@
#include <stdlib.h>
#include "editor.h"
-#include "row.h"
+#include "line.h"
#define HIGHLIGHT_FLAG_NUMBERS (1 << 0)
#define HIGHLIGHT_FLAG_STRINGS (1 << 1)
@@ -32,7 +32,7 @@ enum editor_highlight {
#define HIGHLIGHT_DATABASE_ENTRY_COUNT (sizeof(highlight_database) / sizeof(highlight_database[0]))
-void editor_update_syntax(struct editor_state* editor, struct editor_row* row);
+void editor_update_syntax(struct editor_state* editor, line_t*);
int editor_syntax_to_colour(int highlight);
void editor_select_syntax_highlight(struct editor_state* editor);