summaryrefslogtreecommitdiff
path: root/syntax.c
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-01-18 15:39:52 -0700
committercflip <cflip@cflip.net>2023-01-18 15:45:25 -0700
commit40e9a891fd2d09d56465353be379abc3f127e99d (patch)
tree02f0cef84e164177e012961565752374bcb92024 /syntax.c
parent8d4c8b32faadd97631904e411ff39cb8282030f5 (diff)
Reimplement syntax highlighting
Diffstat (limited to 'syntax.c')
-rw-r--r--syntax.c14
1 files changed, 7 insertions, 7 deletions
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;
}
}