diff options
author | cflip <cflip@cflip.net> | 2023-01-17 10:39:21 -0700 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-01-17 10:39:21 -0700 |
commit | 1a416a917d74d956469e6e80cf4bb519e9474c91 (patch) | |
tree | 6e61b15d9cece1af0a64d3a9cd2a5d5dd73815b7 /syntax.h | |
parent | 8be3915417bcafdbf2a8752980db96e06df096aa (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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |