From 44b15b7484c8358f9ac65d5ba889b6e8c33cf168 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sun, 11 Sep 2022 20:17:42 -0700 Subject: [PATCH] debug --- level.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/level.cpp b/level.cpp index cfd72f5..aae3f97 100644 --- a/level.cpp +++ b/level.cpp @@ -108,12 +108,12 @@ const char *C_HL_keywords[] = { "void|", NULL }; -const struct editorSyntax HLDB[] = { +struct editorSyntax HLDB[] = { { - "c", - C_HL_extensions, - C_HL_keywords, - "//", "/*", "*/", + (char*)"c", + (char**)C_HL_extensions, + (char**)C_HL_keywords, + (char*)"//", (char*)"/*", (char*)"*/", HL_HIGHLIGHT_NUMBERS | HL_HIGHLIGHT_STRINGS }, }; @@ -277,7 +277,7 @@ void editorUpdateSyntax(erow *row) { int i = 0; while (i < row->rsize) { char c = row->render[i]; - unsigned char prev_hl = (i > 0) ? row->hl[i - 1] : HL_NORMAL; + unsigned char prev_hl = (i > 0) ? row->hl[i - 1] : (int)HL_NORMAL; if (scs_len && !in_string && !in_comment) { if (!strncmp(&row->render[i], scs, scs_len)) {