From 40e9a891fd2d09d56465353be379abc3f127e99d Mon Sep 17 00:00:00 2001 From: cflip Date: Wed, 18 Jan 2023 15:39:52 -0700 Subject: Reimplement syntax highlighting --- syntax.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'syntax.c') diff --git a/syntax.c b/syntax.c index 2078e19..9092f3d 100644 --- a/syntax.c +++ b/syntax.c @@ -158,13 +158,13 @@ int editor_syntax_to_colour(int highlight) { switch (highlight) { case HIGHLIGHT_MULTILINE_COMMENT: - case HIGHLIGHT_COMMENT: return 36; - case HIGHLIGHT_KEYWORD1: return 33; - case HIGHLIGHT_KEYWORD2: return 32; - case HIGHLIGHT_STRING: return 35; - case HIGHLIGHT_NUMBER: return 31; - case HIGHLIGHT_MATCH: return 34; - default: return 37; + case HIGHLIGHT_COMMENT: return 0x00ff00; + case HIGHLIGHT_KEYWORD1: return 0x00ffff; + case HIGHLIGHT_KEYWORD2: return 0xff00ff; + case HIGHLIGHT_STRING: return 0x7f7fff; + case HIGHLIGHT_NUMBER: return 0xff0000; + case HIGHLIGHT_MATCH: return 0xff7fff; + default: return 0xfffffff; } } -- cgit v1.2.3