From d89c15e3b239930852bea2c71173e21809fe6799 Mon Sep 17 00:00:00 2001 From: Andrea Cultraro Date: Thu, 27 Apr 2023 10:34:18 +0200 Subject: [PATCH 1/2] fixed typo --- kilo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kilo.c b/kilo.c index 406eb7be..9bda76ef 100644 --- a/kilo.c +++ b/kilo.c @@ -894,7 +894,7 @@ void editorRefreshScreen(void) { if (E.numrows == 0 && y == E.screenrows/3) { char welcome[80]; int welcomelen = snprintf(welcome,sizeof(welcome), - "Kilo editor -- verison %s\x1b[0K\r\n", KILO_VERSION); + "Kilo editor -- version %s\x1b[0K\r\n", KILO_VERSION); int padding = (E.screencols-welcomelen)/2; if (padding) { abAppend(&ab,"~",1); From 491e4c5739826e8100986bd3919976db7835c6ec Mon Sep 17 00:00:00 2001 From: Andrea Cultraro Date: Thu, 27 Apr 2023 11:48:55 +0200 Subject: [PATCH 2/2] modify keywords --- kilo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kilo.c b/kilo.c index 9bda76ef..a924e91f 100644 --- a/kilo.c +++ b/kilo.c @@ -165,8 +165,8 @@ void editorSetStatusMessage(const char *fmt, ...); char *C_HL_extensions[] = {".c",".h",".cpp",".hpp",".cc",NULL}; char *C_HL_keywords[] = { /* C Keywords */ - "auto","break","case","continue","default","do","else","enum", - "extern","for","goto","if","register","return","sizeof","static", + "auto","break","case","continue","default","#define|","do","else","enum", + "extern","for","goto","if","#include","register","return","sizeof","static", "struct","switch","typedef","union","volatile","while","NULL", /* C++ Keywords */